diff options
author | Isaac J. Manjarres <isaacmanjarres@google.com> | 2024-01-03 18:15:51 -0800 |
---|---|---|
committer | Isaac Manjarres <isaacmanjarres@google.com> | 2024-01-04 23:37:32 +0000 |
commit | 1626d0ef633ddf37c0dfb6b73c571778545e4533 (patch) | |
tree | f1b6ee8985e2f7ea398a0773f102402423e5865d | |
parent | 7c89e2f34da3105947984062feb2e61d3b3225bc (diff) | |
download | build-1626d0ef633ddf37c0dfb6b73c571778545e4533.tar.gz |
build_utils.sh: Add support for additional arguments to mkbootimg.py
mkbootimg.py supports specifying the kernel base, as well as other
offsets that a bootloader can read from the vendor boot header.
Therefore, add support for specifying these offsets when building
the vendor_boot image.
Bug: 308443544
Change-Id: I9da3284a93ee064d07034d3a7a3e42c07e0e9b88
Signed-off-by: Isaac J. Manjarres <isaacmanjarres@google.com>
-rw-r--r-- | build_utils.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build_utils.sh b/build_utils.sh index 39c3561..10e8077 100644 --- a/build_utils.sh +++ b/build_utils.sh @@ -524,6 +524,12 @@ function build_boot_images() { if [ -n "${RAMDISK_OFFSET}" ]; then MKBOOTIMG_ARGS+=("--ramdisk_offset" "${RAMDISK_OFFSET}") fi + if [ -n "${DTB_OFFSET}" ]; then + MKBOOTIMG_ARGS+=("--dtb_offset" "${DTB_OFFSET}") + fi + if [ -n "${KERNEL_OFFSET}" ]; then + MKBOOTIMG_ARGS+=("--kernel_offset" "${KERNEL_OFFSET}") + fi DTB_FILE_LIST=$(find ${DIST_DIR} -name "*.dtb" | sort) if [ -z "${DTB_FILE_LIST}" ]; then |