From ed15bd410abbb840c6a8f183dd7259c20a656e53 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Fri, 31 May 2024 15:28:39 +0800
Subject: [PATCH] Build:IGKBoard-All: Update gitignore file

---
 images/build.sh |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/images/build.sh b/images/build.sh
index e51ee5d..11e5c3a 100755
--- a/images/build.sh
+++ b/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,8 @@
     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
         export UBOOT_OFFSET_SECTOR=66
@@ -112,6 +112,7 @@
         export UBOOT_OFFSET_SECTOR=64
     elif [[ $BOARD =~ mx6 ]] || [[ $BOARD =~ mx7 ]] ; then
         export UBOOT_OFFSET_SECTOR=2
+        export KERNEL_IMAGE=zImage
     fi
 }
 
@@ -158,7 +159,7 @@
 
         # Download source code packet
         if [ ! -s $TARBALL_PATH/$tarball ] ; then
-            wget $BSP_URL/${BOARD}/rootfs/$tarball -P $TARBALL_PATH
+            wget $BSP_URL/imx/${BOARD}/rootfs/$tarball -P $TARBALL_PATH
         fi
 
         # decompress source code packet
@@ -211,8 +212,12 @@
 
     pr_info "start install linux kernel images"
     mount -t vfat /dev/mapper/${LOOP_DEV}p1 ${MNT_POINT}
-    cp -rf $KERNEL_BINPATH/Image       ${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}
 
@@ -220,6 +225,7 @@
     rm -rf $ROOTFS/lib/modules/
     mkdir -p $ROOTFS/lib/modules/
     cp -rf $KERNEL_BINPATH/lib/modules/[0-9]*\.[0-9]*\.[0-9]* $ROOTFS/lib/modules/
+    cp -rf $KERNEL_BINPATH/lib/firmware/* $ROOTFS/lib/firmware/
 
     pr_info "start install root filesystem"
     mount -t ext4 /dev/mapper/${LOOP_DEV}p2 ${MNT_POINT}

--
Gitblit v1.9.1