From 07f53dd2f37d670f9acaa713188b9626d88a888b Mon Sep 17 00:00:00 2001 From: Swetha Chikkaboraiah Date: Thu, 27 Jun 2019 09:49:10 +0530 Subject: [PATCH] sm6150-common: BoardConfig: Add support for header version 2 of boot image Adding support to make a bootimage with header version as 2. This bootimage no longer has the dtbs appended to the kernel. All the dtbs are made into a new image called dtb.img and this image is present in the bootimage. Change-Id: I44fe055caafc3306313e1012fb2e14d335a13337 Signed-off-by: Swetha Chikkaboraiah --- BoardConfigCommon.mk | 7 +++++++ 1 file changed, 7 insertions(+) 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