sdm845-common: Start using vendor_overlay
* This lets us override files in /vendor without relying on bind mounts ^.^ Change-Id: Ib0b173682a48836aeac97e2c3691176a44f13aab
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
//
|
||||
// Copyright (C) 2018 The LineageOS 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.
|
||||
|
||||
cc_binary {
|
||||
relative_install_path: "hw",
|
||||
defaults: ["hidl_defaults"],
|
||||
name: "android.hardware.light@2.0-service.oneplus_sdm845",
|
||||
init_rc: ["android.hardware.light@2.0-service.oneplus_sdm845.rc"],
|
||||
srcs: ["service.cpp", "Light.cpp"],
|
||||
shared_libs: [
|
||||
"libbase",
|
||||
"libhardware",
|
||||
"libhidlbase",
|
||||
"libhidltransport",
|
||||
"liblog",
|
||||
"libhwbinder",
|
||||
"libutils",
|
||||
"android.hardware.light@2.0",
|
||||
],
|
||||
}
|
||||
42
lights/Android.mk
Normal file
42
lights/Android.mk
Normal file
@@ -0,0 +1,42 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := android.hardware.light@2.0-service.oneplus_sdm845
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/bin
|
||||
LOCAL_MODULE_RELATIVE_PATH := hw
|
||||
LOCAL_MODULE_STEM := android.hardware.light@2.0-service
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
service.cpp \
|
||||
Light.cpp
|
||||
|
||||
LOCAL_REQUIRED_MODULES := \
|
||||
android.hardware.light@2.0-service.oneplus_sdm845.rc
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libbase \
|
||||
libhardware \
|
||||
libhidlbase \
|
||||
libhidltransport \
|
||||
liblog \
|
||||
libhwbinder \
|
||||
libutils \
|
||||
android.hardware.light@2.0
|
||||
|
||||
include $(BUILD_EXECUTABLE)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := android.hardware.light@2.0-service.oneplus_sdm845.rc
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/init
|
||||
LOCAL_MODULE_STEM := android.hardware.light@2.0-service.rc
|
||||
|
||||
LOCAL_SRC_FILES := android.hardware.light@2.0-service.oneplus_sdm845.rc
|
||||
|
||||
include $(BUILD_PREBUILT)
|
||||
@@ -6,7 +6,7 @@ on boot
|
||||
chown system system /sys/class/leds/green/lut_flags
|
||||
chown system system /sys/class/leds/blue/lut_flags
|
||||
|
||||
service vendor.light-hal-2-0 /system/bin/hw/android.hardware.light@2.0-service.oneplus_sdm845
|
||||
service vendor.light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service
|
||||
interface android.hardware.light@2.0::ILight default
|
||||
class hal
|
||||
user system
|
||||
|
||||
Reference in New Issue
Block a user