Skip to content

Commit

Permalink
image_builder: allow passing offset as numeric value
Browse files Browse the repository at this point in the history
JIRA: RTOS-956
  • Loading branch information
lukileczo committed Oct 21, 2024
1 parent 6cab908 commit f2e3e33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/image_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ def __post_init__(self, extra_flags: str = ''):
self.absolute = True

# change str->desired type TODO: use decorators?
self.offset = int(self.offset, 0)
if isinstance(self.offset, str):
self.offset = int(self.offset, 0)

self.size = 0x1000 # FIXME: get real defined script size

Expand Down

0 comments on commit f2e3e33

Please sign in to comment.