From bdfc913935c2a8c38ed999a4c84bb96492e0e5fe Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Fri, 4 Nov 2022 02:12:03 +0200 Subject: [PATCH] kernel: Support copying modules to vendor_kernel_boot Test: Build gs201 with source built kernel/modules, boot. Change-Id: Ie66400ddd44cfd249e1b4710f4d1c4efa32389a4 --- build/tasks/kernel.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/tasks/kernel.mk b/build/tasks/kernel.mk index 86544ca1..4bdcbcb2 100644 --- a/build/tasks/kernel.mk +++ b/build/tasks/kernel.mk @@ -394,6 +394,10 @@ ifneq (,$(filter dlkm,$(BOARD_VENDOR_RAMDISK_FRAGMENTS))) KERNEL_VENDOR_RAMDISK_MODULES_OUT := $(VENDOR_RAMDISK_FRAGMENT.dlkm.STAGING_DIR) KERNEL_VENDOR_RAMDISK_DEPMOD_STAGING_DIR := $(KERNEL_BUILD_OUT_PREFIX)$(call intermediates-dir-for,PACKAGING,depmod_vendor_ramdisk_fragment-stage-dlkm) $(INTERNAL_VENDOR_RAMDISK_FRAGMENT_TARGETS): $(TARGET_PREBUILT_INT_KERNEL) +else ifeq ($(PRODUCT_BUILD_VENDOR_KERNEL_BOOT_IMAGE),true) +KERNEL_VENDOR_RAMDISK_MODULES_OUT := $(TARGET_VENDOR_KERNEL_RAMDISK_OUT) +KERNEL_VENDOR_RAMDISK_DEPMOD_STAGING_DIR := $(KERNEL_BUILD_OUT_PREFIX)$(call intermediates-dir-for,PACKAGING,depmod_vendor_kernel_ramdisk) +$(INTERNAL_VENDOR_KERNEL_RAMDISK_TARGET): $(TARGET_PREBUILT_INT_KERNEL) else KERNEL_VENDOR_RAMDISK_MODULES_OUT := $(TARGET_VENDOR_RAMDISK_OUT) KERNEL_VENDOR_RAMDISK_DEPMOD_STAGING_DIR := $(KERNEL_BUILD_OUT_PREFIX)$(call intermediates-dir-for,PACKAGING,depmod_vendor_ramdisk)