[U-Boot] [PATCH 2/3 V2] Make board_init_f under nand_boot.c a weak function.

Ben Gardiner bengardiner at nanometrics.ca
Tue Oct 26 15:11:39 CEST 2010


On Mon, Oct 25, 2010 at 4:08 PM, Sughosh Ganu <urwithsughosh at gmail.com> wrote:
>  Enable board_init_f to be overridden with a board specific
>  funtion.
>
> Signed-off-by: Sughosh Ganu <urwithsughosh at gmail.com>

Applies to c163f4478ca72f51b28b55f74addc8fe029d7b83 of
git://git.denx.de/u-boot.git.

This patch has checkpatch.pl warnings:
WARNING: space prohibited between function name and open parenthesis '('
#94: FILE: nand_spl/nand_boot.c:225:
+void __board_init_f (ulong bootflag)

WARNING: line over 80 characters
#99: FILE: nand_spl/nand_boot.c:230:
+void board_init_f (ulong bootflag)__attribute__((weak,
alias("__board_init_f")));

WARNING: space prohibited between function name and open parenthesis '('
#99: FILE: nand_spl/nand_boot.c:230:
+void board_init_f (ulong bootflag)__attribute__((weak,
alias("__board_init_f")));

The resulting u-boot is usable; tested on da850evm with NAND, env.oob and tftp.

Best Regards,
Ben Gardiner

---
Nanometrics Inc.
http://www.nanometrics.ca


More information about the U-Boot mailing list