tools/mkimage: avoid a linux specific return code
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 37368
This commit is contained in:
parent
87587736e2
commit
ccdd6e8215
1 changed files with 11 additions and 0 deletions
11
tools/mkimage/patches/070-avoid_ENOMEDIUM.patch
Normal file
11
tools/mkimage/patches/070-avoid_ENOMEDIUM.patch
Normal file
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue