HI @Zhiming_Liu
1. source build/envsetup.sh
export CLANG_PATH=/opt/prebuilt-android-clang
export AARCH64_GCC_CROSS_COMPILE=/opt/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-
2. lunch evk_8mp-userdebug
3. ./imx-make.sh bootloader -j24
steps i have checked is up to date. but it will throw same error.
../iMX8M/mkimage_imx8.c: In function ‘copy_file.constprop’:
../iMX8M/mkimage_imx8.c:345:21: warning: ‘write’ reading 5 bytes from a region of size 4 [-Wstringop-overread]
345 | if (write(ifd, (char *)&zero, 4-tail) != 4-tail) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../iMX8M/mkimage_imx8.c:303:13: note: source object ‘zero’ of size 4
303 | int zero = 0;
| ^~~~
In file included from ../iMX8M/mkimage_imx8.c:24: