summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-06-09 09:21:32 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-06-09 09:21:32 +0000
commit2d2246ed7d9da43948ec9282323189a7c25da8c7 (patch)
tree67717e6a0735c7cd2bd090758bc7d575619995b6
parentf2e7c05c2263ba662853d45138d17645dc35752c (diff)
downloadrockbox-2d2246ed7d9da43948ec9282323189a7c25da8c7.tar.gz
rockbox-2d2246ed7d9da43948ec9282323189a7c25da8c7.tar.bz2
rockbox-2d2246ed7d9da43948ec9282323189a7c25da8c7.zip
sbtoelf: add environment command to ignore format version checks (some files do not match it seems)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29988 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--utils/sbtools/sbtoelf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/sbtools/sbtoelf.c b/utils/sbtools/sbtoelf.c
index be719c6a5f..52d7179f2e 100644
--- a/utils/sbtools/sbtoelf.c
+++ b/utils/sbtools/sbtoelf.c
@@ -337,8 +337,8 @@ static void extract(unsigned long filesize)
bugp("File size mismatch");
if(sb_header->header_size * BLOCK_SIZE != sizeof(struct sb_header_t))
bugp("Bad header size");
- if(sb_header->major_ver != IMAGE_MAJOR_VERSION ||
- sb_header->minor_ver != IMAGE_MINOR_VERSION)
+ if((sb_header->major_ver != IMAGE_MAJOR_VERSION ||
+ sb_header->minor_ver != IMAGE_MINOR_VERSION) && strcmp(getenv("SB_IGNORE_VER"), "YES"))
bugp("Bad file format version");
if(sb_header->sec_hdr_size * BLOCK_SIZE != sizeof(struct sb_section_header_t))
bugp("Bad section header size");