Skip to content

Commit bee9475

Browse files
mbolivar-nordicbjarki-andreasen
authored andcommitted
[nrf noup] zephyr: add 'minimal' configuration files
Add prj_minimal.conf, a Kconfig fragment to be used for minimally sized image production. The minimal fragment has been simplified for only external crypto. Move partition sizing into Kconfig to be consistent with the method used by b0. Using this fragment with prj_minimal.conf makes MCUboot < 16kB for all nRF devices (9160 still needs 32kB partition). Ref: NCSDK-6704 Signed-off-by: Stephen Stauts <[email protected]> Signed-off-by: Martí Bolívar <[email protected]> Signed-off-by: Sebastian Bøe <[email protected]> Signed-off-by: Torsten Rasmussen <[email protected]> Signed-off-by: Jamie McCrae <[email protected]> Signed-off-by: Dominik Ermel <[email protected]> (cherry picked from commit 64740f7)
1 parent 6bc65a9 commit bee9475

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#
2+
# Copyright (c) 2021 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# CC3xx is currently not used for nrf53
8+
CONFIG_HW_CC3XX=n
9+
CONFIG_NRF_CC3XX_PLATFORM=n
10+
11+
# Required for kernel operation
12+
CONFIG_CLOCK_CONTROL=y
13+
CONFIG_SYS_CLOCK_EXISTS=y

boot/zephyr/prj_minimal.conf

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#
2+
# Copyright (c) 2021 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
CONFIG_MAIN_STACK_SIZE=10240
8+
CONFIG_MBEDTLS_CFG_FILE="mcuboot-mbedtls-cfg.h"
9+
10+
CONFIG_FLASH=y
11+
CONFIG_FPROTECT=y
12+
CONFIG_PM=n
13+
14+
CONFIG_BOOT_SWAP_SAVE_ENCTLV=n
15+
CONFIG_BOOT_ENCRYPT_IMAGE=n
16+
17+
CONFIG_BOOT_BOOTSTRAP=n
18+
CONFIG_BOOT_UPGRADE_ONLY=n
19+
20+
### Minimal Configurations ###
21+
CONFIG_BOOT_USE_MIN_PARTITION_SIZE=y
22+
CONFIG_ASSERT=n
23+
CONFIG_BOOT_BANNER=n
24+
CONFIG_CLOCK_CONTROL=n
25+
CONFIG_CONSOLE=n
26+
CONFIG_CONSOLE_HANDLER=n
27+
CONFIG_GPIO=n
28+
CONFIG_KERNEL_MEM_POOL=n
29+
CONFIG_LOG=n
30+
CONFIG_MINIMAL_LIBC_CALLOC=n
31+
CONFIG_MINIMAL_LIBC_MALLOC=n
32+
CONFIG_MINIMAL_LIBC_REALLOCARRAY=n
33+
CONFIG_NCS_SAMPLES_DEFAULTS=n
34+
CONFIG_NO_RUNTIME_CHECKS=y
35+
CONFIG_NRF_RTC_TIMER=n
36+
CONFIG_PRINTK=n
37+
CONFIG_SECURE_BOOT_DEBUG=n
38+
CONFIG_SERIAL=n
39+
CONFIG_SIZE_OPTIMIZATIONS=y
40+
CONFIG_SYS_CLOCK_EXISTS=n
41+
CONFIG_UART_CONSOLE=n

0 commit comments

Comments
 (0)