diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index ee03e48..9ed0981 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -106,7 +106,14 @@ BOARD_KERNEL_CMDLINE += service_locator.enable=1 BOARD_KERNEL_CMDLINE += lpm_levels.sleep_disabled=1 BOARD_KERNEL_CMDLINE += loop.max_part=7 +# Set header version for bootimage +ifneq ($(strip $(TARGET_KERNEL_APPEND_DTB)),true) +# Enable DTB in bootimage and set header version +BOARD_INCLUDE_DTB_IN_BOOTIMG := true +BOARD_BOOTIMG_HEADER_VERSION := 2 +else BOARD_BOOTIMG_HEADER_VERSION := 1 +endif BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOTIMG_HEADER_VERSION) # Media