From 2334ec8814e13e011b70a192541a65d70e63243a Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Fri, 26 Jan 2024 18:04:53 +0800 Subject: [PATCH] Build:Image:IGKBoard-All:Update build output system image name --- yocto/build.sh | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/yocto/build.sh b/yocto/build.sh index 5bd6c3d..5fe395a 100755 --- a/yocto/build.sh +++ b/yocto/build.sh @@ -185,14 +185,17 @@ function do_install() { + IMAGE_NAME=yocto-${YCT_VER}-${BSP_VER}.wic + ROOTFS_TAR=rootfs-yocto-${YCT_VER}.tar.zst + cd $YCT_PATH echo "" pr_info "Yocto($YCT_VER) installed to '$PRFX_PATH'" mkdir -p ${PRFX_PATH} - cp $YCT_PATH/$BUILD_DIR/tmp/deploy/images/$BOARD/$BB_TARGET-$BOARD.wic ${PRFX_PATH}/ - cp $YCT_PATH/$BUILD_DIR/tmp/deploy/images/$BOARD/$BB_TARGET-$BOARD.tar.zst ${PRFX_PATH}/ + cp $YCT_PATH/$BUILD_DIR/tmp/deploy/images/$BOARD/$BB_TARGET-$BOARD.wic ${PRFX_PATH}/$IMAGE_NAME + cp $YCT_PATH/$BUILD_DIR/tmp/deploy/images/$BOARD/$BB_TARGET-$BOARD.tar.zst ${PRFX_PATH}/$ROOTFS_TAR if [[ $BOARD =~ mx6ull ]] ; then cp $YCT_PATH/$BUILD_DIR/tmp/deploy/images/$BOARD/u-boot-${BOARD}.imx ${PRFX_PATH}/u-boot-${BOARD}.imx @@ -203,9 +206,9 @@ cd ${PRFX_PATH}/ if [[ `echo $COMPRESS | tr 'A-Z' 'a-z'` == "yes" ]] ; then - pr_info "Start bzip2 compress $BB_TARGET-$BOARD.wic" - rm -f $BB_TARGET-$BOARD.wic.bz2 - bzip2 $BB_TARGET-$BOARD.wic + pr_info "Start bzip2 compress $IMAGE_NAME" + rm -f $IMAGE_NAME.bz2 + bzip2 $IMAGE_NAME fi chmod a+x u-boot-${BOARD}.imx @@ -214,9 +217,9 @@ if [ -n "$INST_PATH" -a -w $INST_PATH ] ; then pr_info "Start copy Yocto system images to $INST_PATH" - cp u-boot-${BOARD}.imx $INST_PATH - cp $BB_TARGET-$BOARD.wic* $INST_PATH - cp $BB_TARGET-$BOARD.tar.zst $INST_PATH + cp u-boot-${BOARD}.imx $INST_PATH + cp $IMAGE_NAME* $INST_PATH + cp $ROOTFS_TAR $INST_PATH ls ${INST_PATH} && echo "" fi -- Gitblit v1.9.1