Convert device/google/comet/sensors/Android.mk to Android.bp.
And remove device/google/comet/Android.mk which is not needed any more with this change. Bug: 372304751 Test: CIs Test: lunch comet-trunk_staging-eng && m sensors.comet Flag: EXEMPT refactor Change-Id: I1d8859d55ee086ca570dc253fb3cc93a754b7442
This commit is contained in:
parent
a7d9620657
commit
e538262d28
3 changed files with 33 additions and 60 deletions
30
Android.mk
30
Android.mk
|
@ -1,30 +0,0 @@
|
||||||
#
|
|
||||||
# Copyright (C) 2011 The Android Open-Source Project
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
|
|
||||||
# WARNING: Everything listed here will be built on ALL platforms,
|
|
||||||
# including x86, the universal, and the SDK. Modules must be uniquely
|
|
||||||
# named (liblights.panda), and must build everywhere, or limit themselves
|
|
||||||
# to only building on ARM if they include assembly. Individual makefiles
|
|
||||||
# are responsible for having their own logic, for fine-grained control.
|
|
||||||
|
|
||||||
LOCAL_PATH := $(call my-dir)
|
|
||||||
|
|
||||||
# if some modules are built directly from this directory (not subdirectories),
|
|
||||||
# their rules should be written here.
|
|
||||||
|
|
||||||
ifneq (,$(filter $(TARGET_DEVICE),comet))
|
|
||||||
include $(call all-makefiles-under,$(LOCAL_PATH))
|
|
||||||
endif
|
|
33
sensors/Android.bp
Normal file
33
sensors/Android.bp
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
// Copyright (C) 2009 The Android Open Source Project
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
|
package {
|
||||||
|
default_applicable_licenses: [
|
||||||
|
"device_google_comet_license",
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
|
// HAL module implementation stored in
|
||||||
|
// hw/<SENSORS_HARDWARE_MODULE_ID>.<ro.hardware>.so
|
||||||
|
cc_library_shared {
|
||||||
|
name: "sensors.comet",
|
||||||
|
relative_install_path: "hw",
|
||||||
|
shared_libs: [
|
||||||
|
"liblog",
|
||||||
|
"libcutils",
|
||||||
|
"libhardware",
|
||||||
|
],
|
||||||
|
srcs: ["sensors_dummy.c"],
|
||||||
|
proprietary: true,
|
||||||
|
}
|
|
@ -1,30 +0,0 @@
|
||||||
# Copyright (C) 2009 The Android Open Source Project
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
LOCAL_PATH := $(call my-dir)
|
|
||||||
|
|
||||||
# HAL module implementation stored in
|
|
||||||
# hw/<SENSORS_HARDWARE_MODULE_ID>.<ro.hardware>.so
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE_RELATIVE_PATH := hw
|
|
||||||
LOCAL_SHARED_LIBRARIES := liblog libcutils libhardware
|
|
||||||
LOCAL_SRC_FILES := sensors_dummy.c
|
|
||||||
LOCAL_MODULE := sensors.comet
|
|
||||||
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
|
|
||||||
LOCAL_LICENSE_CONDITIONS := notice
|
|
||||||
LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE
|
|
||||||
LOCAL_PROPRIETARY_MODULE := true
|
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
|
Loading…
Add table
Add a link
Reference in a new issue