g12-common: Copy ramdisk to first_stage_ramdisk as well
authorNolen Johnson <johnsonnolen@gmail.com>
Mon, 13 Nov 2023 04:12:02 +0000 (23:12 -0500)
committerNolen Johnson <johnsonnolen@gmail.com>
Mon, 13 Nov 2023 04:12:55 +0000 (04:12 +0000)
* Fixes up 1acf46eebcc8452303c55d9c344e254edcf5542e which dropped this.

Change-Id: I365f7af37b5c9830e95650eeeb55027e70162c22

init-files/Android.mk

index 292a812d5b4b0540c24949ab8d6b9a833b3a4611..92c866a626e32d46faa7687342dd3e5db9705d55 100644 (file)
@@ -9,7 +9,7 @@ LOCAL_SRC_FILES        := fstab.amlogic
 else
 LOCAL_SRC_FILES        := fstab_no_avb.amlogic
 endif
-LOCAL_REQUIRED_MODULES := fstab.amlogic_ramdisk
+LOCAL_REQUIRED_MODULES := fstab.amlogic_ramdisk fstab.amlogic_first_stage_ramdisk
 LOCAL_MODULE_PATH      := $(TARGET_OUT_VENDOR_ETC)
 include $(BUILD_PREBUILT)
 
@@ -25,3 +25,16 @@ LOCAL_SRC_FILES        := fstab_no_avb.amlogic
 endif
 LOCAL_MODULE_PATH      := $(TARGET_RAMDISK_OUT)
 include $(BUILD_PREBUILT)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE           := fstab.amlogic_first_stage_ramdisk
+LOCAL_MODULE_STEM      := fstab.amlogic
+LOCAL_MODULE_TAGS      := optional
+LOCAL_MODULE_CLASS     := ETC
+ifneq ($(TARGET_HAS_TEE),false)
+LOCAL_SRC_FILES        := fstab.amlogic
+else
+LOCAL_SRC_FILES        := fstab_no_avb.amlogic
+endif
+LOCAL_MODULE_PATH      := $(TARGET_RAMDISK_OUT)/first_stage_ramdisk
+include $(BUILD_PREBUILT)