From: Tom Rini Date: Mon, 22 Apr 2013 10:03:10 -0400 Subject: [U-Boot] [PATCH v3 03/17] sandbox: Add support for generic board In-Reply-To: <1366483372-16523-4-git-send-email-sjg@chromium.org> References: <1366483372-16523-1-git-send-email-sjg@chromium.org> <1366483372-16523-4-git-send-email-sjg@chromium.org> Message-ID: <20130422140310.GO14952@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Apr 20, 2013 at 11:42:38AM -0700, Simon Glass wrote: > Add generic board support for sandbox. [snip] > diff --git a/arch/sandbox/include/asm/u-boot.h b/arch/sandbox/include/asm/u-boot.h > index de8120a..7b93acb 100644 > --- a/arch/sandbox/include/asm/u-boot.h > +++ b/arch/sandbox/include/asm/u-boot.h > @@ -36,6 +36,11 @@ > #ifndef _U_BOOT_H_ > #define _U_BOOT_H_ 1 > > +#ifdef CONFIG_SYS_GENERIC_BOARD > +/* Use the generic board which requires a unified bd_info */ > +#include > +#else You're converting the whole arch here, so just drop the non-CONFIG_SYS_GENERIC_BOARD code? [snip] > diff --git a/arch/sandbox/lib/Makefile b/arch/sandbox/lib/Makefile > index fbe579b..b1ae168 100644 > --- a/arch/sandbox/lib/Makefile > +++ b/arch/sandbox/lib/Makefile > @@ -27,7 +27,9 @@ include $(TOPDIR)/config.mk > > LIB = $(obj)lib$(ARCH).o > > +ifndef CONFIG_SYS_GENERIC_BOARD > COBJS-y += board.o > +endif Then board.c goes away too. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: