mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
buildsystem: save/load build config
This commit is contained in:
parent
922331214c
commit
1a6d8a8f06
@ -765,6 +765,22 @@ check_path() {
|
|||||||
fi
|
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() {
|
check_config() {
|
||||||
dashes="==========================="
|
dashes="==========================="
|
||||||
if [ ! -d $PROJECT_DIR/$PROJECT ]; then
|
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
|
. config/show_config
|
||||||
show_config
|
show_config
|
||||||
|
|
||||||
|
save_build_config
|
||||||
|
|
||||||
setup_toolchain target
|
setup_toolchain target
|
||||||
|
|
||||||
$SCRIPTS/checkdeps
|
$SCRIPTS/checkdeps
|
||||||
|
Loading…
x
Reference in New Issue
Block a user