Skip to content

Commit

Permalink
build-project.sh: Fx the mcuboot (re)build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik Markovic committed Sep 28, 2021
1 parent bf85723 commit aba77cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions common/project-files/mcuboot_overlay-rsa.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
CONFIG_BOOT_SIGNATURE_TYPE_RSA=y
CONFIG_BOOT_SIGNATURE_KEY_FILE="root-rsa-2048.pem"

CONFIG_PARTITION_MANAGER_ENABLED=y
7 changes: 4 additions & 3 deletions scripts/build-project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ esac

build_dir=build_$target

# No longer needed with CONFIG_PARTITION_MANAGER_ENABLED=y in mcuboot_overlay-rsa.conf
# Workaround for MCUboot config being invalid when building the first time.
# Otherwise one has to build twice to get a valid build.
west build -t rebuild_cache -b ${target_board} -d ${build_dir} -- \
-DCONFIG_PARTITION_MANAGER_ENABLED=y \
"${board_root_flag}"
# west build -t rebuild_cache -b ${target_board} -d ${build_dir} -- \
# -DCONFIG_PARTITION_MANAGER_ENABLED=y \
# "${board_root_flag}"

west build -p auto -b $target_board -d $build_dir -- \
-DCONFIG_IOTCONNECT_CPID=\"${NRF_SAMPLE_CPID}\" \
Expand Down

0 comments on commit aba77cc

Please sign in to comment.