diff options
author | Kelvin Zhang <zhangkelvin@google.com> | 2024-04-19 15:53:01 -0700 |
---|---|---|
committer | Kelvin Zhang <zhangkelvin@google.com> | 2024-04-19 20:35:34 -0700 |
commit | 980aded04fd38edbbe82bd309d1044588ba0c5c9 (patch) | |
tree | 6c320c7393a51f154b4c289c66396071f3264688 | |
parent | 1c4b50f8c440f46e20597069e037dd0a53dad4f1 (diff) | |
download | build-980aded04fd38edbbe82bd309d1044588ba0c5c9.tar.gz |
Allow specifying load order for 16K kernel modules
Test: th
Bug: 293313353
Change-Id: Iffd5f064973fc9a2503f2fde32bc1c6d548d9c33
-rw-r--r-- | core/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/Makefile b/core/Makefile index d09f54fb7d..e6a5bc0d4f 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1128,10 +1128,15 @@ $(foreach \ BOARD_VENDOR_RAMDISK_FRAGMENT.16K.PREBUILT := $(BUILT_RAMDISK_16K_TARGET) +ifndef BOARD_KERNEL_MODULES_LOAD_16K + BOARD_KERNEL_MODULES_LOAD_16K := $(BOARD_KERNEL_MODULES_16K) +endif + $(BUILT_RAMDISK_16K_TARGET): $(DEPMOD) $(MKBOOTFS) $(EXTRACT_KERNEL) $(COMPRESSION_COMMAND_DEPS) $(BUILT_RAMDISK_16K_TARGET): $(foreach file,$(BOARD_KERNEL_MODULES_16K),$(RAMDISK_16K_STAGING_DIR)/lib/modules/0.0/$(notdir $(file))) $(DEPMOD) -b $(RAMDISK_16K_STAGING_DIR) 0.0 - for MODULE in $(BOARD_KERNEL_MODULES_16K); do \ + rm -f $(RAMDISK_16K_STAGING_DIR)/lib/modules/0.0/modules.load + for MODULE in $(BOARD_KERNEL_MODULES_LOAD_16K); do \ basename $$MODULE >> $(RAMDISK_16K_STAGING_DIR)/lib/modules/0.0/modules.load ; \ done; rm -rf $(TARGET_OUT_RAMDISK_16K)/lib/modules |