Skip to contentSkip to conversation

cmd: pxe: add board specific PXE default path

PATCH New Marek Behún 2 participants 2 messages May 2, 2019 – May 6, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmd: pxe: add board specific PXE default path

The list of PXE default paths contains ARCH and SOC specific paths, but one PXE server can serve different board with the same ARCH and SOC. This is the case for Turris Omnia and Turris Mox, where ARCH=arm and SOC=mvebu.

If CONFIG_SYS_BOARD is defined, also try "default-$ARCH-$SOC-$BOARD" path.

---
 cmd/pxe.c | 3 +++
 1 file changed, 3 insertions(+)
cmd/pxe.c +3 -0
index 274555319b..127751642e 100644
@@ -22,6 +22,9 @@
 
 const char *pxe_default_paths[] = {
 #ifdef CONFIG_SYS_SOC
+#ifdef CONFIG_SYS_BOARD
+	"default-" CONFIG_SYS_ARCH "-" CONFIG_SYS_SOC "-" CONFIG_SYS_BOARD,
+#endif
 	"default-" CONFIG_SYS_ARCH "-" CONFIG_SYS_SOC,
 #endif
 	"default-" CONFIG_SYS_ARCH,
Signature · 1 line
2.21.0
#1 lore raw

PATCH 1/1 cmd: pxe: add board specific PXE default path

Quoted 9 lines · Marek Behún

The list of PXE default paths contains ARCH and SOC specific paths, but one PXE server can serve different board with the same ARCH and SOC. This is the case for Turris Omnia and Turris Mox, where ARCH=arm and SOC=mvebu.

If CONFIG_SYS_BOARD is defined, also try "default-$ARCH-$SOC-$BOARD" path.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190506/e8ec8b3d/attachment.sig>