From c1800dc0e72a10d3279cda2af8c303c75ab1cbd7 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Thu, 18 Nov 2021 22:37:52 +0800
Subject: [PATCH] update uboot patch, fix TF card reset/vselect pins bug

---
 bsp/build.sh |   18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)

diff --git a/bsp/build.sh b/bsp/build.sh
index b561316..461e261 100755
--- a/bsp/build.sh
+++ b/bsp/build.sh
@@ -23,25 +23,21 @@
 
     cd $PRJ_PATH
 
-    sed -i "s|^BOARD.*|BOARD=${BOARD}|g" ${DIR}/build.sh 
+    sed -i "s|^BOARD.*|BOARD=${BOARD}|g" ${DIR}/build.sh
 
-    if [ $DIR = bootloader -o $DIR == kernel ] ; then 
-        sed -i "s|^CROSS_TOOL.*|CROSS_TOOL=${CROSS_TOOL}|g" ${DIR}/build.sh 
-        sed -i "s|^TAR_PATH.*|TAR_PATH=${TAR_PATH}|g" ${DIR}/build.sh 
+    if [ $DIR = bootloader -o $DIR == kernel ] ; then
+        sed -i "s|^CROSS_TOOL.*|CROSS_TOOL=${CROSS_TOOL}|g" ${DIR}/build.sh
         sed -i "s|^BSP_BRANCH.*|BSP_BRANCH=${BSP_BRANCH}|g" ${DIR}/build.sh
-    elif [ $DIR = rootfs -o $DIR == images ] ; then 
-        sed -i "s|^TAR_PATH.*|TAR_PATH=${TAR_PATH}|g" ${DIR}/build.sh 
-        sed -i "s|^ROOTFS=.*|ROOTFS=${ROOTFS}|g" ${DIR}/build.sh 
-    elif [ $DIR = tarball ] ; then
-        sed -i "s|^ROOTFS=.*|ROOTFS=${ROOTFS}|g" ${DIR}/build.sh 
+    elif [ $DIR = rootfs -o $DIR == images -o $DIR = tarball ] ; then
+        sed -i "s|^ROOTFS=.*|ROOTFS=${ROOTFS}|g" ${DIR}/build.sh
     fi
 }
 
 function do_modify()
 { 
     do_modify_build tarball
-    do_modify_build bootloader 
-    do_modify_build kernel 
+    do_modify_build bootloader
+    do_modify_build kernel
     do_modify_build rootfs 
     do_modify_build images
 }

--
Gitblit v1.9.1