options: support per-buildsystem options

This commit is contained in:
chewitt 2019-11-09 14:17:03 +00:00
parent 8c2dda0d92
commit c43b5f2fbe
2 changed files with 9 additions and 1 deletions

3
.gitignore vendored
View File

@ -12,6 +12,9 @@
# mkpkg temp
mkpkg-temp
# options
/.libreelec
# private working directory
/.work/

View File

@ -86,7 +86,12 @@ VERBOSE="${VERBOSE:-yes}"
# directory.
CCACHE_CACHE_SIZE="10G"
# read options from $HOME if available
# read local persistent options from $ROOT if available
if [ -f "${ROOT}/.libreelec/options" ]; then
. "${ROOT}/.libreelec/options"
fi
# read global persistent options from $HOME if available
if [ -f "${HOME}/.libreelec/options" ]; then
. "${HOME}/.libreelec/options"
fi