From 887b3c358aaf493dae0c2efcddc686bd6cf180f5 Mon Sep 17 00:00:00 2001 From: Clement Leger Date: Tue, 30 Jun 2020 22:43:59 +0200 Subject: common: bootm: allow building with an undefined IH_ARCH Some architectures might not want to support uImage. To do so, allow IH_ARCH to be let undefined which will make it possible to compile boot support. Signed-off-by: Clement Leger Signed-off-by: Sascha Hauer --- common/bootm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/bootm.c b/common/bootm.c index 8fec1ee34d..4012561a73 100644 --- a/common/bootm.c +++ b/common/bootm.c @@ -505,7 +505,7 @@ static int bootm_open_os_uimage(struct image_data *data) uimage_print_contents(data->os); - if (data->os->header.ih_arch != IH_ARCH) { + if (IH_ARCH == IH_ARCH_INVALID || data->os->header.ih_arch != IH_ARCH) { printf("Unsupported Architecture 0x%x\n", data->os->header.ih_arch); return -EINVAL; -- cgit v1.2.3