All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] pxe: Try even board specific boot
@ 2018-10-17 14:24 michal.hrusecky at nic.cz
  2018-11-27  3:51 ` [U-Boot] " Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: michal.hrusecky at nic.cz @ 2018-10-17 14:24 UTC (permalink / raw)
  To: u-boot

From: Michal Hrusecky <michal.hrusecky@nic.cz>

Add path containing board name (if available) to the list of paths tried via
PXE by default. Some SoC families are quite diverse and sometimes it makes
sense to have special image just for a specific boards.

Signed-off-by: Michal Hrusecky <michal.hrusecky@nic.cz>
---
 cmd/pxe.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cmd/pxe.c b/cmd/pxe.c
index 274555319b..0742b3b4f9 100644
--- a/cmd/pxe.c
+++ b/cmd/pxe.c
@@ -21,6 +21,9 @@
 #define MAX_TFTP_PATH_LEN 127
 
 const char *pxe_default_paths[] = {
+#ifdef CONFIG_SYS_BOARD
+	"default-" CONFIG_SYS_ARCH "-" CONFIG_SYS_SOC "-" CONFIG_SYS_BOARD,
+#endif
 #ifdef CONFIG_SYS_SOC
 	"default-" CONFIG_SYS_ARCH "-" CONFIG_SYS_SOC,
 #endif
-- 
2.19.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] pxe: Try even board specific boot
  2018-10-17 14:24 [U-Boot] [PATCH] pxe: Try even board specific boot michal.hrusecky at nic.cz
@ 2018-11-27  3:51 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2018-11-27  3:51 UTC (permalink / raw)
  To: u-boot

On Wed, Oct 17, 2018 at 04:24:23PM +0200, michal.hrusecky at nic.cz wrote:

> From: Michal Hrusecky <michal.hrusecky@nic.cz>
> 
> Add path containing board name (if available) to the list of paths tried via
> PXE by default. Some SoC families are quite diverse and sometimes it makes
> sense to have special image just for a specific boards.
> 
> Signed-off-by: Michal Hrusecky <michal.hrusecky@nic.cz>
> ---
>  cmd/pxe.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/cmd/pxe.c b/cmd/pxe.c
> index 274555319b..0742b3b4f9 100644
> --- a/cmd/pxe.c
> +++ b/cmd/pxe.c
> @@ -21,6 +21,9 @@
>  #define MAX_TFTP_PATH_LEN 127
>  
>  const char *pxe_default_paths[] = {
> +#ifdef CONFIG_SYS_BOARD
> +	"default-" CONFIG_SYS_ARCH "-" CONFIG_SYS_SOC "-" CONFIG_SYS_BOARD,
> +#endif
>  #ifdef CONFIG_SYS_SOC
>  	"default-" CONFIG_SYS_ARCH "-" CONFIG_SYS_SOC,
>  #endif

This fails to build in a number of combinations, but the first example
is just sandbox_defconfig, please fix, 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/20181126/c59730a0/attachment.sig>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-27  3:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-17 14:24 [U-Boot] [PATCH] pxe: Try even board specific boot michal.hrusecky at nic.cz
2018-11-27  3:51 ` [U-Boot] " 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.