From 2455efa2eac0b98f75ceef9b53074b204cdc9733 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Beh=C3=BAn?= Date: Thu, 2 May 2019 15:29:12 +0200 Subject: [PATCH] cmd: pxe: add board specific PXE default path MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- cmd/pxe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/pxe.c b/cmd/pxe.c index e77770237c..1dd0a74ea3 100644 --- a/cmd/pxe.c +++ b/cmd/pxe.c @@ -24,6 +24,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.25.1