hikey/hikey960: Switch to using new prebuilt path names
Use hikey-kernel/<board>/<kernel ver>/<file> for prebuilt objects
instead of hikey-kernel/<file>-<board>-<kernel ver>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Change-Id: I207dd40fe1de5e0078a5cf82bbf1f89910906b5b
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