From: Jeroen Hofstee <jeroen@myspectrum.nl>
To: u-boot@lists.denx.de
Subject: [U-Boot] image: Use ENOENT instead of ENOMEDIUM for better compatibility
Date: Sun, 16 Jun 2013 19:17:24 +0200 [thread overview]
Message-ID: <51BDF324.8010808@myspectrum.nl> (raw)
In-Reply-To: <1371394009-21590-1-git-send-email-sjg@chromium.org>
Hello Simon,
On 06/16/2013 04:46 PM, Simon Glass wrote:
> This error may not be defined on some platforms such as MacOS so host
> compilation will fail. Use one of the more common errors instead.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
>
> ---
> common/image-fit.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/common/image-fit.c b/common/image-fit.c
> index 7bf82d3..f40f160 100644
> --- a/common/image-fit.c
> +++ b/common/image-fit.c
> @@ -1557,7 +1557,7 @@ int fit_image_load(bootm_headers_t *images, const char *prop_name, ulong addr,
> 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 -ENOENT;
> }
> len = (ulong)size;
>
This fixes building for FreeBSD as well, thanks.
Regards,
Jeroen
next prev parent reply other threads:[~2013-06-16 17:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-16 14:46 [U-Boot] [PATCH] image: Use ENOENT instead of ENOMEDIUM for better compatibility Simon Glass
2013-06-16 17:17 ` Jeroen Hofstee [this message]
2013-06-17 6:34 ` Andreas Bießmann
2013-06-17 7:04 ` Lubomir Popov
2013-06-17 13:57 ` Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51BDF324.8010808@myspectrum.nl \
--to=jeroen@myspectrum.nl \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox