From fce744b0d9a648da5e2765af625c96370492f698 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Mon, 13 Dec 2021 09:39:23 +0800
Subject: [PATCH] update images and rootfs build shell script
---
bsp/tarball/build.sh | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/bsp/tarball/build.sh b/bsp/tarball/build.sh
index ff1d933..af918e1 100755
--- a/bsp/tarball/build.sh
+++ b/bsp/tarball/build.sh
@@ -8,36 +8,36 @@
IMX_BRANCH="lf-5.10.52-2.1.0"
# rootfs should be buildroot or stretch/buster/bullseye for debian system
-ROOTFS=buster
+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
echo " -- start git clone ${SRC} now --"
- 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 $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()
{
- TARBALL=$1
+ TARBALL=$1
- if [ -s ${TARBALL} ] ; then
+ if [ -s ${TARBALL} ] ; then
echo " -- ${TARBALL} fetch alread, skip it --"
return;
fi
@@ -50,7 +50,7 @@
function do_fetch()
{
- if [ ! -z $TARBALL_URL ] ; then
+ 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
--
Gitblit v1.9.1