Skip to content

Commit 3224165

Browse files
author
seblec
committed
fix(build): handle grpcfuse filesystem issue in openwrt/rules.mk
- Remove the `-p` flag from the `cp` command to avoid issues with grpcfuse - Modify openwrt/rules.mk to conditionally apply this change if the filesystem is grpcfuse
1 parent 94f34ab commit 3224165

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ cp .config.keep .config
108108
echo "$OTB_PKGS_I18N" >> .config
109109

110110
make defconfig
111-
sed -i 's/CP:=cp -fpR/CP:=cp -fR/g' ./openwrt/rules.mk
111+
112+
if [ "$(df . | awk 'NR==2 {print $1}')" = "grpcfuse" ]; then
113+
sed -i 's/CP:=cp -fpR/CP:=cp -fR/g' ./openwrt/rules.mk
114+
fi
115+
112116
if ! make "$@"; then
113117
make "$@" -j1 V=s 2>&1 | tee error.log
114118
exit 1

0 commit comments

Comments
 (0)