blob: 06e9768e28c692f8ae9a4106f865be1e3b11af58 [file] [log] [blame]
Fabio Utzigba1fbe62017-07-21 14:01:20 -03001# Licensed to the Apache Software Foundation (ASF) under one
2# or more contributor license agreements. See the NOTICE file
3# distributed with this work for additional information
4# regarding copyright ownership. The ASF licenses this file
5# to you under the Apache License, Version 2.0 (the
6# "License"); you may not use this file except in compliance
7# with the License. You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing,
12# software distributed under the License is distributed on an
13# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14# KIND, either express or implied. See the License for the
15# specific language governing permissions and limitations
16# under the License.
17#
18
19# Package: boot/mynewt/mcuboot_config
20
21syscfg.defs:
Fabio Utzig61f08a02019-08-23 11:37:52 -030022 BOOTUTIL_IMAGE_NUMBER:
23 description: 'Number of images for multi-image (0 and 1 mean single image).'
24 value: 0
Fabio Utzigba1fbe62017-07-21 14:01:20 -030025 BOOTUTIL_VALIDATE_SLOT0:
26 description: 'Validate image at slot 0 on each boot.'
27 value: 0
28 BOOTUTIL_SIGN_RSA:
Fabio Utzig61f86fd2019-05-08 14:40:12 -030029 description: 'Images are signed using RSA.'
Fabio Utzigba1fbe62017-07-21 14:01:20 -030030 value: 0
Fabio Utzig61f86fd2019-05-08 14:40:12 -030031 BOOTUTIL_SIGN_RSA_LEN:
32 description: 'Key size for RSA keys (2048 or 3072).'
33 value: 2048
Fabio Utzigba1fbe62017-07-21 14:01:20 -030034 BOOTUTIL_SIGN_EC:
35 description: 'Images are signed using ECDSA NIST P-224.'
36 value: 0
37 BOOTUTIL_SIGN_EC256:
38 description: 'Images are signed using ECDSA NIST P-256.'
39 value: 0
Fabio Utziga1e8e432019-05-22 10:38:10 -030040 BOOTUTIL_SIGN_ED25519:
41 description: 'Images are signed using ED25519.'
42 value: 0
Fabio Utzig0170f262018-09-18 08:30:15 -030043 BOOTUTIL_ENCRYPT_RSA:
44 description: 'Support for encrypted images using RSA-2048-OAEP.'
45 value: 0
46 BOOTUTIL_ENCRYPT_KW:
47 description: 'Support for encrypted images using AES-128-Keywrap.'
48 value: 0
Fabio Utzigc67dd702019-10-22 10:08:42 -030049 BOOTUTIL_ENCRYPT_EC256:
50 description: 'Support for encrypted images using ECIES-P256.'
51 value: 0
Fabio Utzig92eb07f2020-04-07 07:58:04 -030052 BOOTUTIL_ENCRYPT_X25519:
53 description: 'Support for encrypted images using ECIES-X25519.'
54 value: 0
Fabio Utzigba1fbe62017-07-21 14:01:20 -030055 BOOTUTIL_USE_MBED_TLS:
56 description: 'Use mbed TLS for crypto operations.'
57 value: 1
58 BOOTUTIL_USE_TINYCRYPT:
59 description: 'Use tinycrypt for crypto operations.'
60 value: 0
Fabio Utzigbe43ea82019-11-28 10:26:32 -030061 BOOTUTIL_SWAP_USING_MOVE:
62 description: 'Perform swap without requiring scratch.'
63 value: 0
Fabio Utzig6e137812019-12-19 16:18:41 -030064 BOOTUTIL_SWAP_SAVE_ENCTLV:
65 description: 'Save TLVs instead of plaintext encryption keys in swap status.'
66 value: 0
Fabio Utzigba1fbe62017-07-21 14:01:20 -030067 BOOTUTIL_OVERWRITE_ONLY:
68 description: 'Non-swapping upgrades, copy from slot 1 to slot 0 only.'
69 value: 0
Fabio Utzig13d9e352017-10-05 20:32:31 -030070 BOOTUTIL_OVERWRITE_ONLY_FAST:
71 description: 'Use faster copy only upgrade.'
72 value: 1
Marko Kiiskila833005e2017-08-22 08:49:03 -070073 BOOTUTIL_IMAGE_FORMAT_V2:
Fabio Utziga1fae672018-03-30 10:52:38 -030074 description: 'Indicates that system is using v2 of image format.'
Marko Kiiskila833005e2017-08-22 08:49:03 -070075 value: 1
Fabio Utziga1fae672018-03-30 10:52:38 -030076 BOOTUTIL_MAX_IMG_SECTORS:
77 description: 'Maximum number of sectors that are swapped.'
78 value: 128
Fabio Utzig9a4b9ba2018-05-07 08:31:27 -030079 BOOTUTIL_HAVE_LOGGING:
80 description: 'Enable serial logging'
81 value: 0
Marko Kiiskilace50ab02018-06-06 11:33:33 +030082 restrictions:
83 - "!BOOTUTIL_NO_LOGGING"
84 BOOTUTIL_NO_LOGGING:
85 description: 'No serial logging'
86 value: 1
87 restrictions:
88 - "!BOOTUTIL_HAVE_LOGGING"
Fabio Utzig9a4b9ba2018-05-07 08:31:27 -030089 BOOTUTIL_LOG_LEVEL:
90 description: >
91 Default console log level. Valid values are:
92 BOOTUTIL_LOG_LEVEL_OFF
93 BOOTUTIL_LOG_LEVEL_ERROR
94 BOOTUTIL_LOG_LEVEL_WARNING
95 BOOTUTIL_LOG_LEVEL_INFO
96 BOOTUTIL_LOG_LEVEL_DEBUG
97 value: 'BOOTUTIL_LOG_LEVEL_INFO'
Fabio Utzig338a19f2018-12-03 08:37:08 -020098 BOOTUTIL_BOOTSTRAP:
99 description: 'Support bootstrapping slot0 from slot1, if slot0 is empty'
100 value: 0
Fabio Utzig78cc1262019-07-30 14:31:18 -0300101 BOOTUTIL_FEED_WATCHDOG:
102 description: 'Enable watchdog feeding while performing a swap upgrade'
103 value: 0