Android: install in-tree ko to vendor and ramdisk
install in-tree kernel modules to vendor image and ramdisk image Change-Id: Ied8e01b2f7b39662a60c8af86c5f385eb6a1e916 Signed-off-by: Celeste Wang <Celeste.Wang@mediatek.com> CR-Id: ALPS04671194 Feature: [Module] Android
This commit is contained in:
@@ -7,6 +7,7 @@ ifeq ($(notdir $(LOCAL_PATH)),$(strip $(LINUX_KERNEL_VERSION)))
|
||||
ifneq ($(strip $(TARGET_NO_KERNEL)),true)
|
||||
|
||||
include $(LOCAL_PATH)/kenv.mk
|
||||
include $(LOCAL_PATH)/kernel_modules.mk
|
||||
|
||||
ifeq ($(wildcard $(TARGET_PREBUILT_KERNEL)),)
|
||||
KERNEL_MAKE_DEPENDENCIES := $(shell find $(KERNEL_DIR) -name .git -prune -o -type f | sort)
|
||||
|
||||
14
kernel_modules.mk
Normal file
14
kernel_modules.mk
Normal file
@@ -0,0 +1,14 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
# Copyright (C) 2019 MediaTek Inc.
|
||||
|
||||
# in-tree kernel modules installed to vendor
|
||||
board_vendor_kernel_modules :=
|
||||
|
||||
BOARD_VENDOR_KERNEL_MODULES += $(board_vendor_kernel_modules)
|
||||
$(board_vendor_kernel_modules): $(KERNEL_ZIMAGE_OUT);
|
||||
|
||||
# in-tree kernel modules installed to ramdisk
|
||||
board_ramdisk_kernel_modules :=
|
||||
|
||||
BOARD_RAMDISK_KERNEL_MODULES += $(board_ramdisk_kernel_modules)
|
||||
$(board_ramdisk_kernel_modules): $(KERNEL_ZIMAGE_OUT);
|
||||
Reference in New Issue
Block a user