From d3809d5ba4d028ca6e617bbfde8c22d1ea3e5d72 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Fri, 22 Dec 2023 17:03:18 +0800 Subject: [PATCH] Update bootloader build shell script to support igkboard-imx6ull --- bootloader/build.sh | 33 +++++++++++++++++++++++++++++---- 1 files changed, 29 insertions(+), 4 deletions(-) diff --git a/bootloader/build.sh b/bootloader/build.sh index 0e19266..e6468fc 100755 --- a/bootloader/build.sh +++ b/bootloader/build.sh @@ -57,13 +57,18 @@ export CROSS_COMPILE=`jq -r ".bsp.cortexAtool" $CONF_FILE | tr 'A-Z' 'a-z'` export MCORE_COMPILE=`jq -r ".bsp.cortexMtool" $CONF_FILE | tr 'A-Z' 'a-z'` - export SRCS="imx-atf uboot-imx imx-mkimage" export BRANCH=$BSP_VER export JOBS=`cat /proc/cpuinfo | grep processor | wc -l` export ARCH=arm + # i.MX6ULL only need uboot-imx + if [[ $BOARD =~ mx6ull ]] ; then + export SRCS="uboot-imx" + return ; + fi + + export SRCS="uboot-imx imx-atf imx-mkimage" export_fmver - export SRCS="imx-atf uboot-imx imx-mkimage" if [[ $BOARD =~ mx8mp ]] ; then @@ -108,6 +113,10 @@ fi done + # i.MX6ULL only need uboot-imx + if [[ $BOARD =~ mx6ull ]] ; then + return ; + fi mkdir -p $FMW_PATH && cd $FMW_PATH @@ -194,6 +203,16 @@ fi make -j${JOBS} CROSS_COMPILE=${CROSS_COMPILE} ARCH=arm + # i.MX6ULL only need uboot-imx + if [[ $BOARD =~ mx6ull ]] ; then + cp u-boot-dtb.imx u-boot-${BOARD}.imx + chmod a+x u-boot-${BOARD}.imx + set -x + cp u-boot-${BOARD}.imx $PRFX_PATH + set +x + return ; + fi + set -x cp u-boot.bin $MKIMG_BIN_PATH cp u-boot-nodtb.bin $MKIMG_BIN_PATH @@ -270,10 +289,16 @@ cd $PRJ_PATH mkdir -p $PRFX_PATH - build_atf - #build_cortexM build_uboot + + # i.MX6ULL only need uboot-imx + if [[ ${BOARD} =~ mx6ull ]] ; then + return ; + fi + + build_atf build_imxboot + #build_cortexM } function do_install() -- Gitblit v1.9.1