Skip to content

Commit 7d98f22

Browse files
committed
sys: Add MCUBOOT_USE_TLV_ALLOW_LIST to mcuboot_config.h
Add #define MCUBOOT_USE_TLV_ALLOW_LIST 1, to keep behaviour where TLVs are matched against list of allowed TLVs, before being processed. Signed-off-by: Dominik Ermel <[email protected]>
1 parent cf4c1da commit 7d98f22

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

boot/cypress/MCUBootApp/config/mcuboot_config/mcuboot_config.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
#define MCUBOOT_MAX_IMG_SECTORS 2560
2626
#endif
2727

28+
/* Enable non-protected TLV check against allow list */
29+
#define MCUBOOT_USE_TLV_ALLOW_LIST 1
30+
2831
/*
2932
* Signature types
3033
*

boot/espressif/hal/include/mcuboot_config/mcuboot_config.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@
128128

129129
#define MCUBOOT_DEV_WITH_ERASE
130130

131+
/* Enable non-protected TLV check against allow list */
132+
#define MCUBOOT_USE_TLV_ALLOW_LIST 1
133+
131134
/* Default maximum number of flash sectors per image slot; change
132135
* as desirable. */
133136
#define MCUBOOT_MAX_IMG_SECTORS 512

boot/mbed/include/mcuboot_config/mcuboot_config.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@
8080

8181
#define MCUBOOT_DEV_WITH_ERASE
8282

83+
/* Enable non-protected TLV check against allow list */
84+
#define MCUBOOT_USE_TLV_ALLOW_LIST 1
85+
8386
/*
8487
* No watchdog integration for now
8588
*/

boot/mynewt/mcuboot_config/include/mcuboot_config/mcuboot_config.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@
139139

140140
#define MCUBOOT_DEV_WITH_ERASE
141141

142+
/* Enable non-protected TLV check against allow list */
143+
#define MCUBOOT_USE_TLV_ALLOW_LIST 1
144+
142145
#if MYNEWT_VAL(BOOTUTIL_FEED_WATCHDOG) && MYNEWT_VAL(WATCHDOG_INTERVAL)
143146
#include <hal/hal_watchdog.h>
144147
#define MCUBOOT_WATCHDOG_FEED() \

boot/nuttx/include/mcuboot_config/mcuboot_config.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@
134134

135135
#define MCUBOOT_DEV_WITH_ERASE
136136

137+
/* Enable non-protected TLV check against allow list */
138+
#define MCUBOOT_USE_TLV_ALLOW_LIST 1
139+
137140
/* Default maximum number of flash sectors per image slot; change
138141
* as desirable.
139142
*/

0 commit comments

Comments
 (0)