From: Felix Fietkau Date: Tue, 16 Jul 2013 09:43:31 +0000 (+0000) Subject: tools/mkimage: avoid a linux specific return code X-Git-Tag: reboot~9857 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ccdd6e82159c9c08e12e4095cb946455209fa36b;p=openwrt%2Fstaging%2Fxback.git tools/mkimage: avoid a linux specific return code Signed-off-by: Felix Fietkau SVN-Revision: 37368 --- 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; +