From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Fri, 18 Apr 2008 16:49:45 +0200 Subject: [U-Boot-Users] [PATCH] allow ports to override bootelf behavior In-Reply-To: <20080418075454.4C1F7248AB@gemini.denx.de> References: <20080418075454.4C1F7248AB@gemini.denx.de> Message-ID: <200804181649.45582.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Friday 18 April 2008, Wolfgang Denk wrote: > In message <1208130139-18440-1-git-send-email-vapier@gentoo.org> you wrote: > > Change the bootelf setup function into a dedicated weak function called > > do_bootelf_exec. This way ports can control the behavior however they > > like before/after calling the ELF entry point. > > --- > > common/cmd_elf.c | 33 +++++++++++++++++++++------------ > > 1 files changed, 21 insertions(+), 12 deletions(-) > > Applied, thanks. Unfortunately this breaks all 440 ports using elf: Configuring for sequoia board... common/libcommon.a(cmd_elf.o): In function `do_bootelf_exec': /home/stefan/git/u-boot/u-boot/common/cmd_elf.c:54: undefined reference to `dcache_enable' make: *** [u-boot] Error 1 ppc_4xx-size: './u-boot': No such file No dcache_enble() here currently. I'll send a patch to add dcache_enable() to 440 in a short while. But this could affect other platforms as well. Best regards, Stefan ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================