From 30d9536c1db7acd0e0c62b65dfdb056fb17dff80 Mon Sep 17 00:00:00 2001 From: Alberto Mardegan Date: Sat, 30 Jan 2021 01:11:43 +0300 Subject: [PATCH] ubports: add a mount point for init configuration files This file is emant to be used as a mount point to inject device-specific changes into the Android init system. --- device.mk | 1 + rootdir/Android.mk | 8 ++++++++ rootdir/etc/init.halium_device.rc | 3 +++ 3 files changed, 12 insertions(+) create mode 100644 rootdir/etc/init.halium_device.rc diff --git a/device.mk b/device.mk index bd929ac..d469253 100644 --- a/device.mk +++ b/device.mk @@ -24,6 +24,7 @@ PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true PRODUCT_PACKAGES += \ init.disabled.rc \ init.halium.rc \ + init.halium_device.rc \ vndk-detect \ on-post-data.sh diff --git a/rootdir/Android.mk b/rootdir/Android.mk index f73a4db..06d6f11 100644 --- a/rootdir/Android.mk +++ b/rootdir/Android.mk @@ -12,6 +12,14 @@ LOCAL_SRC_FILES := etc/init.halium.rc LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/init include $(BUILD_PREBUILT) +include $(CLEAR_VARS) +LOCAL_MODULE := init.halium_device.rc +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/init.halium_device.rc +LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/init +include $(BUILD_PREBUILT) + include $(CLEAR_VARS) LOCAL_MODULE := init.disabled.rc LOCAL_MODULE_TAGS := optional eng diff --git a/rootdir/etc/init.halium_device.rc b/rootdir/etc/init.halium_device.rc new file mode 100644 index 0000000..92645a3 --- /dev/null +++ b/rootdir/etc/init.halium_device.rc @@ -0,0 +1,3 @@ +# This is an empty configuration file, which is provided as a mount point +# so that device trees can use it to bind-mount their device-specific init +# overrides.