db845c/rb5: Make version 4 as the default boot image header
..unless booting with android-5.4 kernel version because
android11-5.4 do not support bootconfig.
Change-Id: I160a179983f7c4a6613e601f5c1bbfd183b6960d
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
diff --git a/db845c.mk b/db845c.mk
index e949af1..ea61e1e 100644
--- a/db845c.mk
+++ b/db845c.mk
@@ -1,7 +1,11 @@
$(call inherit-product, device/linaro/dragonboard/full.mk)
$(call inherit-product, device/linaro/dragonboard/db845c/device.mk)
-TARGET_USES_BOOT_HDR_V3 ?= true
+ifeq ($(TARGET_KERNEL_USE),5.4)
+ TARGET_USES_BOOT_HDR_V3 := true
+else
+ TARGET_USES_BOOT_HDR_V3 ?= false
+endif
# Product overrides
PRODUCT_NAME := db845c