Skip to contentSkip to conversation

ARM: stm32: Add missing build of ST DFU virt code on DH STM32MP1 DHSOM

PATCH In review Marek Vasut 2 participants 3 messages Oct 31, 2025 – Nov 17, 2025 Arm STM32

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: stm32: Add missing build of ST DFU virt code on DH STM32MP1 DHSOM

Commit 6d91f0a3a14d ("board: st: common: cleanup dfu support") split the vendor-specific DFU implementation into two files, but failed to update other non-ST boards. This did not lead to noticable breakage with plain simple dfu-util, but it makes the ST proprietary programmer CLI tool end in an infinite loop. Update the Makefile accordingly to allow even that kind of tooling to work.

Fixes 6d91f0a3a14d ("board: st: common: cleanup dfu support")

---
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 board/dhelectronics/dh_stm32mp1/Makefile | 1 +
 1 file changed, 1 insertion(+)
board/dhelectronics/dh_stm32mp1/Makefile +1 -0
index ffd221ac224..2f4a301d1a0 100644
@@ -7,3 +7,4 @@ obj-$(CONFIG_PMIC_STPMIC1) += ../../st/common/stpmic1.o
 obj-y += board.o
 
 obj-$(CONFIG_SET_DFU_ALT_INFO) += ../../st/common/stm32mp_dfu.o
+obj-$(CONFIG_$(PHASE_)DFU_VIRT) += ../../st/common/stm32mp_dfu_virt.o
Signature · 1 line
2.51.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 25 lines · Marek Vasut

Commit 6d91f0a3a14d ("board: st: common: cleanup dfu support") split the vendor-specific DFU implementation into two files, but failed to update other non-ST boards. This did not lead to noticable breakage with plain simple dfu-util, but it makes the ST proprietary programmer CLI tool end in an infinite loop. Update the Makefile accordingly to allow even that kind of tooling to work.

Fixes 6d91f0a3a14d ("board: st: common: cleanup dfu support")

---
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 board/dhelectronics/dh_stm32mp1/Makefile | 1 +
 1 file changed, 1 insertion(+)
board/dhelectronics/dh_stm32mp1/Makefile +0 -0
index ffd221ac224..2f4a301d1a0 100644

board/dhelectronics/dh_stm32mp1/Makefile obj-$(CONFIG_PMIC_STPMIC1) += ../../st/common/stpmic1.o · line 10

Quoted 4 lines
board/dhelectronics/dh_stm32mp1/Makefile +1 -0
@@ -7,3 +7,4 @@ obj-$(CONFIG_PMIC_STPMIC1) += ../../st/common/stpmic1.o
 obj-y += board.o
 
 obj-$(CONFIG_SET_DFU_ALT_INFO) += ../../st/common/stm32mp_dfu.o
+obj-$(CONFIG_$(PHASE_)DFU_VIRT) += ../../st/common/stm32mp_dfu_virt.o

Thanks
Patrice

#2 lore raw
Quoted 30 lines · Patrice CHOTARD
Quoted 27 lines · Marek Vasut

Commit 6d91f0a3a14d ("board: st: common: cleanup dfu support") split the vendor-specific DFU implementation into two files, but failed to update other non-ST boards. This did not lead to noticable breakage with plain simple dfu-util, but it makes the ST proprietary programmer CLI tool end in an infinite loop. Update the Makefile accordingly to allow even that kind of tooling to work.

Fixes 6d91f0a3a14d ("board: st: common: cleanup dfu support")

---
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 board/dhelectronics/dh_stm32mp1/Makefile | 1 +
 1 file changed, 1 insertion(+)
board/dhelectronics/dh_stm32mp1/Makefile +0 -0
index ffd221ac224..2f4a301d1a0 100644
@@ -7,3 +7,4 @@ obj-$(CONFIG_PMIC_STPMIC1) += ../../st/common/stpmic1.o
 obj-y += board.o
 
Quoted 7 lines

board/dhelectronics/dh_stm32mp1/Makefile obj-$(CONFIG_PMIC_STPMIC1) += ../../st/common/stpmic1.o · line 10

Quoted 2 lines
board/dhelectronics/dh_stm32mp1/Makefile +1 -0
 obj-$(CONFIG_SET_DFU_ALT_INFO) += ../../st/common/stm32mp_dfu.o
+obj-$(CONFIG_$(PHASE_)DFU_VIRT) += ../../st/common/stm32mp_dfu_virt.o

Thanks
Patrice

Applied to u-boot-stm32/master

Thanks
Patrice