[U-Boot] [RFC PATCH v2 03/20] sandbox: Add architecture image support

Simon Glass sjg at chromium.org
Fri Sep 23 18:22:05 CEST 2011


We won't actually load an image with this architecture, but we still need to
define it.

Signed-off-by: Simon Glass <sjg at chromium.org>
---
 include/image.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/image.h b/include/image.h
index 352e4a0..c7fbb88 100644
--- a/include/image.h
+++ b/include/image.h
@@ -106,6 +106,7 @@
 #define IH_ARCH_BLACKFIN	16	/* Blackfin	*/
 #define IH_ARCH_AVR32		17	/* AVR32	*/
 #define IH_ARCH_ST200	        18	/* STMicroelectronics ST200  */
+#define IH_ARCH_SANDBOX		19	/* Sandbox architecture (test only) */
 
 /*
  * Image Types
@@ -506,6 +507,8 @@ static inline int image_check_target_arch (const image_header_t *hdr)
 	if (!image_check_arch (hdr, IH_ARCH_SH))
 #elif defined(__sparc__)
 	if (!image_check_arch (hdr, IH_ARCH_SPARC))
+#elif defined(CONFIG_SANDBOX_ARCH)
+	if (0)
 #else
 # error Unknown CPU type
 #endif
-- 
1.7.3.1



More information about the U-Boot mailing list