From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 4.mo2.mail-out.ovh.net ([87.98.172.75] helo=mo2.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Txf3K-0006y2-ME for barebox@lists.infradead.org; Tue, 22 Jan 2013 14:42:19 +0000 Received: from mail170.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo2.mail-out.ovh.net (Postfix) with SMTP id 1219DDC16AC for ; Tue, 22 Jan 2013 15:52:00 +0100 (CET) From: Jean-Christophe PLAGNIOL-VILLARD Date: Tue, 22 Jan 2013 15:40:37 +0100 Message-Id: <1358865645-22631-2-git-send-email-plagnioj@jcrosoft.com> In-Reply-To: <1358865645-22631-1-git-send-email-plagnioj@jcrosoft.com> References: <20130122143833.GM26329@game.jcrosoft.org> <1358865645-22631-1-git-send-email-plagnioj@jcrosoft.com> 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 02/10] filetype: add is_barebox_head To: barebox@lists.infradead.org to detect if it's a barebox for the current running arch Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- include/filetype.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/filetype.h b/include/filetype.h index c2af917..a5de4f7 100644 --- a/include/filetype.h +++ b/include/filetype.h @@ -66,4 +66,9 @@ static inline int is_barebox_mips_head(const char *head) } #endif +static inline int is_barebox_head(const char *head) +{ + return is_barebox_arm_head(head) || is_barebox_mips_head(head); +} + #endif /* __FILE_TYPE_H */ -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox