summaryrefslogtreecommitdiff
path: root/hikey.mk
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2020-11-24 16:07:20 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2020-11-24 16:19:30 +0800
commitaa064df07c345130596c0c64883f44bfda65129a (patch)
tree4c4b46e21b5bda3e8a3e8875060b29907d020441 /hikey.mk
parentb0f660cdae53c460c26c517b080d81f657844bc1 (diff)
downloadhikey-aa064df07c345130596c0c64883f44bfda65129a.tar.gz
hikey/hikey960: support to specify the prebuilt kernel dir out of aosp tree
add LOCAL_KERNEL_HOME variable to support the use of out of aosp tree prebuilt kernel dir, like the dist directory when building kernel according to the instructions here[1]. [1]: https://source.android.com/setup/build/building-kernels Test: export LOCAL_KERNEL_HOME=<out/hikey960/dist> export TARGET_KERNEL_USE=5.4 source build/envsetup.sh; lunch hikey960-userdebug; make -j$(nproc) droidcore export LOCAL_KERNEL_HOME=<out/hikey/dist> export HIKEY_USES_GKI=true source build/envsetup.sh; lunch hikey-userdebug; make -j$(nproc) droidcore Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org> Change-Id: Ide62267aa7b51d43280b4d3cefa0cbc82295b0d7
Diffstat (limited to 'hikey.mk')
-rw-r--r--hikey.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/hikey.mk b/hikey.mk
index f8a8df9a..3659579e 100644
--- a/hikey.mk
+++ b/hikey.mk
@@ -15,7 +15,7 @@ PRODUCT_DEVICE := hikey
PRODUCT_BRAND := Android
ifneq ($(HIKEY_USES_GKI),)
-HIKEY_MOD_DIR := device/linaro/hikey-kernel/hikey/$(TARGET_KERNEL_USE)/
+HIKEY_MOD_DIR := $(LOCAL_KERNEL_HOME)
HIKEY_MODS := $(wildcard $(HIKEY_MOD_DIR)/*.ko)
ifneq ($(HIKEY_MODS),)
BOARD_VENDOR_KERNEL_MODULES += $(HIKEY_MODS)