* [U-Boot] [PATCH] cmd: pxe: add board specific PXE default path
@ 2019-05-02 13:29 Marek Behún
2019-05-06 11:16 ` Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Marek Behún @ 2019-05-02 13:29 UTC (permalink / raw)
To: u-boot
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.
Signed-off-by: Marek Behún <marek.behun@nic.cz>
---
cmd/pxe.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/cmd/pxe.c b/cmd/pxe.c
index 274555319b..127751642e 100644
--- a/cmd/pxe.c
+++ b/cmd/pxe.c
@@ -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,
--
2.21.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] cmd: pxe: add board specific PXE default path
2019-05-02 13:29 [U-Boot] [PATCH] cmd: pxe: add board specific PXE default path Marek Behún
@ 2019-05-06 11:16 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2019-05-06 11:16 UTC (permalink / raw)
To: u-boot
On Thu, May 02, 2019 at 03:29:12PM +0200, Marek Behún wrote:
> 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.
>
> Signed-off-by: Marek Behún <marek.behun@nic.cz>
Applied to u-boot/master, thanks!
--
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-06 11:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-02 13:29 [U-Boot] [PATCH] cmd: pxe: add board specific PXE default path Marek Behún
2019-05-06 11:16 ` Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.