mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
buildsystem: save/load build config
This commit is contained in:
parent
922331214c
commit
1a6d8a8f06
@ -765,6 +765,22 @@ check_path() {
|
||||
fi
|
||||
}
|
||||
|
||||
load_build_config() {
|
||||
if [ -d "${1}" -a -f ${1}/.build.conf ]; then
|
||||
source ${1}/.build.conf
|
||||
return 0
|
||||
fi
|
||||
return 1
|
||||
}
|
||||
|
||||
save_build_config() {
|
||||
local var
|
||||
rm -f ${BUILD}/.build.conf
|
||||
for var in PROJECT DEVICE ARCH DEBUG BUILD_SUFFIX; do
|
||||
echo "export ${var}=\"${!var}\"" >> ${BUILD}/.build.conf
|
||||
done
|
||||
}
|
||||
|
||||
check_config() {
|
||||
dashes="==========================="
|
||||
if [ ! -d $PROJECT_DIR/$PROJECT ]; then
|
||||
|
@ -25,6 +25,8 @@ unset _CACHE_PACKAGE_LOCAL _CACHE_PACKAGE_GLOBAL _DEBUG_DEPENDS_LIST _DEBUG_PACK
|
||||
. config/show_config
|
||||
show_config
|
||||
|
||||
save_build_config
|
||||
|
||||
setup_toolchain target
|
||||
|
||||
$SCRIPTS/checkdeps
|
||||
|
Loading…
x
Reference in New Issue
Block a user