FBT: Can set EXTRA_EXT_APPS from config, not only CLI

This commit is contained in:
Willy-JL
2024-05-31 06:19:05 +01:00
parent 9e39da91e2
commit 7c929338a2
3 changed files with 11 additions and 1 deletions

View File

@@ -42,6 +42,9 @@ if not os.environ.get("DIST_SUFFIX"):
# Skip external apps by default
SKIP_EXTERNAL = False
# Appid's to include even when skipping externals
EXTRA_EXT_APPS = []
# Coprocessor firmware
COPRO_OB_DATA = "scripts/ob.data"

View File

@@ -73,7 +73,9 @@ env = ENV.Clone(
FW_API_TABLE=None,
_APP_ICONS=None,
APPS=_.split(",") if (_ := GetOption("extra_int_apps")) else [],
EXTRA_EXT_APPS=_.split(",") if (_ := GetOption("extra_ext_apps")) else [],
EXTRA_EXT_APPS=_.split(",")
if (_ := GetOption("extra_ext_apps"))
else ENV["EXTRA_EXT_APPS"],
)
env.PreConfigureFwEnvionment()

View File

@@ -227,6 +227,11 @@ vars.AddVariables(
help="Skip external apps unless explicitly selected",
default=False,
),
(
"EXTRA_EXT_APPS",
"List of appids to include regardless of other configuration",
[],
),
(
"APPSRC",
"Application source directory for app to build & upload",