From de465c06644f7690b357bf64054dbba789cd4aa4 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Mon, 20 Sep 2021 10:30:06 +0200 Subject: [PATCH] config/options: default to Generic device when building Generic project This fixes building and calling into build scripts without PROJECT, DEVICE and ARCH set Signed-off-by: Matthias Reichl --- config/options | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/options b/config/options index 974860b1f5..07f04f7b82 100644 --- a/config/options +++ b/config/options @@ -26,6 +26,11 @@ DISTRO="${DISTRO:-LibreELEC}" # determines PROJECT, if not forced by user export PROJECT="${PROJECT:-Generic}" +# default to Generic device if building Generic project without device set +if [ "${PROJECT}" = "Generic" -a -z "${DEVICE}" ]; then + export DEVICE="Generic" +fi + # determines TARGET_ARCH, if not forced by user export ARCH="${ARCH:-x86_64}" TARGET_ARCH="${ARCH}"