From 809a5822ddb5ac178e213edb14244fa27c3efc2c Mon Sep 17 00:00:00 2001
From: guowenxu <guowenxue@gmail.com>
Date: Sun, 14 Nov 2021 13:58:15 +0800
Subject: [PATCH] update uboot patch file, fix network card and LCD driver bug, update u-boot env config
---
bsp/build.sh | 28 +++++++++++++---------------
1 files changed, 13 insertions(+), 15 deletions(-)
diff --git a/bsp/build.sh b/bsp/build.sh
index 8bd0c76..461e261 100755
--- a/bsp/build.sh
+++ b/bsp/build.sh
@@ -21,38 +21,36 @@
{
DIR=$1
- sed -i "s|^BOARD.*|BOARD=${BOARD}|g" ${DIR}/build.sh
+ cd $PRJ_PATH
- if [ $DIR = bootloader -o $DIR == kernel ] ; then
- sed -i "s|^CROSS_TOOL.*|CROSS_TOOL=${CROSS_TOOL}|g" ${DIR}/build.sh
- sed -i "s|^TAR_PATH.*|TAR_PATH=${TAR_PATH}|g" ${DIR}/build.sh
+ sed -i "s|^BOARD.*|BOARD=${BOARD}|g" ${DIR}/build.sh
+
+ if [ $DIR = bootloader -o $DIR == kernel ] ; then
+ sed -i "s|^CROSS_TOOL.*|CROSS_TOOL=${CROSS_TOOL}|g" ${DIR}/build.sh
sed -i "s|^BSP_BRANCH.*|BSP_BRANCH=${BSP_BRANCH}|g" ${DIR}/build.sh
- elif [ $DIR = rootfs -o $DIR == images ] ; then
- sed -i "s|^TAR_PATH.*|TAR_PATH=${TAR_PATH}|g" ${DIR}/build.sh
- sed -i "s|^ROOTFS=.*|ROOTFS=${ROOTFS}|g" ${DIR}/build.sh
- elif [ $DIR = tarball ] ; then
- sed -i "s|^ROOTFS=.*|ROOTFS=${ROOTFS}|g" ${DIR}/build.sh
+ elif [ $DIR = rootfs -o $DIR == images -o $DIR = tarball ] ; then
+ sed -i "s|^ROOTFS=.*|ROOTFS=${ROOTFS}|g" ${DIR}/build.sh
fi
}
function do_modify()
{
do_modify_build tarball
- do_modify_build bootloader
- do_modify_build kernel
+ do_modify_build bootloader
+ do_modify_build kernel
do_modify_build rootfs
do_modify_build images
}
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