Skip to content

Commit

Permalink
check arch bits even if config doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
wsipak committed Mar 25, 2024
1 parent 01df36f commit b828ff5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,16 +455,19 @@ def _check_extend_memory(self, west_output: str) -> bool:
return fail

def _check_if_64bit(self):
zephyr_config_file = self.get_artifacts()["config"]
try:
zephyr_config_file = self.get_artifacts()["config"]

with open(zephyr_config_file) as f:
zephyr_config = f.read().splitlines()
with open(zephyr_config_file) as f:
zephyr_config = f.read().splitlines()

symbol = 'CONFIG_64BIT=y'
for line in zephyr_config:
if line == symbol:
if 'CONFIG_64BIT=y' in zephyr_config:
return True

except KeyError:
# "config" doesn't exist in artifacts
pass

return False

def _check_kconfig_requirements(self):
Expand Down

0 comments on commit b828ff5

Please sign in to comment.