Skip to content

Commit 37aafc9

Browse files
authored
Merge pull request #12476 from OpenNuvoton/nuvoton_build_no_cmsis
Fix build failure when target's cmsis doesn't exist
2 parents eaac84b + 8e8b546 commit 37aafc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/config/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,12 +798,12 @@ def get_all_active_memories(self, memory_list):
798798
start, size = self._get_primary_memory_override(
799799
active_memory.lower()
800800
)
801-
if not start:
801+
if start is None:
802802
raise ConfigException(
803803
"Bootloader not supported on this target. {} "
804804
"start not found in targets.json.".format(active_memory)
805805
)
806-
if not size:
806+
if size is None:
807807
raise ConfigException(
808808
"Bootloader not supported on this target. {} "
809809
"size not found in targets.json.".format(active_memory)

0 commit comments

Comments
 (0)