guowenxue
2024-04-04 f5c330abb65b94a5fbdcd1e09977b9269402801c
images/build.sh
@@ -23,7 +23,6 @@
# shell script will exit once get command error
set -e
set -u
#+-------------------------+
#| Shell script functions  |
@@ -104,7 +103,7 @@
    export UBOOT_BINPATH=$TOP_PATH/bootloader/install/
    export KERNEL_BINPATH=$TOP_PATH/kernel/install/
    export ROOTFS_YCTPATH=$TOP_PATH/yocto/install/
    export IMAGE_NAME=${DIS_TYPE}-${DIS_VER}-${BSP_VER}.img
    export IMAGE_NAME=${DIS_TYPE}-${DIS_VER}-${BOARD}.img
    export KERNEL_IMAGE=Image
    if [[ $BOARD =~ mx8ulp ]] || [[ $BOARD =~ mx8mq ]] || [[ $BOARD =~ mx8mm ]] ; then
@@ -213,8 +212,12 @@
    pr_info "start install linux kernel images"
    mount -t vfat /dev/mapper/${LOOP_DEV}p1 ${MNT_POINT}
    cp -rf $PRJ_PATH/patches/config-${BOARD}.txt ${MNT_POINT}/config.txt
    cp -rf $KERNEL_BINPATH/$KERNEL_IMAGE ${MNT_POINT}/
    cp -rf $KERNEL_BINPATH/${BOARD}.dtb ${MNT_POINT}/
    if [ -d $KERNEL_BINPATH/overlays ] ; then
        cp -rf $KERNEL_BINPATH/overlays ${MNT_POINT}/
    fi
    sync && umount ${MNT_POINT}