hikey: Add TARGET_COMPRESSED_KERNEL var to support compressed Image.gz-dtb kernels
Add support to boot compressed Image.gz-dtb kernels conditionally
based on the TARGET_COMPRESSED_KERNEL build variable
Change-Id: I4511bfb12608dea02a599347c18dc16545d61739
Signed-off-by: John Stultz <john.stultz@linaro.org>
diff --git a/hikey.mk b/hikey.mk
index 779ee87..ca6f2d1 100644
--- a/hikey.mk
+++ b/hikey.mk
@@ -1,7 +1,17 @@
ifndef TARGET_KERNEL_USE
TARGET_KERNEL_USE=4.9
endif
+
+ifndef TARGET_COMPRESSED_KERNEL
+TARGET_COMPRESSED_KERNEL=false
+endif
+
+ifeq ($(TARGET_COMPRESSED_KERNEL), false)
TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/Image-dtb-$(TARGET_KERNEL_USE)
+else
+TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/Image.gz-dtb-$(TARGET_KERNEL_USE)
+endif
+
TARGET_PREBUILT_DTB := device/linaro/hikey-kernel/hi6220-hikey.dtb-$(TARGET_KERNEL_USE)
ifeq ($(TARGET_KERNEL_USE), 3.18)