|
| 1 | +# |
| 2 | +# Copyright (c) 2022 Project CHIP Authors |
| 3 | +# |
| 4 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +# you may not use this file except in compliance with the License. |
| 6 | +# You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | +# |
| 16 | + |
| 17 | +# The purpose of this file is to define new default values of settings used when building mcuboot child image for Matter samples. |
| 18 | + |
| 19 | +config MAIN_STACK_SIZE |
| 20 | + default 10240 |
| 21 | + |
| 22 | +config BOOT_ENCRYPT_IMAGE |
| 23 | + default n |
| 24 | + |
| 25 | +config BOOT_BOOTSTRAP |
| 26 | + default n |
| 27 | + |
| 28 | +config PM |
| 29 | + default n |
| 30 | + |
| 31 | +config FLASH |
| 32 | + default y |
| 33 | + |
| 34 | +config FPROTECT |
| 35 | + default y |
| 36 | + |
| 37 | +choice LIBC_IMPLEMENTATION |
| 38 | + default MINIMAL_LIBC |
| 39 | +endchoice |
| 40 | + |
| 41 | +# nRF7002DK uses SPI NOR external flash |
| 42 | +if BOARD_NRF7002DK_NRF5340_CPUAPP || BOARD_NRF7002DK_NRF7001_NRF5340_CPUAPP |
| 43 | + |
| 44 | +config SPI |
| 45 | + default y |
| 46 | + |
| 47 | +choice SPI_NOR_SFDP |
| 48 | + default SPI_NOR_SFDP_DEVICETREE |
| 49 | +endchoice |
| 50 | + |
| 51 | +config SPI_NOR_FLASH_LAYOUT_PAGE_SIZE |
| 52 | + default 4096 |
| 53 | + |
| 54 | +config MULTITHREADING |
| 55 | + default y |
| 56 | + |
| 57 | +config PM_OVERRIDE_EXTERNAL_DRIVER_CHECK |
| 58 | + default y |
| 59 | + |
| 60 | +endif |
| 61 | + |
| 62 | +# All boards beside nRF7002DK use QSPI NOR external flash |
| 63 | +if BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_NRF52840DK_NRF52840 |
| 64 | + |
| 65 | +config NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE |
| 66 | + default 4096 |
| 67 | + |
| 68 | +config NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE |
| 69 | + default 16 |
| 70 | + |
| 71 | +endif |
| 72 | + |
| 73 | +config BOOT_MAX_IMG_SECTORS |
| 74 | + default 256 |
| 75 | + |
| 76 | +config LOG |
| 77 | + default n |
| 78 | + |
| 79 | +config CONSOLE_HANDLER |
| 80 | + default n |
| 81 | + |
| 82 | +config BOOT_BANNER |
| 83 | + default n |
| 84 | + |
| 85 | +config NCS_BOOT_BANNER |
| 86 | + default n |
| 87 | + |
| 88 | +config MCUBOOT_BOOT_BANNER |
| 89 | + default n |
| 90 | + |
| 91 | +config TIMESLICING |
| 92 | + default n |
| 93 | + |
| 94 | +config RESET_ON_FATAL_ERROR |
| 95 | + default n |
| 96 | + |
| 97 | +config MULTITHREADING |
| 98 | + default n |
| 99 | + |
| 100 | +config TICKLESS_KERNEL |
| 101 | + default n |
| 102 | + |
| 103 | +config TIMEOUT_64BIT |
| 104 | + default n |
| 105 | + |
| 106 | +config NRF_ENABLE_ICACHE |
| 107 | + default n |
| 108 | + |
| 109 | +if SOC_SERIES_NRF53X |
| 110 | + |
| 111 | +# The following configurations are required to support simultaneous multi image update |
| 112 | +config PCD_APP |
| 113 | + default y |
| 114 | + |
| 115 | +config UPDATEABLE_IMAGE_NUMBER |
| 116 | + default 2 |
| 117 | + |
| 118 | +# Multi-image updates do not support image swapping yet. |
| 119 | +choice BOOT_IMAGE_UPGRADE_MODE |
| 120 | + default BOOT_UPGRADE_ONLY |
| 121 | +endchoice |
| 122 | + |
| 123 | +# The network core cannot access external flash directly. The flash simulator must be used to |
| 124 | +# provide a memory region that is used to forward the new firmware to the network core. |
| 125 | +config FLASH_SIMULATOR |
| 126 | + default y |
| 127 | + |
| 128 | +config FLASH_SIMULATOR_DOUBLE_WRITES |
| 129 | + default y |
| 130 | + |
| 131 | +config FLASH_SIMULATOR_STATS |
| 132 | + default n |
| 133 | + |
| 134 | +# Enable custom command to erase settings partition. |
| 135 | +config ENABLE_MGMT_PERUSER |
| 136 | + default y |
| 137 | + |
| 138 | +config ZCBOR |
| 139 | + default y |
| 140 | + |
| 141 | +config BOOT_MGMT_CUSTOM_STORAGE_ERASE |
| 142 | + default y |
| 143 | + |
| 144 | +endif # SOC_SERIES_NRF53X |
0 commit comments