rk: scripts/mkimg: Pass '-B 0x200' to mkimage if supported

Pass '-B 0x200' to mkimage to align the FIT structure and data to 512 byte.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I56286064e8db62e4ae236e15a3de6827a577f506
This commit is contained in:
Tao Huang 2023-04-12 20:26:56 +08:00
parent 5f1c322d3b
commit 698e99a4a2

View file

@ -119,6 +119,9 @@ check_mkimage()
echo '"mkimage" command not found - U-Boot images will not be built' >&2
exit 1;
fi
if ${MKIMAGE} 2>&1 | grep -q "\[-B size\]"; then
MKIMAGE_ARG="-B 0x200 ${MKIMAGE_ARG}"
fi
}
unpack_itb()