mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_sm6150-common
synced 2026-01-27 12:07:36 +00:00
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 <schikk@codeaurora.org>
This commit is contained in:
committed by
Arian
parent
69b52a2a9a
commit
07f53dd2f3
@@ -106,7 +106,14 @@ BOARD_KERNEL_CMDLINE += service_locator.enable=1
|
|||||||
BOARD_KERNEL_CMDLINE += lpm_levels.sleep_disabled=1
|
BOARD_KERNEL_CMDLINE += lpm_levels.sleep_disabled=1
|
||||||
BOARD_KERNEL_CMDLINE += loop.max_part=7
|
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
|
BOARD_BOOTIMG_HEADER_VERSION := 1
|
||||||
|
endif
|
||||||
BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOTIMG_HEADER_VERSION)
|
BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOTIMG_HEADER_VERSION)
|
||||||
|
|
||||||
# Media
|
# Media
|
||||||
|
|||||||
Reference in New Issue
Block a user