From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: Bootm patches
Date: Tue, 24 Sep 2013 09:08:36 +0200 [thread overview]
Message-ID: <1380006527-2599-1-git-send-email-s.hauer@pengutronix.de> (raw)
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
next reply other threads:[~2013-09-24 7:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-24 7:08 Sascha Hauer [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1380006527-2599-1-git-send-email-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox