]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: st: common: cleanup dfu support
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 26 Sep 2023 15:09:23 +0000 (17:09 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 4 Oct 2023 11:32:41 +0000 (13:32 +0200)
commit6d91f0a3a14dd13a04946e672a4640fc65e4d275
treedbc98ca6f7669d1c6661f5ad8be180ba55499bb4
parent9cf125b1f82e77980bc70c5ca1f4cbf529f4272c
board: st: common: cleanup dfu support

split the file stm32mp_dfu.c in two files to simplify the Makefile
- stm32mp_dfu.c: required by CONFIG_SET_DFU_ALT_INFO
- stm32mp_dfu_virt.c: required by CONFIG_DFU_VIRT for stm32prog
  command or VIRT device for PMIC for CONFIG_SET_DFU_ALT_INFO.

This patch also remove some remaining #ifdef CONFIG
and avoid compilation error when CONFIG_SET_DFU_ALT_INFO is not
activated.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
board/st/common/Makefile
board/st/common/stm32mp_dfu.c
board/st/common/stm32mp_dfu_virt.c [new file with mode: 0644]