hikey/hikey960: Switch to using new prebuilt path names am: 478f083c07
Original change: https://android-review.googlesource.com/c/device/linaro/hikey/+/1324177
Change-Id: I046c3de07a27e7fcfd225a7b8115d7f93aa66004
diff --git a/hikey-common.mk b/hikey-common.mk
index a2cb460..aba5797 100644
--- a/hikey-common.mk
+++ b/hikey-common.mk
@@ -4,9 +4,8 @@
HIKEY_USE_DRM_HWCOMPOSER := false
-TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/Image.gz-dtb-$(TARGET_KERNEL_USE)
-
-TARGET_PREBUILT_DTB := device/linaro/hikey-kernel/hi6220-hikey.dtb-$(TARGET_KERNEL_USE)
+TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/hikey/$(TARGET_KERNEL_USE)/Image.gz-dtb
+TARGET_PREBUILT_DTB := device/linaro/hikey-kernel/hikey/$(TARGET_KERNEL_USE)/hi6220-hikey.dtb
PRODUCT_ENFORCE_VINTF_MANIFEST_OVERRIDE := true
diff --git a/hikey.mk b/hikey.mk
index 1c26335..f8a8df9 100644
--- a/hikey.mk
+++ b/hikey.mk
@@ -15,7 +15,7 @@
PRODUCT_BRAND := Android
ifneq ($(HIKEY_USES_GKI),)
-HIKEY_MOD_DIR := device/linaro/hikey-kernel/hikey/5.4/
+HIKEY_MOD_DIR := device/linaro/hikey-kernel/hikey/$(TARGET_KERNEL_USE)/
HIKEY_MODS := $(wildcard $(HIKEY_MOD_DIR)/*.ko)
ifneq ($(HIKEY_MODS),)
BOARD_VENDOR_KERNEL_MODULES += $(HIKEY_MODS)
diff --git a/hikey960.mk b/hikey960.mk
index 7a31e09..19d972e 100644
--- a/hikey960.mk
+++ b/hikey960.mk
@@ -1,8 +1,8 @@
ifndef TARGET_KERNEL_USE
TARGET_KERNEL_USE=4.19
endif
-TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/Image.gz-dtb-hikey960-$(TARGET_KERNEL_USE)
-TARGET_PREBUILT_DTB := device/linaro/hikey-kernel/hi3660-hikey960.dtb-$(TARGET_KERNEL_USE)
+TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/hikey960/$(TARGET_KERNEL_USE)/Image.gz-dtb
+TARGET_PREBUILT_DTB := device/linaro/hikey-kernel/hikey960/$(TARGET_KERNEL_USE)/hi3660-hikey960.dtb
ifeq ($(TARGET_KERNEL_USE), 4.4)
HIKEY_USE_DRM_HWCOMPOSER := false