summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2012-05-10 13:35:12 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2012-05-11 09:05:11 +0200
commit87b302f4e2411749241fb4d13b6f1583ebbfd88a (patch)
treed6b98c57a4db5aa15f610c76f89d23cea242fa52 /common
parent2a9d94a81e8d24b519848897a68eb66a5e53fa6f (diff)
downloadbarebox-87b302f4e2411749241fb4d13b6f1583ebbfd88a.tar.gz
barebox-87b302f4e2411749241fb4d13b6f1583ebbfd88a.tar.xz
MIPS: bootm: add "MIPS barebox" handler
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/filetype.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/filetype.c b/common/filetype.c
index 15a37325df..39c2098862 100644
--- a/common/filetype.c
+++ b/common/filetype.c
@@ -78,6 +78,8 @@ enum filetype file_detect_type(void *_buf)
return filetype_oftree;
if (strncmp(buf8, "ANDROID!", 8) == 0)
return filetype_aimage;
+ if (strncmp(buf8 + 0x10, "barebox", 7) == 0)
+ return filetype_mips_barebox;
return filetype_unknown;
}