Merge pull request #12476 from OpenNuvoton/nuvoton_build_no_cmsis

Fix build failure when target's cmsis doesn't exist
pull/12463/head
Martin Kojtal 2020-03-03 14:19:36 +00:00 committed by GitHub
commit 37aafc9da8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -798,12 +798,12 @@ class Config(object):
start, size = self._get_primary_memory_override( start, size = self._get_primary_memory_override(
active_memory.lower() active_memory.lower()
) )
if not start: if start is None:
raise ConfigException( raise ConfigException(
"Bootloader not supported on this target. {} " "Bootloader not supported on this target. {} "
"start not found in targets.json.".format(active_memory) "start not found in targets.json.".format(active_memory)
) )
if not size: if size is None:
raise ConfigException( raise ConfigException(
"Bootloader not supported on this target. {} " "Bootloader not supported on this target. {} "
"size not found in targets.json.".format(active_memory) "size not found in targets.json.".format(active_memory)