From: Mike Frysinger Date: Mon, 28 Nov 2011 22:07:56 -0500 Subject: [U-Boot] [RFC PATCH 3/7] reboard: Add generic relocation feature In-Reply-To: <1321919880-10070-4-git-send-email-sjg@chromium.org> References: <1321919880-10070-1-git-send-email-sjg@chromium.org> <1321919880-10070-4-git-send-email-sjg@chromium.org> Message-ID: <201111282207.57471.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday 21 November 2011 18:57:56 Simon Glass wrote: > board/Makefile | 45 > board/reloc.c | 101 not to bikeshed, but i don't think we want files in board/. how about board/common/ or board/generic/ instead ? > --- /dev/null > +++ b/board/Makefile > > +ifndef CONFIG_SYS_LEGACY_BOARD > +COBJS += reloc.o > +endif i don't think relocation should be tied "legacy board". not all arches do relocation at all, which means they might never opt in to this aspect. > --- a/include/common.h > +++ b/include/common.h > > -void relocate_code (ulong, gd_t *, ulong) __attribute__ ((noreturn)); > +#include i'd think very few funcs would need this. so maybe we should make the few places include reloc.h explicitly. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: