mirror of
https://github.com/wled/WLED.git
synced 2025-07-23 10:46:33 +00:00
Remove nonfunctional usermod validation
Non-platform-safe usermods are filtered out before validation runs; so this check is no longer functional.
This commit is contained in:
parent
f9bfcce65d
commit
368351bbdd
@ -56,19 +56,6 @@ def validate_map_file(source, target, env):
|
|||||||
# Identify the WLED module builders, set by load_usermods.py
|
# Identify the WLED module builders, set by load_usermods.py
|
||||||
module_lib_builders = env['WLED_MODULES']
|
module_lib_builders = env['WLED_MODULES']
|
||||||
|
|
||||||
# Filter/warn if an incompatible usermod was requested
|
|
||||||
if env.GetProjectOption("custom_usermods","") == "*":
|
|
||||||
# All usermods build; filter non-platform-OK modules
|
|
||||||
module_lib_builders = [builder for builder in module_lib_builders if env.IsCompatibleLibBuilder(builder)]
|
|
||||||
else:
|
|
||||||
incompatible_builders = [builder for builder in module_lib_builders if not env.IsCompatibleLibBuilder(builder)]
|
|
||||||
if incompatible_builders:
|
|
||||||
secho(
|
|
||||||
f"ERROR: Modules {[b.name for b in incompatible_builders]} are not compatible with this platform!",
|
|
||||||
fg="red",
|
|
||||||
err=True)
|
|
||||||
Exit(1)
|
|
||||||
|
|
||||||
# Extract the values we care about
|
# Extract the values we care about
|
||||||
modules = {Path(builder.build_dir).name: builder.name for builder in module_lib_builders}
|
modules = {Path(builder.build_dir).name: builder.name for builder in module_lib_builders}
|
||||||
secho(f"INFO: {len(modules)} libraries linked as WLED optional/user modules")
|
secho(f"INFO: {len(modules)} libraries linked as WLED optional/user modules")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user