[U-Boot-Users] PATCH: Introducing CONFIG_BOARD_PRE_RESET

Steven Scholz steven.scholz at imc-berlin.de
Mon Oct 25 17:12:38 CEST 2004


Hi Gerald,

>>Do you see any problems without #ifdef ?
> 
> The reason I suggested the #ifdef is because the actual code
> implementation is surrounded by the #ifdef so, if you don't have
> CONFIG_BOARD_PRE_RESET defined, you will have a declaration of
> board_pre_reset() but no code implementing it.

This is how it's done all over the U-Boot source code.
So I take it for some kind of "coding style" ... ;-)

Steven




More information about the U-Boot mailing list