forked from nrfconnect/sdk-nrf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mcuboot: locating mcuboot module glue code in
modules/mcuboot
This commit introduces sdk-nrf as a module_ext_root in Zephyr. This allows Zephyr glue code to be included automatically from `<sdk-nrf-repo>/modules/<module-name>`. sdk-nrf specific mcuboot glue code has been moved to `modules/mcuboot` to use this principle. Similar the `<mcuboot-repo>/zephyr/Kconfig` file has been moved to sdk-nrf. As minor cleanup in the process of moving this code, the CMake variable `MCUBOOT_DIR` has been adjusted to `ZEPHYR_MCUBOOT_MODULE_DIR`. Add codeowners for modules and modules/mcuboot. Signed-off-by: Torsten Rasmussen <[email protected]>
- Loading branch information
1 parent
0ac4f23
commit 7971211
Showing
5 changed files
with
49 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
menu "MCUboot" | ||
|
||
if BOOTLOADER_MCUBOOT | ||
|
||
# The name of this configuration needs to match the requirements set by the | ||
# script `partition_manager.py`. See `pm.yml` in the application directory | ||
# of MCUBoot. | ||
module=MCUBOOT | ||
source "${ZEPHYR_BASE}/../nrf/subsys/partition_manager/Kconfig.template.build_strategy" | ||
|
||
config MCUBOOT_IMAGE_VERSION | ||
string "Image version" | ||
default "0.0.0+0" | ||
help | ||
Value to be passed as 'version' argument to 'imgtool.py' when | ||
creating signed image. Note that no semantics are connected to | ||
this variable. It does not provide downgrade prevention, and is only | ||
valuable for debugging purposes. Format: maj.min.rev+build with | ||
latter parts optional. | ||
|
||
# HACK: NCS temphack to keep our imgtool integration working now that | ||
# there is no CONFIG_DT_* CMake namespace anymore. Use Zephyr | ||
# kconfigfunctions to thread the flash write block size through | ||
# Kconfig so it can be accessed from CMake. Needs a better solution. | ||
DT_ZEPHYR_FLASH := zephyr,flash | ||
DT_CHOSEN_ZEPHYR_FLASH := $(dt_chosen_path,$(DT_ZEPHYR_FLASH)) | ||
config MCUBOOT_FLASH_WRITE_BLOCK_SIZE | ||
int | ||
default $(dt_node_int_prop_int,$(DT_CHOSEN_ZEPHYR_FLASH),write-block-size) | ||
|
||
endif # BOOTLOADER_MCUBOOT | ||
|
||
config DT_FLASH_WRITE_BLOCK_SIZE | ||
int | ||
default $(dt_node_int_prop_int,$(DT_CHOSEN_ZEPHYR_FLASH),write-block-size) | ||
|
||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
set(ZEPHYR_MCUBOOT_CMAKE_DIR ${CMAKE_CURRENT_LIST_DIR}/mcuboot) | ||
set(ZEPHYR_MCUBOOT_KCONFIG ${CMAKE_CURRENT_LIST_DIR}/mcuboot/Kconfig) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ build: | |
settings: | ||
board_root: . | ||
dts_root: . | ||
module_ext_root: . |