tools/mkimage: avoid a linux specific return code
authorFelix Fietkau <nbd@openwrt.org>
Tue, 16 Jul 2013 09:43:31 +0000 (09:43 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 16 Jul 2013 09:43:31 +0000 (09:43 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37368

tools/mkimage/patches/070-avoid_ENOMEDIUM.patch [new file with mode: 0644]

diff --git a/tools/mkimage/patches/070-avoid_ENOMEDIUM.patch b/tools/mkimage/patches/070-avoid_ENOMEDIUM.patch
new file mode 100644 (file)
index 0000000..53b3aa6
--- /dev/null
@@ -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;