diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2012-05-10 13:35:12 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-05-11 09:05:11 +0200 |
commit | 87b302f4e2411749241fb4d13b6f1583ebbfd88a (patch) | |
tree | d6b98c57a4db5aa15f610c76f89d23cea242fa52 /common | |
parent | 2a9d94a81e8d24b519848897a68eb66a5e53fa6f (diff) | |
download | barebox-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.c | 2 |
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; } |