diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-15 08:11:12 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-03-27 05:04:31 +0300 |
commit | e2734d647e9c86f46083b29224fc7b41a46e1858 (patch) | |
tree | 40ed38640ea26eccd20a1a1a8483f26a9b43f687 /common/image-fit.c | |
parent | 1758551ec9526d56303a2b5cf1f58147e66945ed (diff) | |
download | u-boot-e2734d647e9c86f46083b29224fc7b41a46e1858.tar.xz |
sandbox: image: Allow sandbox to load any image
Sandbox is special in that it is used for testing and it does not match
any particular target architecture. Allow it to load an image from any
architecture, so that 'bootm' can be used as needed.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/image-fit.c')
-rw-r--r-- | common/image-fit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/image-fit.c b/common/image-fit.c index 28b3d2b191..2d0ece6181 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -1512,6 +1512,10 @@ int fit_image_check_arch(const void *fit, int noffset, uint8_t arch) uint8_t image_arch; int aarch32_support = 0; + /* Let's assume that sandbox can load any architecture */ + if (IS_ENABLED(CONFIG_SANDBOX)) + return true; + if (IS_ENABLED(CONFIG_ARM64_SUPPORT_AARCH32)) aarch32_support = 1; |