Merge "db845c/rb5: Make version 4 as the default boot image header" into main
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