From 8785a11c555a8dc88fce52e77c8fdf27574f7f52 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Sat, 18 Dec 2021 12:50:38 +0800
Subject: [PATCH] update build.sh to remove buster support
---
bsp/tarball/build.sh | 37 +++++++++++++++++++------------------
1 files changed, 19 insertions(+), 18 deletions(-)
diff --git a/bsp/tarball/build.sh b/bsp/tarball/build.sh
index 83bfdb4..61f4723 100755
--- a/bsp/tarball/build.sh
+++ b/bsp/tarball/build.sh
@@ -7,52 +7,53 @@
GIT_URL_NXP="https://source.codeaurora.org/external/imx"
IMX_BRANCH="lf-5.10.52-2.1.0"
-# rootfs should be buildroot or stretch/buster/bullseye for debian system
+# rootfs should be buildroot/yocto or bullseye for debian system
ROOTFS=buildroot
function do_fetch_git()
{
- SRC=$1
+ SRC=$1
- if [ -s ${SRC}-${IMX_BRANCH}.tar.xz ] ; then
+ if [ -s ${SRC}-${IMX_BRANCH}.tar.xz ] ; then
echo " -- ${SRC} fetch alread, skip it --"
return;
fi
- if [ ! -d $SRC ] ; then
- git clone --branch ${IMX_BRANCH} ${GIT_URL_NXP}/${SRC}.git
+ if [ ! -d $SRC ] ; then
+ git clone --branch ${IMX_BRANCH} ${GIT_URL_NXP}/${SRC}.git
fi
- cd $SRC
+ echo " -- start git clone ${SRC} now --"
- git config tar.tar.xz.command "xz -c"
- git archive --format=tar.xz --prefix=${SRC}/ ${IMX_BRANCH} > ${TAR_PATH}/${SRC}-${IMX_BRANCH}.tar.xz
+ cd $SRC
+ git config tar.tar.xz.command "xz -c"
+ git archive --format=tar.xz --prefix=${SRC}/ ${IMX_BRANCH} > ${TAR_PATH}/${SRC}-${IMX_BRANCH}.tar.xz
- cd -
+ cd -
rm -rf $SRC
}
function do_fetch_url()
{
- SRC=$1
+ TARBALL=$1
- if [ -s ${SRC}-${IMX_BRANCH}.tar.xz ] ; then
- echo " -- ${SRC} fetch alread, skip it --"
+ if [ -s ${TARBALL} ] ; then
+ echo " -- ${TARBALL} fetch alread, skip it --"
return;
fi
- echo " -- ${SRC} fetch alread, skip it --"
+ echo " -- start wget fetch ${TARBALL} now --"
- wget ${TARBALL_URL}/${SRC}-${IMX_BRANCH}.tar.xz
+ wget ${TARBALL_URL}/${TARBALL}
}
function do_fetch()
{
- if [ ! -z $TARBALL_URL ] ; then
- do_fetch_url uboot-imx
- do_fetch_url linux-imx
- wget ${TARBALL_URL}/rootfs_${ROOTFS}.tar.bz2
+ if [ ! -z $TARBALL_URL ] ; then
+ do_fetch_url uboot-imx-${IMX_BRANCH}.tar.xz
+ do_fetch_url linux-imx-${IMX_BRANCH}.tar.xz
+ do_fetch_url rootfs_${ROOTFS}.tar.bz2
else
do_fetch_git uboot-imx
do_fetch_git linux-imx
--
Gitblit v1.9.1