forked from freifunk-franken/firmware
buildscript: Improve loop for applying build_patches
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Robert Langhammer <rlanghammer@web.de>
This commit is contained in:
parent
014f66a8d7
commit
9e6b4c6982
10
buildscript
10
buildscript
|
@ -115,12 +115,10 @@ get_source() {
|
||||||
}
|
}
|
||||||
|
|
||||||
patch_target() {
|
patch_target() {
|
||||||
if [ "$(find "$PWD"/build_patches/openwrt/*.patch 2> /dev/null | wc -l)" -ge 1 ]; then
|
for patch in $(ls "$PWD"/build_patches/openwrt/*.patch 2>/dev/null); do
|
||||||
for patch in "$PWD"/build_patches/openwrt/*.patch; do
|
echo "Applying $patch:"
|
||||||
echo "Applying $patch:"
|
patch --no-backup-if-mismatch -p1 -d "$target" -i "$patch"
|
||||||
patch --no-backup-if-mismatch -p1 -d "$target" -i "$patch"
|
done
|
||||||
done
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user