From ce6bc0cd8dca2484f0336cea9d828f581a4a433a Mon Sep 17 00:00:00 2001 From: Chenglu Lin Date: Wed, 29 Apr 2020 14:07:31 +0800 Subject: [PATCH] Add modules.load to set the modules load order The modules.load file from the kernel build defines the module load order in kernel Makefile order. We can set BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD to the contents of this file. Bug: 152080906 Test: check contents of $OUT/vendor-ramdisk/lib/modules/modules.load Signed-off-by: Chenglu Lin Change-Id: I45327c29e29d53fc695611473c01fab4ee87844a --- redfin/BoardConfig.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/redfin/BoardConfig.mk b/redfin/BoardConfig.mk index c43db9d..2c9d0c8 100644 --- a/redfin/BoardConfig.mk +++ b/redfin/BoardConfig.mk @@ -60,6 +60,8 @@ else endif endif +BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD := $(shell xargs < device/google/redfin-kernel/modules.load) + # DTB ifeq (,$(filter-out redfin_kasan, $(TARGET_PRODUCT))) BOARD_PREBUILT_DTBIMAGE_DIR := device/google/redfin-kernel/kasan