sandbox: bootm: Don't fail the architecture check
authorSimon Glass <sjg@chromium.org>
Mon, 20 Oct 2014 03:11:22 +0000 (21:11 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 22 Oct 2014 15:03:06 +0000 (09:03 -0600)
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>
common/image-fit.c

index 255c4cac9cafa328d33cd382e524207c1728c7cc..2b9e71a8dccef1ca380982f477f8f9c6e1230c59 100644 (file)
@@ -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);