From 09b508b75d902130f205f5916cca03d652ad140d Mon Sep 17 00:00:00 2001 From: Arian Date: Sun, 18 Aug 2019 00:00:48 +0200 Subject: shinano-common: Convert ramdisk files to modules --- rootdir/Android.mk | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++++ shinano.mk | 46 ++++++++++------------- 2 files changed, 125 insertions(+), 26 deletions(-) create mode 100644 rootdir/Android.mk diff --git a/rootdir/Android.mk b/rootdir/Android.mk new file mode 100644 index 0000000..ebec398 --- /dev/null +++ b/rootdir/Android.mk @@ -0,0 +1,105 @@ +LOCAL_PATH:= $(call my-dir) + +include $(CLEAR_VARS) +LOCAL_MODULE := fstab.qcom +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/fstab.qcom +LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := init.camera.rc +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/init.camera.rc +LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := init.platform-common.rc +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/init.platform-common.rc +LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := init.qcom.power.rc +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/init.qcom.power.rc +LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := init.qcom.rc +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/init.qcom.rc +LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := init.recovery.qcom.rc +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/init.recovery.qcom.rc +LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := init.sony.rc +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/init.sony.rc +LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := init.sony.usb.rc +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/init.sony.usb.rc +LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := ueventd.qcom.rc +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/ueventd.qcom.rc +LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := credmgrfirstboot.sh +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := EXECUTABLES +LOCAL_SRC_FILES := bin/credmgrfirstboot.sh +LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES) +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := init.qcom-sensor.sh +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := EXECUTABLES +LOCAL_SRC_FILES := bin/init.qcom-sensor.sh +LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES) +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := tad_static +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := BIN +LOCAL_SRC_FILES := sbin/tad_static +LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT_SBIN) +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := wait4tad_static +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := BIN +LOCAL_SRC_FILES := sbin/wait4tad_static +LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT_SBIN) +include $(BUILD_PREBUILT) diff --git a/shinano.mk b/shinano.mk index fe12cc2..9ca9540 100644 --- a/shinano.mk +++ b/shinano.mk @@ -39,32 +39,10 @@ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \ frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml -# Init -PRODUCT_COPY_FILES += \ - $(COMMON_PATH)/rootdir/etc/fstab.qcom:root/fstab.qcom \ - $(COMMON_PATH)/rootdir/etc/init.qcom.rc:root/init.qcom.rc \ - $(COMMON_PATH)/rootdir/etc/init.camera.rc:root/init.camera.rc \ - $(COMMON_PATH)/rootdir/etc/init.platform-common.rc:root/init.platform-common.rc \ - $(COMMON_PATH)/rootdir/etc/init.sony.rc:root/init.sony.rc \ - $(COMMON_PATH)/rootdir/etc/init.qcom.power.rc:root/init.qcom.power.rc \ - $(COMMON_PATH)/rootdir/etc/init.sony.usb.rc:root/init.sony.usb.rc \ - $(COMMON_PATH)/rootdir/etc/ueventd.qcom.rc:root/ueventd.qcom.rc - -# Recovery Init -PRODUCT_COPY_FILES += \ - $(COMMON_PATH)/rootdir/etc/init.recovery.qcom.rc:root/init.recovery.qcom.rc - # Camera -PRODUCT_COPY_FILES += \ - $(COMMON_PATH)/rootdir/sbin/tad_static:root/sbin/tad_static \ - $(COMMON_PATH)/rootdir/sbin/wait4tad_static:root/sbin/wait4tad_static - PRODUCT_PACKAGES += \ libshim_camera -PRODUCT_COPY_FILES += \ - $(COMMON_PATH)/rootdir/bin/credmgrfirstboot.sh:$(TARGET_COPY_OUT_VENDOR)/bin/credmgrfirstboot.sh - # Audio PRODUCT_COPY_FILES += \ $(COMMON_PATH)/configs/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \ @@ -158,12 +136,28 @@ PRODUCT_COPY_FILES += \ PRODUCT_PACKAGES += \ charger_res_images - # Properties +# Properties include $(COMMON_PATH)/system_prop.mk -# Sensor file -PRODUCT_COPY_FILES += \ - $(COMMON_PATH)/rootdir/bin/init.qcom-sensor.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom-sensor.sh +# Ramdisk +PRODUCT_PACKAGES += \ + fstab.qcom \ + init.camera.rc \ + init.platform-common.rc \ + init.qcom.power.rc \ + init.qcom.rc \ + init.recovery.qcom.rc \ + init.sony.rc \ + init.sony.usb.rc \ + ueventd.qcom.rc + +PRODUCT_PACKAGES += \ + credmgrfirstboot.sh \ + init.qcom-sensor.sh + +PRODUCT_PACKAGES += \ + tad_static \ + wait4tad_static # BCM Wifi $(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4339/device-bcm.mk) -- cgit v1.2.3