From 00c58c3725c601abfde15883450f37be0ea08102 Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Wed, 13 Nov 2013 19:11:24 +0400 Subject: [PATCH] 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. --- .../bootloader/install2/image-scripts.d/00-check-bootloader | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 features.in/bootloader/install2/image-scripts.d/00-check-bootloader diff --git a/features.in/bootloader/install2/image-scripts.d/00-check-bootloader b/features.in/bootloader/install2/image-scripts.d/00-check-bootloader new file mode 100755 index 00000000..22ebf758 --- /dev/null +++ b/features.in/bootloader/install2/image-scripts.d/00-check-bootloader @@ -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