From 30a8c3ba8479a1fdc4439a97e98f6aa3915e9567 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Sat, 13 Nov 2021 13:04:41 +0800 Subject: [PATCH] update bsp build.sh --- bsp/rootfs/build.sh | 10 +++++----- bsp/build.sh | 10 ++++++---- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/bsp/build.sh b/bsp/build.sh index 8bd0c76..b561316 100755 --- a/bsp/build.sh +++ b/bsp/build.sh @@ -21,6 +21,8 @@ { DIR=$1 + cd $PRJ_PATH + sed -i "s|^BOARD.*|BOARD=${BOARD}|g" ${DIR}/build.sh if [ $DIR = bootloader -o $DIR == kernel ] ; then @@ -46,13 +48,13 @@ function do_build() { - cd tarball && ./build.sh && cd - + cd $PRJ_PATH/tarball && ./build.sh && cd - - cd bootloader && ./build.sh && cd - + cd $PRJ_PATH/bootloader && ./build.sh && cd - - cd kernel && ./build.sh && cd - + cd $PRJ_PATH/kernel && ./build.sh && cd - - cd rootfs && ./build.sh && cd - + cd $PRJ_PATH/rootfs && ./build.sh && cd - } do_modify diff --git a/bsp/rootfs/build.sh b/bsp/rootfs/build.sh index b3e996b..57d0dd8 100755 --- a/bsp/rootfs/build.sh +++ b/bsp/rootfs/build.sh @@ -20,11 +20,6 @@ EXTRA_APPS="vim net-tools network-manager tree file parted locales lsb-release tzdata wireless-tools openssh-server" -if [ `id -u` != 0 ] ; then - echo "ERRROR: This shell script must excuted as root privilege." - exit 0; -fi - set -u set -e @@ -143,6 +138,11 @@ exit 0; fi +if [ `id -u` != 0 ] ; then + echo "ERRROR: This shell script must excuted as root privilege." + exit 0; +fi + do_systools do_fetch -- Gitblit v1.9.1