Skip to content

Commit b35b55e

Browse files
[nrf noup] boot: 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 <stephen.stauts@nordicsemi.no> Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no> Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no> (cherry picked from commit c920c9a) (cherry picked from commit 0a22318) (cherry picked from commit f8b974d)
1 parent 6ee25a5 commit b35b55e

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed
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-BSD-5-Clause-Nordic
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

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#
2+
# Copyright (c) 2021 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
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_ENCRYPT_EC256=n
15+
CONFIG_BOOT_ENCRYPT_RSA=n
16+
CONFIG_BOOT_ENCRYPT_X25519=n
17+
CONFIG_BOOT_SWAP_SAVE_ENCTLV=n
18+
19+
CONFIG_BOOT_BOOTSTRAP=n
20+
CONFIG_BOOT_UPGRADE_ONLY=n
21+
22+
### Minimal Configurations ###
23+
CONFIG_BOOT_USE_MIN_PARTITION_SIZE=y
24+
CONFIG_ASSERT=n
25+
CONFIG_BOOT_BANNER=n
26+
CONFIG_CLOCK_CONTROL=n
27+
CONFIG_CONSOLE=n
28+
CONFIG_CONSOLE_HANDLER=n
29+
CONFIG_GPIO=n
30+
CONFIG_KERNEL_MEM_POOL=n
31+
CONFIG_LOG=n
32+
CONFIG_MINIMAL_LIBC_CALLOC=n
33+
CONFIG_MINIMAL_LIBC_MALLOC=n
34+
CONFIG_MINIMAL_LIBC_REALLOCARRAY=n
35+
CONFIG_NCS_SAMPLES_DEFAULTS=n
36+
CONFIG_NO_RUNTIME_CHECKS=y
37+
CONFIG_NRF_RTC_TIMER=n
38+
CONFIG_PRINTK=n
39+
CONFIG_REBOOT=n
40+
CONFIG_RESET_ON_FATAL_ERROR=n
41+
CONFIG_SECURE_BOOT_DEBUG=n
42+
CONFIG_SERIAL=n
43+
CONFIG_SIZE_OPTIMIZATIONS=y
44+
CONFIG_SYS_CLOCK_EXISTS=n
45+
CONFIG_UART_CONSOLE=n

0 commit comments

Comments
 (0)