From: Sughosh Ganu Date: Tue, 26 Oct 2010 01:38:47 +0530 Subject: [U-Boot] [PATCH 2/3 V2] Make board_init_f under nand_boot.c a weak function. Message-ID: <1288037327-30275-1-git-send-email-urwithsughosh@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Enable board_init_f to be overridden with a board specific funtion. Signed-off-by: Sughosh Ganu --- V2: Splitting this change as a separate patch. nand_spl/nand_boot.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/nand_spl/nand_boot.c b/nand_spl/nand_boot.c index ccd0af2..3cda41c 100644 --- a/nand_spl/nand_boot.c +++ b/nand_spl/nand_boot.c @@ -222,11 +222,12 @@ static int nand_load(struct mtd_info *mtd, unsigned int offs, } #if defined(CONFIG_ARM) && !defined(CONFIG_SYS_ARM_WITHOUT_RELOC) -void board_init_f (ulong bootflag) +void __board_init_f (ulong bootflag) { relocate_code (CONFIG_SYS_TEXT_BASE - TOTAL_MALLOC_LEN, NULL, CONFIG_SYS_TEXT_BASE); } +void board_init_f (ulong bootflag)__attribute__((weak, alias("__board_init_f"))); #endif /* -- 1.7.0.4