summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-02-13 20:16:30 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-02-13 20:25:14 +0100
commit7eb1636c7067a15446f2313d3bf5092fcca94908 (patch)
treea14f32f9578a9abfe2cda4ffb1c4d2056bbc2219 /scripts
parente83de66f3f85f5a53474e85f01ce066ec7f31f5a (diff)
downloadbarebox-7eb1636c7067a15446f2313d3bf5092fcca94908.tar.gz
barebox-7eb1636c7067a15446f2313d3bf5092fcca94908.tar.xz
Revert "images: Drop unnecessary fix_size"
This reverts commit 5c0e16591d9471a345b77a41fde76de34f301f6b. The fix_size scripts is not necessary for newer ARM toolchains, it is however necessary for the older ARM toolchains (gcc-5 and older). The original reason to drop fix_size was that it doesn't work on MIPS. With this patch we add the -i flag so that we ignore unknown images and can succesfully build MIPS images. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/fix_size.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/fix_size.c b/scripts/fix_size.c
index 7014a3faf6..cb074e3cbc 100644
--- a/scripts/fix_size.c
+++ b/scripts/fix_size.c
@@ -68,11 +68,12 @@ int main(int argc, char**argv)
}
if (strcmp(magic, "barebox")) {
- fprintf(stderr, "invalid magic\n");
- if (ignore_unknown)
+ if (ignore_unknown) {
ret = 0;
- else
+ } else {
+ fprintf(stderr, "invalid magic\n");
ret = 1;
+ }
goto err;
}