summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-01-22 15:40:37 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-01-22 22:03:44 +0100
commit172f44651c5d7565a84b74a36cb1eff2d46643b9 (patch)
treeed7c626945b5aacf1f0c765e3664ba7cc2817c4b
parent03939c0dfbf27d99e81d85e1bc0340fbee083d74 (diff)
downloadbarebox-172f44651c5d7565a84b74a36cb1eff2d46643b9.tar.gz
barebox-172f44651c5d7565a84b74a36cb1eff2d46643b9.tar.xz
filetype: add is_barebox_head
to detect if it's a barebox for the current running arch Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--include/filetype.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/filetype.h b/include/filetype.h
index 3b0715f149..4d43757b8c 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 */