From cf58340a278e34f2f1845750a0265e7b8b9d6043 Mon Sep 17 00:00:00 2001 From: chewitt Date: Sat, 9 Nov 2019 14:17:03 +0000 Subject: [PATCH] options: support per-buildsystem options --- .gitignore | 3 +++ config/options | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ac9936c872..96833ce134 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,9 @@ # mkpkg temp mkpkg-temp +# options +/.libreelec + # private working directory /.work/ diff --git a/config/options b/config/options index 2bebb8d4cc..ca105cf0f5 100644 --- a/config/options +++ b/config/options @@ -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