From: Simon Glass Date: Fri, 23 Sep 2011 09:22:05 -0700 Subject: [U-Boot] [RFC PATCH v2 03/20] sandbox: Add architecture image support In-Reply-To: <1316794942-24709-1-git-send-email-sjg@chromium.org> References: <1316794942-24709-1-git-send-email-sjg@chromium.org> Message-ID: <1316794942-24709-4-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de We won't actually load an image with this architecture, but we still need to define it. Signed-off-by: Simon Glass --- 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