linux: fix post_patch which may end with exit code == 1 if no overlays to cp

This commit is contained in:
MilhouseVH 2017-07-03 19:13:58 +01:00
parent 6963de3002
commit dee57b22d5

View File

@ -133,11 +133,11 @@ post_patch() {
# install extra dts files # install extra dts files
for f in $PROJECT_DIR/$PROJECT/config/*-overlay.dts; do for f in $PROJECT_DIR/$PROJECT/config/*-overlay.dts; do
[ -f "$f" ] && cp -v $f $PKG_BUILD/arch/$TARGET_KERNEL_ARCH/boot/dts/overlays [ -f "$f" ] && cp -v $f $PKG_BUILD/arch/$TARGET_KERNEL_ARCH/boot/dts/overlays || true
done done
if [ -n "$DEVICE" ]; then if [ -n "$DEVICE" ]; then
for f in $PROJECT_DIR/$PROJECT/devices/$DEVICE/config/*-overlay.dts; do for f in $PROJECT_DIR/$PROJECT/devices/$DEVICE/config/*-overlay.dts; do
[ -f "$f" ] && cp -v $f $PKG_BUILD/arch/$TARGET_KERNEL_ARCH/boot/dts/overlays [ -f "$f" ] && cp -v $f $PKG_BUILD/arch/$TARGET_KERNEL_ARCH/boot/dts/overlays || true
done done
fi fi
} }