From: Jean-Christophe PLAGNIOL-VILLARD Date: Sat, 19 Apr 2008 17:33:43 +0200 Subject: [U-Boot-Users] [PATCH] cfi-flash: Add?CFG_FLASH_AUTOPROTECT_LIST In-Reply-To: <200804191650.32303.matthias.fuchs@esd-electronics.com> References: <200804181629.40697.matthias.fuchs@esd-electronics.com> <200804191330.04925.matthias.fuchs@esd-electronics.com> <200804191402.23386.sr@denx.de> <200804191650.32303.matthias.fuchs@esd-electronics.com> Message-ID: <20080419153342.GA12162@game.jcrosoft.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 16:50 Sat 19 Apr , Matthias Fuchs wrote: > Hi Stefan, > > I could also life with your approach, but it will add code > even to platforms that do not use the new option. > > In this case I would prefer it against the weak implementation. I've already answer about it to Timur in this e-mail http://article.gmane.org/gmane.comp.boot-loaders.u-boot/37814/match=weak I'm preparing a path about adding this define import compiler-gcc header from linux and add #ifndef __weak_alias #ifndef __weak_alias(fct) __attribute__((weak,alias(#fct))) #endif so just add __weak to your default stucture and overwrite in the board Best Regards, J.