Skip to content

Commit 5c21093

Browse files
butoknordicjm
authored andcommitted
boot: zephyr: use EXTRA_CONF_FILE instead of deprecated OVERLAY_CONFIG
Use EXTRA_CONF_FILE that replaced OVERLAY_CONFIG since the Zephyr v3.4 release. Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
1 parent b233228 commit 5c21093

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

boot/zephyr/sample.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tests:
1111
- frdm_k64f
1212
- disco_l475_iot1
1313
sample.bootloader.mcuboot.serial_recovery:
14-
extra_args: OVERLAY_CONFIG=serial_recovery.conf
14+
extra_args: EXTRA_CONF_FILE=serial_recovery.conf
1515
platform_allow: nrf52840dk/nrf52840
1616
integration_platforms:
1717
- nrf52840dk/nrf52840
@@ -23,36 +23,36 @@ tests:
2323
integration_platforms:
2424
- nrf52840dongle/nrf52840
2525
sample.bootloader.mcuboot.usb_cdc_acm_recovery_log:
26-
extra_args: OVERLAY_CONFIG=./usb_cdc_acm_log_recovery.conf
26+
extra_args: EXTRA_CONF_FILE=./usb_cdc_acm_log_recovery.conf
2727
DTC_OVERLAY_FILE="./boards/nrf52840_big.overlay;app.overlay"
2828
platform_allow: nrf52840dk/nrf52840
2929
integration_platforms:
3030
- nrf52840dk/nrf52840
3131
tags: bootloader_mcuboot
3232
sample.bootloader.mcuboot.single_slot:
33-
extra_args: OVERLAY_CONFIG=./single_slot.conf
33+
extra_args: EXTRA_CONF_FILE=./single_slot.conf
3434
DTC_OVERLAY_FILE="./boards/nrf52840_single_slot.overlay;app.overlay"
3535
platform_allow: nrf52840dk/nrf52840
3636
integration_platforms:
3737
- nrf52840dk/nrf52840
3838
tags: bootloader_mcuboot
3939
sample.bootloader.mcuboot.qspi_nor_slot:
4040
extra_args: DTC_OVERLAY_FILE="./boards/nrf52840dk_qspi_nor_secondary.overlay;app.overlay"
41-
OVERLAY_CONFIG="./boards/nrf52840dk_qspi_nor.conf;./boards/nrf52840dk_qspi_secondary_boot.conf"
41+
EXTRA_CONF_FILE="./boards/nrf52840dk_qspi_nor.conf;./boards/nrf52840dk_qspi_secondary_boot.conf"
4242
platform_allow: nrf52840dk/nrf52840
4343
integration_platforms:
4444
- nrf52840dk/nrf52840
4545
tags: bootloader_mcuboot
4646
sample.bootloader.mcuboot.hooks_multi:
4747
extra_args: DTC_OVERLAY_FILE="./boards/nrf52840dk_ram_multi.overlay;app.overlay"
48-
OVERLAY_CONFIG=./boards/nrf52840dk_hooks_sample_overlay.conf
48+
EXTRA_CONF_FILE=./boards/nrf52840dk_hooks_sample_overlay.conf
4949
TEST_BOOT_IMAGE_ACCESS_HOOKS=Y
5050
platform_allow: nrf52840dk/nrf52840
5151
integration_platforms:
5252
- nrf52840dk/nrf52840
5353
tags: bootloader_mcuboot
5454
sample.bootloader.mcuboot.ram_load:
55-
extra_args: OVERLAY_CONFIG=./ram_load.conf
55+
extra_args: EXTRA_CONF_FILE=./ram_load.conf
5656
tags: bootloader_mcuboot
5757
platform_allow: mimxrt1020_evk
5858
integration_platforms:

samples/zephyr/Makefile

+14-14
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
# Extra .conf fragments to merge into the MCUboot .config, as a
5252
# semicolon-separated list (i.e., a CMake list).
53-
BOOTLOADER_OVERLAY_CONFIG ?=
53+
BOOTLOADER_EXTRA_CONF_FILE ?=
5454

5555
BOARD ?= frdm_k64f
5656
SLOT_SIZE ?= 0x60000
@@ -110,7 +110,7 @@ boot: check
110110
@rm -f mcuboot.bin
111111
(mkdir -p $(BUILD_DIR_BOOT) && \
112112
cd $(BUILD_DIR_BOOT) && \
113-
cmake -DOVERLAY_CONFIG=$(BOOTLOADER_OVERLAY_CONFIG) \
113+
cmake -DEXTRA_CONF_FILE=$(BOOTLOADER_EXTRA_CONF_FILE) \
114114
-G"Ninja" \
115115
-DBOARD=$(BOARD) \
116116
$(SOURCE_DIRECTORY)/../../boot/zephyr && \
@@ -193,7 +193,7 @@ flash_full:
193193
# reset: hello1 runs
194194
test-good-rsa: clean
195195
$(MAKE) \
196-
BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-rsa.conf \
196+
BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-rsa.conf \
197197
all
198198

199199
# Test a good image, with a good upgrade, using ECDSA signatures.
@@ -203,7 +203,7 @@ test-good-rsa: clean
203203
# reset: hello1 runs
204204
test-good-ecdsa: clean
205205
$(MAKE) \
206-
BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-ecdsa-p256.conf \
206+
BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-ecdsa-p256.conf \
207207
SIGNING_KEY=../../root-ec-p256.pem \
208208
all
209209

@@ -215,7 +215,7 @@ test-good-ecdsa: clean
215215
# reset: hello2 runs
216216
test-overwrite: clean
217217
$(MAKE) \
218-
BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-upgrade-only.conf \
218+
BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-upgrade-only.conf \
219219
all
220220

221221
# Test that when configured for RSA, a wrong signature in the upgrade
@@ -226,10 +226,10 @@ test-overwrite: clean
226226
# reset: hello1 runs
227227
test-bad-rsa-upgrade: clean
228228
$(MAKE) \
229-
BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-rsa.conf \
229+
BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-rsa.conf \
230230
boot hello1
231231
$(MAKE) \
232-
BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-rsa.conf \
232+
BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-rsa.conf \
233233
SIGNING_KEY=../../root-ec-p256.pem \
234234
hello2
235235

@@ -241,11 +241,11 @@ test-bad-rsa-upgrade: clean
241241
# reset: hello1 runs
242242
test-bad-ecdsa-upgrade: clean
243243
$(MAKE) \
244-
BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-ecdsa-p256.conf \
244+
BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-ecdsa-p256.conf \
245245
SIGNING_KEY=../../root-ec-p256.pem \
246246
boot hello1
247247
$(MAKE) \
248-
BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-ecdsa-p256.conf \
248+
BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-ecdsa-p256.conf \
249249
SIGNING_KEY=../../root-rsa-2048.pem \
250250
hello2
251251

@@ -257,7 +257,7 @@ test-bad-ecdsa-upgrade: clean
257257
# reset: hello1 runs
258258
test-no-bootcheck: clean
259259
$(MAKE) \
260-
BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-skip-primary-slot-validate.conf \
260+
BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-skip-primary-slot-validate.conf \
261261
SIGNING_KEY=../../root-ec-p256.pem \
262262
all
263263

@@ -268,10 +268,10 @@ test-no-bootcheck: clean
268268
# reset: hello1 runs
269269
test-wrong-rsa: clean
270270
$(MAKE) \
271-
BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-rsa.conf \
271+
BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-rsa.conf \
272272
boot hello1
273273
$(MAKE) \
274-
BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-rsa.conf \
274+
BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-rsa.conf \
275275
SIGNING_KEY=bad-keys/bad-rsa-2048.pem \
276276
hello2
277277

@@ -282,11 +282,11 @@ test-wrong-rsa: clean
282282
# reset: hello1 runs
283283
test-wrong-ecdsa: clean
284284
$(MAKE) \
285-
BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-ecdsa-p256.conf \
285+
BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-ecdsa-p256.conf \
286286
SIGNING_KEY=../../root-ec-p256.pem \
287287
boot hello1
288288
$(MAKE) \
289-
BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-ecdsa-p256.conf \
289+
BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-ecdsa-p256.conf \
290290
SIGNING_KEY=bad-keys/bad-ec-p256.pem \
291291
hello2
292292

0 commit comments

Comments
 (0)