From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: barebox@lists.infradead.org
Subject: [PATCH 3/5] bootm: add uimage binfmt support
Date: Fri, 13 Apr 2012 10:02:47 +0200 [thread overview]
Message-ID: <1334304170-26176-3-git-send-email-plagnioj@jcrosoft.com> (raw)
In-Reply-To: <20120413075705.GE11079@game.jcrosoft.org>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
commands/bootm.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/commands/bootm.c b/commands/bootm.c
index 4f174db..b3e008f 100644
--- a/commands/bootm.c
+++ b/commands/bootm.c
@@ -46,6 +46,7 @@
#include <uncompress.h>
#include <memory.h>
#include <filetype.h>
+#include <binfmt.h>
#include <asm-generic/memory_layout.h>
static LIST_HEAD(handler_list);
@@ -452,6 +453,17 @@ BAREBOX_CMD_END
BAREBOX_MAGICVAR(bootargs, "Linux Kernel parameters");
+static struct binfmt_hook binfmt_uimage_hook = {
+ .type = filetype_uimage,
+ .exec = "bootm",
+};
+
+static int binfmt_uimage_init(void)
+{
+ return binfmt_register(&binfmt_uimage_hook);
+}
+fs_initcall(binfmt_uimage_init);
+
/**
* @file
* @brief Boot support for Linux
--
1.7.9.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2012-04-13 8:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-13 7:57 [PATCH 0/5] introduce " Jean-Christophe PLAGNIOL-VILLARD
2012-04-13 8:02 ` [PATCH 1/5] filetype: add Bourne Shell support Jean-Christophe PLAGNIOL-VILLARD
2012-04-13 8:02 ` [PATCH 2/5] Introduce binfmt support Jean-Christophe PLAGNIOL-VILLARD
2012-04-18 8:27 ` Sascha Hauer
2012-04-13 8:02 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2012-04-13 8:02 ` [PATCH 4/5] arm: bootm: add barebox and zImage " Jean-Christophe PLAGNIOL-VILLARD
2012-04-13 8:02 ` [PATCH 5/5] defaultenv: add " Jean-Christophe PLAGNIOL-VILLARD
2012-04-18 12:02 [PATCH 0/5 v2] introduce " Jean-Christophe PLAGNIOL-VILLARD
2012-04-18 12:27 ` [PATCH 3/5] bootm: add uimage " Jean-Christophe PLAGNIOL-VILLARD
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=1334304170-26176-3-git-send-email-plagnioj@jcrosoft.com \
--to=plagnioj@jcrosoft.com \
--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