Commit f03ec07a authored by Stephan's avatar Stephan
Browse files

build.sh: add option to "patch" to prevent creating backup files. those backup...

build.sh: add option to "patch" to prevent creating backup files. those backup files must not be included in rootfs of firmware because those can cause unexpected runtime issues. for instance I had a problem where backuped files are stored under /etc/board.d/. those files are executed and had created invalid /etc/config/network for some devices with switches
parent 759cf930
......@@ -322,7 +322,9 @@ setup_buildroot ()
for i in $openwrt_patches_dir/*
do
echo "apply openwrt patch: $i to buildroot:$buildroot"
patch --directory=$buildroot -p1 < $i
# --no-backup-if-mismatch avoids creating backup files for files
# with different names or if not exist (new files)
patch --no-backup-if-mismatch --directory=$buildroot -p1 < $i
done
fi
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment