kernel.mk: Allow building external kernel modules

Here, we introduce the TARGET_EXTERNAL_KERNEL_MODULES variable
for the list of external modules.

Change-Id: I1f8b7a48e66bb0c9efbc396692e5a7159f0b835c
This commit is contained in:
Neel Chauhan
2022-07-21 09:30:48 -07:00
committed by nebrassy
parent 80bd054cf2
commit f5a42b67f9
2 changed files with 25 additions and 0 deletions
+9
View File
@@ -42,6 +42,11 @@
# TARGET_KERNEL_DTB = Name of the kernel Makefile target that
# generates the *.dtb targets. Defaults to dtbs
#
# TARGET_KERNEL_EXT_MODULE_ROOT = Optional, the external modules root directory
# Defaults to empty
# TARGET_KERNEL_EXT_MODULES = Optional, the external modules we are
# building. Defaults to empty
#
# KERNEL_TOOLCHAIN_PREFIX = Overrides TARGET_KERNEL_CROSS_COMPILE_PREFIX,
# Set this var in shell to override
# toolchain specified in BoardConfig.mk
@@ -163,6 +168,10 @@ endif
# Set the default dtb target
TARGET_KERNEL_DTB ?= dtbs
# Set no external modules by default
TARGET_KERNEL_EXT_MODULE_ROOT ?=
TARGET_KERNEL_EXT_MODULES ?=
# Set use the full path to the make command
KERNEL_MAKE_CMD := $(BUILD_TOP)/prebuilts/build-tools/$(HOST_PREBUILT_TAG)/bin/make