public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v3 0/6] cmd: remove NET and CMD_NET dependency for CMD_PXE
@ 2019-11-25  8:07 Patrice Chotard
  2019-11-25  8:07 ` [U-Boot] [PATCH v3 1/6] cmd: Migrate from_env() from pxe.c to nvedit.c Patrice Chotard
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Patrice Chotard @ 2019-11-25  8:07 UTC (permalink / raw)
  To: u-boot


It allows to use sysboot command on board which have no NET support.

Currently, sysboot command can't be used if CMD_NET and NET flags are
not set, while sysboot allows to load extlinux.conf file from local
filesystem, so it doesn't need to depend of CMD_NET and NET flags.

  - Move from_env() from pxe.c to nvedit.c.
  - As sysboot and pxe commands are sharing piece of code, put this common
    code into a new file pxe_utils.c.
  - Extract sysboot command's code outside pxe.c and create a new sysboot.c
    file.
  - Fix some checkpatch issues.


Patrice Chotard (6):
  cmd: Migrate from_env() from pxe.c to nvedit.c
  cmd: Prepare sysboot command independence
  cmd: sysboot: Create a sysboot command dedicated file
  cmd: pxe_utils: Fix checkpatch WARNING/CHECK
  cmd: sysboot: Fix checkpatch WARNING/CHECK
  cmd: pxe: Fix checkpatch WARNING/CHECK

 Kconfig         |    1 +
 cmd/Kconfig     |    6 +
 cmd/Makefile    |    3 +-
 cmd/nvedit.c    |   17 +
 cmd/pxe.c       | 1730 ++---------------------------------------------
 cmd/pxe_utils.c | 1413 ++++++++++++++++++++++++++++++++++++++
 cmd/pxe_utils.h |   90 +++
 cmd/sysboot.c   |  134 ++++
 include/env.h   |   10 +
 9 files changed, 1726 insertions(+), 1678 deletions(-)
 create mode 100644 cmd/pxe_utils.c
 create mode 100644 cmd/pxe_utils.h
 create mode 100644 cmd/sysboot.c

-- 
2.17.1

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

end of thread, other threads:[~2019-12-06 21:48 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-25  8:07 [U-Boot] [PATCH v3 0/6] cmd: remove NET and CMD_NET dependency for CMD_PXE Patrice Chotard
2019-11-25  8:07 ` [U-Boot] [PATCH v3 1/6] cmd: Migrate from_env() from pxe.c to nvedit.c Patrice Chotard
2019-12-06 21:48   ` Tom Rini
2019-11-25  8:07 ` [U-Boot] [PATCH v3 2/6] cmd: Prepare sysboot command independence Patrice Chotard
2019-12-06 21:48   ` Tom Rini
2019-11-25  8:07 ` [U-Boot] [PATCH v3 3/6] cmd: sysboot: Create a sysboot command dedicated file Patrice Chotard
2019-12-06 21:48   ` Tom Rini
2019-11-25  8:07 ` [U-Boot] [PATCH v3 4/6] cmd: pxe_utils: Fix checkpatch WARNING/CHECK Patrice Chotard
2019-12-06 21:48   ` Tom Rini
2019-11-25  8:07 ` [U-Boot] [PATCH v3 5/6] cmd: sysboot: " Patrice Chotard
2019-12-06 21:48   ` Tom Rini
2019-11-25  8:07 ` [U-Boot] [PATCH v3 6/6] cmd: pxe: " Patrice Chotard
2019-12-06 21:48   ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox