From 8d50ec0c607624649987ce389e54a6de00a07098 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Sun, 05 Jun 2022 20:32:27 +0800
Subject: [PATCH] 	1, Update top build.sh 	2, Update setup_env.sh 	3, update rootfs build shell script and json config file 	4, update driver build shell script and json config file

---
 bsp/scripts/setup_env.sh |   26 +++++++++++++++-----------
 1 files changed, 15 insertions(+), 11 deletions(-)

diff --git a/bsp/scripts/setup_env.sh b/bsp/scripts/setup_env.sh
index aa6ca1d..7e59ff0 100755
--- a/bsp/scripts/setup_env.sh
+++ b/bsp/scripts/setup_env.sh
@@ -8,19 +8,21 @@
 CROSS_TOOL=/opt/buildroot/cortexA7/bin/arm-linux-
 
 # Source code download address
-SRC_URL=http://weike-iot.com:2211/imx6ull/bsp
-#SRC_URL=http://127.0.0.1:2211/imx6ull/bsp
+SRC_URL=http://weike-iot.com:2211/imx6ull/
+#SRC_URL=http://127.0.0.1:2211/imx6ull/
 BSP_VER=lf-5.10.52-2.1.0
 
 # SYSTEM  should be: yocto, buildroot or debian
-# DISTRO  should be: hardknott, 2021.02 or bullseye
-SYSTEM=yocto
-DISTRO=hardknott
+# DISTRO  should be: hardknott/honister, 2021.02 or bullseye
+SYSTEM=buildroot
+DISTRO=2021.02
 
-if [ $SYSTEM == "debian" ] ; then
-    SYSNAME=${DISTRO}
-else
+TARBALL_DIR=${PRJ_PATH}/../tarballs/
+
+if [ $SYSTEM == "buildroot" ] ; then
     SYSNAME=${SYSTEM}
+else
+    SYSNAME=${DISTRO}
 fi
 
 ROOTFS_DIR=rootfs_${SYSNAME}
@@ -143,13 +145,15 @@
     dirname=$2
     tarfile=`basename $url`
 
-    if [ ! -f $tarfile ] ; then
+	mkdir -p ${TARBALL_DIR}
+
+    if [ ! -f ${TARBALL_DIR}/$tarfile ] ; then
         pr_info "wget $url"
-        wget $url > /dev/null 2>&1
+        wget $url -P ${TARBALL_DIR} > /dev/null 2>&1
     fi
 
     if [ ! -d $dirname ] ; then
-        do_unpack $tarfile
+        do_unpack ${TARBALL_DIR}/$tarfile
     fi
 }
 

--
Gitblit v1.9.1