mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Bootm patches
@ 2013-09-24  7:08 Sascha Hauer
  2013-09-24  7:08 ` [PATCH 01/11] bootm: fix possible memory leak Sascha Hauer
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Sascha Hauer @ 2013-09-24  7:08 UTC (permalink / raw)
  To: barebox

The following contains some memory leak fixes and cleanups for bootm,
but more important: The conversion of the current defenv-2 'boot' script
to a command with the same semantics.

Motivation for doing this was that the current shell script(s) are already
stretched to the limits we can handle with our limited shell. The C code
instead looks rather simple and can be further extended. One of these
extensions will come very soon in the form of the bootloader spec:
http://www.freedesktop.org/wiki/Specifications/BootLoaderSpec/
So this series is mainly a preparation for it.

Sascha

----------------------------------------------------------------
Sascha Hauer (11):
      bootm: fix possible memory leak
      bootm: fix memory leak
      bootm: check for os image file
      bootm: remove unused define
      bootm: move getenv_loadaddr from command to common
      bootm: move globalvars from command to common
      bootm: separate bootm input data and internal data
      bootm: Add dryrun support
      ARM: compile bootm code depending on CONFIG_BOOTM
      command: Let builtin command take precedence
      defenv-2: replace boot script with command

 arch/arm/Kconfig                 |   2 +-
 arch/arm/lib/Makefile            |   2 +-
 commands/Kconfig                 |  11 ++
 commands/Makefile                |   1 +
 commands/boot.c                  | 258 +++++++++++++++++++++++++++++++++++++++
 commands/bootm.c                 |  81 +++---------
 common/Kconfig                   |   1 +
 common/binfmt.c                  |   5 +-
 common/bootm.c                   |  87 ++++++++++++-
 defaultenv-2/base/bin/_boot      |  44 -------
 defaultenv-2/base/bin/_boot_help |  20 ---
 defaultenv-2/base/bin/_boot_list |   7 --
 defaultenv-2/base/bin/boot       |  65 ----------
 include/boot.h                   |  18 ++-
 14 files changed, 395 insertions(+), 207 deletions(-)
 create mode 100644 commands/boot.c
 delete mode 100644 defaultenv-2/base/bin/_boot
 delete mode 100644 defaultenv-2/base/bin/_boot_help
 delete mode 100644 defaultenv-2/base/bin/_boot_list
 delete mode 100644 defaultenv-2/base/bin/boot

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2013-09-24  7:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-24  7:08 Bootm patches Sascha Hauer
2013-09-24  7:08 ` [PATCH 01/11] bootm: fix possible memory leak Sascha Hauer
2013-09-24  7:08 ` [PATCH 02/11] bootm: fix " Sascha Hauer
2013-09-24  7:08 ` [PATCH 03/11] bootm: check for os image file Sascha Hauer
2013-09-24  7:08 ` [PATCH 04/11] bootm: remove unused define Sascha Hauer
2013-09-24  7:08 ` [PATCH 05/11] bootm: move getenv_loadaddr from command to common Sascha Hauer
2013-09-24  7:08 ` [PATCH 06/11] bootm: move globalvars " Sascha Hauer
2013-09-24  7:08 ` [PATCH 07/11] bootm: separate bootm input data and internal data Sascha Hauer
2013-09-24  7:08 ` [PATCH 08/11] bootm: Add dryrun support Sascha Hauer
2013-09-24  7:08 ` [PATCH 09/11] ARM: compile bootm code depending on CONFIG_BOOTM Sascha Hauer
2013-09-24  7:08 ` [PATCH 10/11] command: Let builtin command take precedence Sascha Hauer
2013-09-24  7:08 ` [PATCH 11/11] defenv-2: replace boot script with command Sascha Hauer

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