From 2d2246ed7d9da43948ec9282323189a7c25da8c7 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Thu, 9 Jun 2011 09:21:32 +0000 Subject: 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 --- utils/sbtools/sbtoelf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/sbtools') 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"); -- cgit v1.2.3