mirror of https://github.com/ARMmbed/mbed-os.git
Filter resources by included libraries
parent
c5a721c104
commit
0b64c9cbbf
|
@ -1311,8 +1311,17 @@ class Config(object):
|
||||||
for name, missing in missing_requirements.items()
|
for name, missing in missing_requirements.items()
|
||||||
)
|
)
|
||||||
raise ConfigException(message)
|
raise ConfigException(message)
|
||||||
|
all_json_paths = [
|
||||||
|
cfg["__config_path"] for cfg in self.lib_config_data.values()
|
||||||
|
]
|
||||||
|
included_json_files = [
|
||||||
|
ref for ref in resources.get_file_refs(FileType.JSON)
|
||||||
|
if (
|
||||||
|
not ref.name.endswith(self.__mbed_lib_config_name)
|
||||||
|
or ref.path in all_json_paths
|
||||||
|
)
|
||||||
|
]
|
||||||
|
resources.filter_by_libraries(included_json_files)
|
||||||
if (hasattr(self.target, "release_versions") and
|
if (hasattr(self.target, "release_versions") and
|
||||||
"5" not in self.target.release_versions and
|
"5" not in self.target.release_versions and
|
||||||
"rtos" in self.lib_config_data):
|
"rtos" in self.lib_config_data):
|
||||||
|
|
Loading…
Reference in New Issue