u-boot: Fail if config is wrongly configured

This commit is contained in:
Jernej Skrabec 2019-06-01 10:32:12 +02:00
parent 47ba37aa70
commit 81739f602f

View File

@ -35,7 +35,10 @@ esac
post_patch() {
if [ -n "$UBOOT_SYSTEM" ] && find_file_path bootloader/config; then
cat $FOUND_PATH >> "$PKG_BUILD/configs/$($ROOT/$SCRIPTS/uboot_helper $PROJECT $DEVICE $UBOOT_SYSTEM config)"
PKG_CONFIG_FILE="$PKG_BUILD/configs/$($ROOT/$SCRIPTS/uboot_helper $PROJECT $DEVICE $UBOOT_SYSTEM config)"
if [ -f "$PKG_CONFIG_FILE" ]; then
cat $FOUND_PATH >> "$PKG_CONFIG_FILE"
fi
fi
}