Skip to content

Commit fc595b8

Browse files
boot: zephyr: Force module name to mcuboot
The Zephyr build system exposes to module CMakeLists.txt files the following variables: ZEPHYR_${MODULE_NAME}_MODULE_DIR ZEPHYR_${MODULE_NAME}_CMAKE_DIR where MODULE_NAME is the uppercase version of the current module. This variable is set based on the `name:` field in `module.yml`. If the `name:` field is not present, then it picks up the name from the manifest file if present, and follows other defaulting logic if not. In order to enable other modules to reference overlays in this module the module name must be fixed by setting it in `module.yml`. Verified by: 1. setting the name to the value "mcuboot2" and verifying the build artifacts produced `$build/modules/mcuboot2`. 2. setting the name to the value "mcuboot" and verifying the build artifacts produced `$buildmodules/mcuboot` 3. Further verified that the following testcases still pass with mcuboot options on twister: mcuboot/boot/zephyr zephyr/tests/subsys/dfu zephyr/samples/subsys/mgmt/mcumgr/smp_svr Signed-off-by: Gregory SHUE <[email protected]>
1 parent cfdad1d commit fc595b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zephyr/module.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5+
name: mcuboot
56
samples:
67
- boot/zephyr
78
build:

0 commit comments

Comments
 (0)