mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-23 08:20:00 +00:00
makefile_helper: only source necessary values from buildsystem's config
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
This commit is contained in:
parent
0a76a32d5c
commit
e4bded9315
@ -6,13 +6,16 @@
|
||||
set -e
|
||||
|
||||
# If config/options can't be sourced, abort. PWD isn't the expected ROOT.
|
||||
. config/options ""
|
||||
# Only source from config/options what will be used
|
||||
BUILD_ROOT=$(PROJECT= DEVICE= ARCH= . config/options "" && echo "${BUILD_ROOT}")
|
||||
BUILD_BASE=$(PROJECT= DEVICE= ARCH= . config/options "" && echo "${BUILD_BASE}")
|
||||
|
||||
if [ -z "${BUILD_BASE}" -o -z "${BUILD_ROOT}" ]; then
|
||||
# make sure variables are set before running an rm
|
||||
echo "error: ${0}: both BUILD_BASE and BUILD_ROOT must be set when running \"[clean|distclean]\"; aborting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# task handling
|
||||
case $1 in
|
||||
--clean)
|
||||
|
Loading…
Reference in New Issue
Block a user