From 19f3dfb0650cb19fecc317af00c678a02128738f Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Wed, 01 Jun 2022 23:36:05 +0800 Subject: [PATCH] Add uboot new patch and logo file --- bsp/scripts/setup_env.sh | 22 +++++++++++++--------- 1 files changed, 13 insertions(+), 9 deletions(-) diff --git a/bsp/scripts/setup_env.sh b/bsp/scripts/setup_env.sh index aa6ca1d..701935d 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 +# DISTRO should be: hardknott/honister, 2021.02 or bullseye SYSTEM=yocto DISTRO=hardknott -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