From 5f28ee54121e6e12f3eac26c5c21fd7737863163 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Fri, 30 Aug 2024 17:59:40 +0800
Subject: [PATCH] update build shell script to support fakeroot
---
config.json | 2 +-
images/build.sh | 2 +-
kernel/build.sh | 2 +-
tools/setup_tools.sh | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/config.json b/config.json
index bee2683..d235c2b 100644
--- a/config.json
+++ b/config.json
@@ -3,7 +3,7 @@
{
"board":"LoRaGW",
"version":"linux4sam-6.1",
- "giturl":"http://master.iot-yun.club:2211",
+ "giturl":"http://master.weike-iot.com:2211",
"crosstool":"/opt/buildroot/gcc-armel-5.5-v2019.02/bin/arm-linux-"
}
}
diff --git a/images/build.sh b/images/build.sh
index 7d9714e..66787ef 100755
--- a/images/build.sh
+++ b/images/build.sh
@@ -154,7 +154,7 @@
#echo "Parition size ${partition_size}MiB and LEB=$LEB_CNT"
set -x
- sudo mkfs.ubifs -F -d ${ROOTFS_SRC} -m ${PAGE_SIZE} -e ${LEB_SIZE} -c $LEB_CNT -o ${ubimg_tmp}
+ fakeroot mkfs.ubifs -F -d ${ROOTFS_SRC} -m ${PAGE_SIZE} -e ${LEB_SIZE} -c $LEB_CNT -o ${ubimg_tmp}
set +x
# vol_size smaller than the actual size of the partition to leave room for Ubifs internal data.
diff --git a/kernel/build.sh b/kernel/build.sh
index 78b6c67..1e2b07e 100755
--- a/kernel/build.sh
+++ b/kernel/build.sh
@@ -146,7 +146,7 @@
make -j${JOBS} ARCH=${ARCH} CROSS_COMPILE=${CROSS_COMPILE}
pr_info "mkimage -f linuxrom-${BOARD}.its ${IMG_KER}"
- mkimage -f linuxrom-${BOARD}.its ${IMG_KER} > /dev/null
+ ../bootloader/u-boot-at91/tools/mkimage -f linuxrom-${BOARD}.its ${IMG_KER} > /dev/null
chmod a+x ${IMG_KER}
set -x
diff --git a/tools/setup_tools.sh b/tools/setup_tools.sh
index 68620fb..f8d8791 100755
--- a/tools/setup_tools.sh
+++ b/tools/setup_tools.sh
@@ -99,7 +99,7 @@
systools="coreutils jq wget curl tree gawk sed unzip cpio bc lzop zstd rsync kmod kpartx \
desktop-file-utils iputils-ping xterm diffstat chrpath asciidoc docbook-utils help2man \
build-essential gcc g++ make cmake automake groff socat flex texinfo bison texi2html \
- git cvs subversion mercurial autoconf autoconf-archive parted dosfstools \
+ git cvs subversion mercurial autoconf autoconf-archive parted dosfstools fakeroot \
python3 python3-pip python3-pexpect python3-git python3-jinja2 \
lib32z1 libssl-dev libncurses-dev libgl1-mesa-dev libglu1-mesa-dev libsdl1.2-dev \
u-boot-tools mtd-utils device-tree-compiler binfmt-support "
--
Gitblit v1.9.1