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 <hias@horus.com>
This commit is contained in:
Matthias Reichl 2021-09-20 10:30:06 +02:00
parent 1b9c125021
commit de465c0664

View File

@ -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}"