Commit Graph

23 Commits

Author SHA1 Message Date
Michal Lenc
95fcece2a5 mcuboot: update mcuboot to support swap using move
Older versions of mcuboot did not support swap using move and therefore
the build would have failed CONFIG_MCUBOOT_SWAP_USING_MOVE=y.

Newer mcuboot contains initial support of swap using move for NuttX. Also
Makefile was updated to as some bootutil files were removed from mcuboot.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-08-03 05:31:27 -07:00
raiden00pl
4df395bfc4 cmake: add support for boot utils 2023-07-13 23:50:49 +03:00
chao an
4d79a5cbaf add initial cmake build system
Co-authored-by: Daniel Agar <daniel@agar.ca>
Signed-off-by: chao an <anchao@xiaomi.com>
2023-07-08 13:52:02 +08:00
raiden00pl
41868f5061 boot: add support for a minimal NuttX-based bootloader
This can be useful for development purposes when you don't need any complex bootloader yet,
but just want to jump to the app image.

Can be helpful when we need to switch from secure environment to non-secure environment.
2023-07-06 00:26:08 +08:00
Xiang Xiao
7b22525f0b boot/mcuboot: Bump up version to 36bac4f6a54a3b76266444d8c6c177b8b0483a05
Fix Error: mcuboot/boot/bootutil/src/bootutil_public.c:159:1: error: unused function 'boot_swap_size_off' [-Werror,-Wunused-function]
boot_swap_size_off(const struct flash_area *fap)

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-15 21:06:27 +01:00
yinshengkai
ee4d8b738f Makefile: replace INCDIR to INCDIR_PREFIX
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-11-10 02:38:58 +08:00
yinshengkai
2c3c2edcb7 Makefile: Remove INCDIROPT
This option, which resolves to -w when CONFIG_CYGWIN_WINTOOL is
configured, is now appended to INCDIR in tools/Config.mk.

See git commit # 5eae32577e5d5226e5d3027c169eeb369f83f77d in the main
2022-10-25 13:48:16 +08:00
anjiahao
fa6aeb3e12 mcuboot:move tinycrypt headfile path from make.defs to Makefile
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-10-20 14:53:38 +08:00
Xiang Xiao
4941182cc6 Make.defs: Change "ifeq ($(XXX),y)" to "ifneq ($(XXX),)
to support the tristate option correctly and unify the usage

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-16 14:59:08 +02:00
Huang Qi
2e2630e838 Don't download tarballs if a local git repo found
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-08-28 17:20:47 +08:00
Petro Karashchenko
84e0e50995 make: update makefiles for mcuboot and libtomcrypt
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-04-21 21:11:58 +08:00
Gerson Fernando Budke
afefa1c308 boot/mcuboot: Move MCUboot samples to examples dir
The current examples belongs to 'examples/mcuboot' directory. This
moves related example code and Kconfig entries to their respective
project inside examples/mcuboot directory. It cleans all Kconfig
entries at 'boot/mcuboot', including Kconfig, Makefile and
README.md files.

This not perform any code modification.

Signed-off-by: Gerson Fernando Budke <gerson.budke@ossystems.com.br>
2022-03-19 16:09:44 +02:00
Gerson Fernando Budke
36cb168077 boot/mcuboot: Prepare to move MCUboot samples to examples dir
This adjusts code and Kconfig variables as preparation to move MCUboot
examples to examples/mcuboot folder.

This changes perfor below sed operations:

's/MCUBOOT_UPDATE_AGENT_EXAMPLE/EXAMPLES_MCUBOOT_UPDATE_AGENT/g'
's/MCUBOOT_SLOT_CONFIRM_EXAMPLE/EXAMPLES_MCUBOOT_SLOT_CONFIRM/g'

It replaces 'apps/boot/mcuboot' prefix by 'apps/examples/mcuboot' and
adjust it with respective application name on below source files:

boot/mcuboot/mcuboot_agent_main.c
boot/mcuboot/mcuboot_confirm_main.c

This commit does not other changes in the code.

Signed-off-by: Gerson Fernando Budke <gerson.budke@ossystems.com.br>
2022-03-19 16:09:44 +02:00
Xiang Xiao
f6f4bbff3a Replace EXIT_SUCCESS with 0 for BOARDIOC_[POWEROFF|RESET]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-29 12:44:41 +01:00
Petro Karashchenko
afbd132b31 boot/mcuboot/Kconfig: extend configuration options
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-12-09 21:00:28 -06:00
Petro Karashchenko
16accc17bf mcuboot/Kconfig: update hash commit to include fix for compilation
warnings

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-11-25 15:59:19 -03:00
Petro Karashchenko
421452690b mcuboot/Kconfig: update hash commit to include fix for referenciation
error in memset call

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-11-24 17:51:26 -03:00
Gustavo Henrique Nihei
19b9c2371c boot/mcuboot: Add support for using Mbed TLS as crypto backend
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-11-04 23:22:29 -05:00
Gustavo Henrique Nihei
6942378695 boot/mcuboot: Fix inclusion of more than one example app
Even though the options existed, the second application would override
the values, resulting in the missing first application on the final
binary.

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-11-04 23:22:14 -05:00
Gustavo Henrique Nihei
602092dc81 boot/mcuboot: Bump MCUboot version
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-20 13:23:38 -03:00
Gustavo Henrique Nihei
325a40b4d1 boot/mcuboot: Deactivate warnings to enable build of MCUboot library
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-20 13:23:38 -03:00
Gustavo Henrique Nihei
ea5eb0c1d0 boot/mcuboot: Default to Tinycrypt as crypto backend
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-20 06:44:15 -03:00
Gustavo Henrique Nihei
794cfd0c5c boot/mcuboot: Add support for MCUboot bootloader
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-20 06:44:15 -03:00