u-boot/arch/arm/mach-stm32mp/cmd_stm32prog
Patrick Delaunay 90ed215dd5 stm32mp: stm32prog: solve compilation with CONFIG_FIT_SIGNATURE
When CONFIG_FIT_SIGNATURE is activated, CONFIG_LEGACY_IMAGE_FORMAT
is deactivated and the define IMAGE_FORMAT_LEGACY don't exist with
include/image.h:
  #if defined(CONFIG_LEGACY_IMAGE_FORMAT)
  #define IMAGE_FORMAT_LEGACY	0x01	/* legacy image_header based format */
  #endif

This patch adds the needed check on compilation flag
CONFIG_LEGACY_IMAGE_FORMAT to avoid the compilation error
for command stm32prog:

cmd_stm32prog.c:81:8: error: ‘IMAGE_FORMAT_LEGACY’ undeclared
(first use in this function); did you mean ‘IMAGE_FORMAT_FIT’?
   81 |    if (IMAGE_FORMAT_LEGACY ==
      |        ^~~~~~~~~~~~~~~~~~~
      |        IMAGE_FORMAT_FIT

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
2021-06-18 10:09:41 +02:00
..
cmd_stm32prog.c stm32mp: stm32prog: solve compilation with CONFIG_FIT_SIGNATURE 2021-06-18 10:09:41 +02:00
Kconfig stm32mp: stm32prog: Add CONFIG_CMD_STM32PROG_SERIAL and _USB 2021-03-11 17:41:17 +01:00
Makefile stm32mp: stm32prog: Add CONFIG_CMD_STM32PROG_SERIAL and _USB 2021-03-11 17:41:17 +01:00
stm32prog.c stm32mp: stm32prog: add support of initrd in flashlayout 2021-06-18 10:09:41 +02:00
stm32prog.h stm32mp: stm32prog: add support of initrd in flashlayout 2021-06-18 10:09:41 +02:00
stm32prog_serial.c stm32mp: stm32prog: add timeout in stm32prog_serial_get_buffer 2021-06-18 10:09:41 +02:00
stm32prog_usb.c arm: stm32mp: migrate cmd_stm32prog to log macro 2021-01-13 09:52:58 +01:00