summaryrefslogtreecommitdiff
path: root/utils/sbtools
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 /utils/sbtools
parentf2e7c05c2263ba662853d45138d17645dc35752c (diff)
downloadrockbox-2d2246ed7d9da43948ec9282323189a7c25da8c7.tar.gz
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
Diffstat (limited to 'utils/sbtools')
-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)
337 bugp("File size mismatch"); 337 bugp("File size mismatch");
338 if(sb_header->header_size * BLOCK_SIZE != sizeof(struct sb_header_t)) 338 if(sb_header->header_size * BLOCK_SIZE != sizeof(struct sb_header_t))
339 bugp("Bad header size"); 339 bugp("Bad header size");
340 if(sb_header->major_ver != IMAGE_MAJOR_VERSION || 340 if((sb_header->major_ver != IMAGE_MAJOR_VERSION ||
341 sb_header->minor_ver != IMAGE_MINOR_VERSION) 341 sb_header->minor_ver != IMAGE_MINOR_VERSION) && strcmp(getenv("SB_IGNORE_VER"), "YES"))
342 bugp("Bad file format version"); 342 bugp("Bad file format version");
343 if(sb_header->sec_hdr_size * BLOCK_SIZE != sizeof(struct sb_section_header_t)) 343 if(sb_header->sec_hdr_size * BLOCK_SIZE != sizeof(struct sb_section_header_t))
344 bugp("Bad section header size"); 344 bugp("Bad section header size");