-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Samples: Bluetooth: Mesh: Make Light sample fit with DFU and TFM
This reconfigures TFM and the TFM partition size to make it possible to fit TFM and the application when building with a bootloader using the DFU overlay config. Co-authored-by: Ludvig Jordet <[email protected]> Signed-off-by: Anders Storrø <[email protected]>
- Loading branch information
1 parent
1fd0366
commit 94e2fa0
Showing
2 changed files
with
21 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
# Set lower default sizes for TF-M partition when using the TF-M Profile Small. | ||
# This is done using defaults instead of in a conf file in order to set the | ||
# correctly aligned size depending on the presence of the bootloader or not. | ||
|
||
# Declared before sourcing "Kconfig.zephyr" in order to give precedence | ||
# to these application-specific defaults instead of the unconditional default | ||
# in the Zephyr Kconfig tree. | ||
configdefault PM_PARTITION_SIZE_TFM | ||
default 0x17e00 if TFM_PROFILE_TYPE_SMALL && BOOTLOADER_MCUBOOT | ||
default 0x18000 if TFM_PROFILE_TYPE_SMALL | ||
|
||
source "Kconfig.zephyr" |
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