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/build.sh | 10 ++++++----
1 files changed, 6 insertions(+), 4 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
--
Gitblit v1.9.1