From f2e3e33d7e7b6d22ffc3be6b1fbb7dcf21bed0c4 Mon Sep 17 00:00:00 2001 From: Lukasz Leczkowski Date: Mon, 21 Oct 2024 12:53:38 +0200 Subject: [PATCH] image_builder: allow passing offset as numeric value JIRA: RTOS-956 --- scripts/image_builder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/image_builder.py b/scripts/image_builder.py index 7b26c7a4..4df0c1f5 100755 --- a/scripts/image_builder.py +++ b/scripts/image_builder.py @@ -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