summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-10-19 21:11:22 -0600
committerSimon Glass <sjg@chromium.org>2014-10-22 09:03:06 -0600
commit5ba63dd4f989075f2b720f6ab09dbd3eede26b61 (patch)
tree283500e8f8ce8d407cf9b5bde23a8596b17a0974 /common
parent97d1e0c85018d061ffa4ae612903cd26a795d385 (diff)
downloadu-boot-imx-5ba63dd4f989075f2b720f6ab09dbd3eede26b61.zip
u-boot-imx-5ba63dd4f989075f2b720f6ab09dbd3eede26b61.tar.gz
u-boot-imx-5ba63dd4f989075f2b720f6ab09dbd3eede26b61.tar.bz2
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>
Diffstat (limited to 'common')
-rw-r--r--common/image-fit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/image-fit.c b/common/image-fit.c
index 255c4ca..2b9e71a 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);