From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 16.mo3.mail-out.ovh.net ([188.165.56.217] helo=mo3.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SIbk9-0006rQ-Eu for barebox@lists.infradead.org; Fri, 13 Apr 2012 08:20:34 +0000 Received: from mail622.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo3.mail-out.ovh.net (Postfix) with SMTP id 9DE6FFF9093 for ; Fri, 13 Apr 2012 10:21:38 +0200 (CEST) From: Jean-Christophe PLAGNIOL-VILLARD Date: Fri, 13 Apr 2012 10:02:47 +0200 Message-Id: <1334304170-26176-3-git-send-email-plagnioj@jcrosoft.com> In-Reply-To: <20120413075705.GE11079@game.jcrosoft.org> References: <20120413075705.GE11079@game.jcrosoft.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 3/5] bootm: add uimage binfmt support To: barebox@lists.infradead.org Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- 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 #include #include +#include #include 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