bootloader: add a guardian
BASE_BOOTLOADER must have been set to any of the supported bootloader names somewhere during configuration; it is not impossible to avoid this elsewhere so let's put a guardian script which will stop the build which is known to result in a broken image.
This commit is contained in:
parent
657c0bf6ef
commit
00c58c3725
6
features.in/bootloader/install2/image-scripts.d/00-check-bootloader
Executable file
6
features.in/bootloader/install2/image-scripts.d/00-check-bootloader
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ -z "$GLOBAL_BASE_BOOTLOADER" ]; then
|
||||||
|
echo "** error: BASE_BOOTLOADER empty while bootloader feature requested" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user