Skip to content

Commit

Permalink
west: sign.py: fix logic bug
Browse files Browse the repository at this point in the history
Fix bug where if `CONFIG_BOOTLOADER_MCUBOOT` is set sign.py incorrectly
shows warning `CONFIG_BOOTLOADER_MCUBOOT is not set to y...`.

Signed-off-by: Arvin Farahmand <arvinf@ip-logix.com>
  • Loading branch information
arvinf authored and galak committed May 7, 2021
1 parent 56c2235 commit 2de6bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/west_commands/sign.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def sign(self, command, build_dir, build_conf, formats):
flash = self.edt_flash_node(b, args.quiet)
align, addr, size = self.edt_flash_params(flash)

if build_conf.getboolean('CONFIG_BOOTLOADER_MCUBOOT'):
if not build_conf.getboolean('CONFIG_BOOTLOADER_MCUBOOT'):
log.wrn("CONFIG_BOOTLOADER_MCUBOOT is not set to y in "
f"{build_conf.path}; this probably won't work")

Expand Down

0 comments on commit 2de6bf9

Please sign in to comment.