8f5dc28f71688c1da9ba099f659e35750d455c81
[openwrt/openwrt.git] / package / boot / uboot-layerscape / patches / 0004-armv8-Support-loading-32-bit-OS-which-is-not-in-the-.patch
1 From cb5a037831053d22ce260dbec6b378f532bd2c6c Mon Sep 17 00:00:00 2001
2 From: Alison Wang <b18965@freescale.com>
3 Date: Tue, 21 Jun 2016 17:14:35 +0800
4 Subject: [PATCH 04/93] armv8: Support loading 32-bit OS which is not in the
5 form of FIT
6
7 As only FIT image is supported now, this patch is to support loading
8 32-bit uImage, dtb and rootfs separately.
9
10 Signed-off-by: Alison Wang <alison.wang@nxp.com>
11 ---
12 include/image.h | 3 ++-
13 1 file changed, 2 insertions(+), 1 deletion(-)
14
15 diff --git a/include/image.h b/include/image.h
16 index 299d6d2..0ea5f8e 100644
17 --- a/include/image.h
18 +++ b/include/image.h
19 @@ -694,7 +694,8 @@ static inline int image_check_type(const image_header_t *hdr, uint8_t type)
20 }
21 static inline int image_check_arch(const image_header_t *hdr, uint8_t arch)
22 {
23 - return (image_get_arch(hdr) == arch);
24 + return (image_get_arch(hdr) == arch) ||
25 + (image_get_arch(hdr) == IH_ARCH_ARM && arch == IH_ARCH_ARM64);
26 }
27 static inline int image_check_os(const image_header_t *hdr, uint8_t os)
28 {
29 --
30 1.7.9.5
31