aboutsummaryrefslogtreecommitdiffstats
path: root/tools/mkimage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-07-16 09:43:31 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-07-16 09:43:31 +0000
commit21976b748b498398a4cc86d6cbbfdef05479dd25 (patch)
treee0e9097fcc7989010e329687d1954eb919ec0be5 /tools/mkimage
parent71619ff53b33376a4e134e11ffb8d81a38a46dcd (diff)
downloadmaster-187ad058-21976b748b498398a4cc86d6cbbfdef05479dd25.tar.gz
master-187ad058-21976b748b498398a4cc86d6cbbfdef05479dd25.tar.bz2
master-187ad058-21976b748b498398a4cc86d6cbbfdef05479dd25.zip
tools/mkimage: avoid a linux specific return code
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37368 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/mkimage')
-rw-r--r--tools/mkimage/patches/070-avoid_ENOMEDIUM.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/mkimage/patches/070-avoid_ENOMEDIUM.patch b/tools/mkimage/patches/070-avoid_ENOMEDIUM.patch
new file mode 100644
index 0000000000..53b3aa62c3
--- /dev/null
+++ b/tools/mkimage/patches/070-avoid_ENOMEDIUM.patch
@@ -0,0 +1,11 @@
+--- a/common/image-fit.c
++++ b/common/image-fit.c
+@@ -1557,7 +1557,7 @@ int fit_image_load(bootm_headers_t *imag
+ if (fit_image_get_data(fit, noffset, &buf, &size)) {
+ printf("Could not find %s subimage data!\n", prop_name);
+ bootstage_error(bootstage_id + BOOTSTAGE_SUB_GET_DATA);
+- return -ENOMEDIUM;
++ return -EIO;
+ }
+ len = (ulong)size;
+