Bootm patches

Sascha Hauer s.hauer at pengutronix.de
Tue Sep 24 03:08:36 EDT 2013


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



More information about the barebox mailing list