diff options
Diffstat (limited to 'include/image.h')
-rw-r--r-- | include/image.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h index b4b284d52b..aeb0d37ac0 100644 --- a/include/image.h +++ b/include/image.h @@ -886,6 +886,11 @@ static inline int image_check_type(const image_header_t *hdr, uint8_t type) } static inline int image_check_arch(const image_header_t *hdr, uint8_t arch) { +#ifndef USE_HOSTCC + /* Let's assume that sandbox can load any architecture */ + if (IS_ENABLED(CONFIG_SANDBOX)) + return true; +#endif return (image_get_arch(hdr) == arch) || (image_get_arch(hdr) == IH_ARCH_ARM && arch == IH_ARCH_ARM64); } |