This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 2965345e1420479880f52925ef4f1ee02fe1b962
Author: Gerson Fernando Budke <gerson.bu...@ossystems.com.br>
AuthorDate: Sun Feb 27 09:07:10 2022 -0300

    boards/arm/samv7: Fix mcuboot configs
    
    MCUboot apps were moved to examples directory. This fix configs due to
    recent changes.
    
    Signed-off-by: Gerson Fernando Budke <gerson.bu...@ossystems.com.br>
---
 boards/arm/samv7/same70-qmtech/README.txt                 |  5 ++---
 .../{mcuboot-confirm => mcuboot-slot-confirm}/defconfig   |  3 +--
 boards/arm/samv7/same70-xplained/README.txt               |  5 ++---
 .../{mcuboot-confirm => mcuboot-slot-confirm}/defconfig   |  3 +--
 boards/arm/samv7/samv71-xult/README.txt                   | 15 +++++++--------
 .../configs/{mcuboot-nsh => mcuboot-swap-test}/defconfig  |  3 +--
 6 files changed, 14 insertions(+), 20 deletions(-)

diff --git a/boards/arm/samv7/same70-qmtech/README.txt 
b/boards/arm/samv7/same70-qmtech/README.txt
index 3ffefb3..cebc752 100644
--- a/boards/arm/samv7/same70-qmtech/README.txt
+++ b/boards/arm/samv7/same70-qmtech/README.txt
@@ -797,7 +797,7 @@ Configuration sub-directories
       CONFIG_SAMV7_FORMAT_MCUBOOT=y
       CONFIG_INIT_ENTRYPOINT="mcuboot_loader_main"
 
-  mcuboot-confirm:
+  mcuboot-slot-confirm:
     This configuration exercises the MCUboot compatible application slot
     confirm example.
 
@@ -811,8 +811,7 @@ Configuration sub-directories
 
       CONFIG_BOARD_LATE_INITIALIZE=y
 
-      CONFIG_BOOT_MCUBOOT=y
-      CONFIG_MCUBOOT_SLOT_CONFIRM_EXAMPLE=y
+      CONFIG_EXAMPLES_MCUBOOT_SLOT_CONFIRM=y
 
       CONFIG_SAMV7_FORMAT_MCUBOOT=y
       CONFIG_INIT_ENTRYPOINT="mcuboot_confirm_main"
diff --git a/boards/arm/samv7/same70-qmtech/configs/mcuboot-confirm/defconfig 
b/boards/arm/samv7/same70-qmtech/configs/mcuboot-slot-confirm/defconfig
similarity index 96%
rename from boards/arm/samv7/same70-qmtech/configs/mcuboot-confirm/defconfig
rename to boards/arm/samv7/same70-qmtech/configs/mcuboot-slot-confirm/defconfig
index bf2d8a7..4fe7e2a 100644
--- a/boards/arm/samv7/same70-qmtech/configs/mcuboot-confirm/defconfig
+++ b/boards/arm/samv7/same70-qmtech/configs/mcuboot-slot-confirm/defconfig
@@ -26,14 +26,13 @@ CONFIG_ARMV7M_ICACHE=y
 CONFIG_ARMV7M_LAZYFPU=y
 CONFIG_BOARD_LATE_INITIALIZE=y
 CONFIG_BOARD_LOOPSPERMSEC=51262
-CONFIG_BOOT_MCUBOOT=y
 CONFIG_BUILTIN=y
+CONFIG_EXAMPLES_MCUBOOT_SLOT_CONFIRM=y
 CONFIG_FAT_LCNAMES=y
 CONFIG_FAT_LFN=y
 CONFIG_FS_FAT=y
 CONFIG_FS_PROCFS=y
 CONFIG_INIT_ENTRYPOINT="mcuboot_confirm_main"
-CONFIG_MCUBOOT_SLOT_CONFIRM_EXAMPLE=y
 CONFIG_MMCSD_MULTIBLOCK_LIMIT=1
 CONFIG_MMCSD_SDIO=y
 CONFIG_NSH_ARCHINIT=y
diff --git a/boards/arm/samv7/same70-xplained/README.txt 
b/boards/arm/samv7/same70-xplained/README.txt
index 803ab37..8111050 100644
--- a/boards/arm/samv7/same70-xplained/README.txt
+++ b/boards/arm/samv7/same70-xplained/README.txt
@@ -1719,7 +1719,7 @@ Configuration sub-directories
       CONFIG_SAMV7_FORMAT_MCUBOOT=y
       CONFIG_INIT_ENTRYPOINT="mcuboot_loader_main"
 
-  mcuboot-confirm:
+  mcuboot-slot-confirm:
     This configuration exercises the MCUboot compatible application slot
     confirm example.
 
@@ -1733,8 +1733,7 @@ Configuration sub-directories
 
       CONFIG_BOARD_LATE_INITIALIZE=y
 
-      CONFIG_BOOT_MCUBOOT=y
-      CONFIG_MCUBOOT_SLOT_CONFIRM_EXAMPLE=y
+      CONFIG_EXAMPLES_MCUBOOT_SLOT_CONFIRM=y
 
       CONFIG_SAMV7_FORMAT_MCUBOOT=y
       CONFIG_INIT_ENTRYPOINT="mcuboot_confirm_main"
diff --git a/boards/arm/samv7/same70-xplained/configs/mcuboot-confirm/defconfig 
b/boards/arm/samv7/same70-xplained/configs/mcuboot-slot-confirm/defconfig
similarity index 97%
rename from boards/arm/samv7/same70-xplained/configs/mcuboot-confirm/defconfig
rename to 
boards/arm/samv7/same70-xplained/configs/mcuboot-slot-confirm/defconfig
index f84923a..12cc258 100644
--- a/boards/arm/samv7/same70-xplained/configs/mcuboot-confirm/defconfig
+++ b/boards/arm/samv7/same70-xplained/configs/mcuboot-slot-confirm/defconfig
@@ -35,15 +35,14 @@ CONFIG_AT24XX_EXTSIZE=160
 CONFIG_AT24XX_SIZE=2
 CONFIG_BOARD_LATE_INITIALIZE=y
 CONFIG_BOARD_LOOPSPERMSEC=51262
-CONFIG_BOOT_MCUBOOT=y
 CONFIG_BUILTIN=y
+CONFIG_EXAMPLES_MCUBOOT_SLOT_CONFIRM=y
 CONFIG_FAT_LCNAMES=y
 CONFIG_FAT_LFN=y
 CONFIG_FS_FAT=y
 CONFIG_FS_PROCFS=y
 CONFIG_I2CTOOL_MAXBUS=0
 CONFIG_INIT_ENTRYPOINT="mcuboot_confirm_main"
-CONFIG_MCUBOOT_SLOT_CONFIRM_EXAMPLE=y
 CONFIG_MMCSD_MULTIBLOCK_LIMIT=1
 CONFIG_MMCSD_SDIO=y
 CONFIG_MTD_AT24XX=y
diff --git a/boards/arm/samv7/samv71-xult/README.txt 
b/boards/arm/samv7/samv71-xult/README.txt
index 99d759e..8146766 100644
--- a/boards/arm/samv7/samv71-xult/README.txt
+++ b/boards/arm/samv7/samv71-xult/README.txt
@@ -2600,8 +2600,8 @@ Configuration sub-directories
              -c 'atsamv gpnvm set 1' \
              -c 'reset run' -c shutdown
 
-  mcuboot-nsh:
-    This configuration exercises the MCUboot compatible application slot
+  mcuboot-swap-test:
+    This configuration exercises the MCUboot compatible application swap image
     example. The application is NuttX nsh with some special commands.
 
     Generate signed binaries for MCUboot compatible application:
@@ -2609,12 +2609,12 @@ Configuration sub-directories
       ./apps/boot/mcuboot/mcuboot/scripts/imgtool.py sign \
         --key apps/boot/mcuboot/mcuboot/root-rsa-2048.pem --align 8 \
         --version 1.0.0 --header-size 0x200 --pad-header --slot-size 0xe0000 \
-        nuttx/nuttx.bin mcuboot_nuttx.app.nsh.confirmed-v1.bin
+        nuttx/nuttx.bin mcuboot_nuttx.app.swap.test.confirm-v1.bin
 
       ./apps/boot/mcuboot/mcuboot/scripts/imgtool.py sign \
         --key apps/boot/mcuboot/mcuboot/root-rsa-2048.pem --align 8 \
         --version 2.0.0 --header-size 0x200 --pad-header --slot-size 0xe0000 \
-        nuttx/nuttx.bin mcuboot_nuttx.app.nsh.confirmed-v2.bin
+        nuttx/nuttx.bin mcuboot_nuttx.app.swap.test.confirm-v2.bin
 
       Flash application version 1.0.0 at MCUboot Slot-0:
 
@@ -2625,7 +2625,7 @@ Configuration sub-directories
              -c 'reset_config srst_only' \
              -c init -c targets \
              -c 'reset halt' \
-             -c 'program mcuboot_nuttx.app.nsh.confirmed-v1.bin 0x420000' \
+             -c 'program mcuboot_nuttx.app.swap.test.confirm-v1.bin 0x420000' \
              -c 'reset halt' \
              -c 'atsamv gpnvm set 1' \
              -c 'reset run' -c shutdown
@@ -2639,15 +2639,14 @@ Configuration sub-directories
              -c 'reset_config srst_only' \
              -c init -c targets \
              -c 'reset halt' \
-             -c 'program mcuboot_nuttx.app.nsh.confirmed-v2.bin 0x500000' \
+             -c 'program mcuboot_nuttx.app.swap.test.confirm-v2.bin 0x500000' \
              -c 'reset halt' \
              -c 'atsamv gpnvm set 1' \
              -c 'reset run' -c shutdown
 
     Relevant configuration settings:
 
-      CONFIG_BOOT_MCUBOOT=y
-      CONFIG_MCUBOOT_SLOT_CONFIRM_EXAMPLE=y
+      CONFIG_EXAMPLES_MCUBOOT_SWAP_TEST=y
 
       CONFIG_SAMV7_FORMAT_MCUBOOT=y
       CONFIG_INIT_ENTRYPOINT="nsh_main"
diff --git a/boards/arm/samv7/samv71-xult/configs/mcuboot-nsh/defconfig 
b/boards/arm/samv7/samv71-xult/configs/mcuboot-swap-test/defconfig
similarity index 96%
rename from boards/arm/samv7/samv71-xult/configs/mcuboot-nsh/defconfig
rename to boards/arm/samv7/samv71-xult/configs/mcuboot-swap-test/defconfig
index 9371e40..8052152 100644
--- a/boards/arm/samv7/samv71-xult/configs/mcuboot-nsh/defconfig
+++ b/boards/arm/samv7/samv71-xult/configs/mcuboot-swap-test/defconfig
@@ -29,11 +29,10 @@ CONFIG_ARMV7M_LAZYFPU=y
 CONFIG_BOARDCTL_RESET=y
 CONFIG_BOARD_LATE_INITIALIZE=y
 CONFIG_BOARD_LOOPSPERMSEC=51262
-CONFIG_BOOT_MCUBOOT=y
 CONFIG_BUILTIN=y
+CONFIG_EXAMPLES_MCUBOOT_SWAP_TEST=y
 CONFIG_FS_PROCFS=y
 CONFIG_INIT_ENTRYPOINT="nsh_main"
-CONFIG_MCUBOOT_SLOT_CONFIRM_EXAMPLE=y
 CONFIG_NSH_ARCHINIT=y
 CONFIG_NSH_BUILTIN_APPS=y
 CONFIG_NSH_FILEIOSIZE=512

Reply via email to