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
This commit is contained in:
parent
f2e7c05c22
commit
2d2246ed7d
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue