From: Simon Glass <sjg@chromium.org> Date: Mon, 20 Oct 2014 03:11:22 +0000 (-0600) Subject: sandbox: bootm: Don't fail the architecture check X-Git-Tag: v2025.01-rc5-pxa1908~14538 X-Git-Url: http://git.dujemihanovic.xyz/%22/icons/right.gif/static/git-favicon.png?a=commitdiff_plain;h=5ba63dd4f989075f2b720f6ab09dbd3eede26b61;p=u-boot.git sandbox: bootm: Don't fail the architecture check Since sandbox is used for testing, it should be able to 'boot' an image from any archhitecture. This allows us to test an image by loading it in sandbox. Signed-off-by: Simon Glass <sjg@chromium.org> --- diff --git a/common/image-fit.c b/common/image-fit.c index 255c4cac9c..2b9e71a8dc 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -1591,7 +1591,7 @@ int fit_image_load(bootm_headers_t *images, ulong addr, } bootstage_mark(bootstage_id + BOOTSTAGE_SUB_CHECK_ARCH); -#ifndef USE_HOSTCC +#if !defined(USE_HOSTCC) && !defined(CONFIG_SANDBOX) if (!fit_image_check_target_arch(fit, noffset)) { puts("Unsupported Architecture\n"); bootstage_error(bootstage_id + BOOTSTAGE_SUB_CHECK_ARCH);