summaryrefslogtreecommitdiffstats
path: root/common/image-fit.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-10-10 08:21:57 -0600
committerSimon Glass <sjg@chromium.org>2014-10-28 20:44:04 -0600
commit5bda35cffafe4955bbbae820dd17cb6e3cbca8d8 (patch)
treeee1846a1036f4eea67ec561fe6ef3f18f11e82b8 /common/image-fit.c
parent76539383ea0288985dc6216a92e3d7961df958b3 (diff)
downloadtalos-obmc-uboot-5bda35cffafe4955bbbae820dd17cb6e3cbca8d8.tar.gz
talos-obmc-uboot-5bda35cffafe4955bbbae820dd17cb6e3cbca8d8.zip
x86: image: Add new image type for x64_64
This is a bit odd in that we are permitted to boot images for either, even though they are separate architectures. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/image-fit.c')
-rw-r--r--common/image-fit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/image-fit.c b/common/image-fit.c
index a272ea2e83..4ffc5aaa51 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -1114,7 +1114,8 @@ int fit_image_check_arch(const void *fit, int noffset, uint8_t arch)
if (fit_image_get_arch(fit, noffset, &image_arch))
return 0;
- return (arch == image_arch);
+ return (arch == image_arch) ||
+ (arch == IH_ARCH_I386 && image_arch == IH_ARCH_X86_64);
}
/**
OpenPOWER on IntegriCloud