[U-Boot] [PATCH V7 1/5] mv: seperate kirkwood and armada from common setting

Wolfgang Denk wd at denx.de
Fri Jan 28 09:17:24 CET 2011


Dear Albert ARIBAUD,

In message <4D426699.4080106 at free.fr> you wrote:
> What I would like to understand is, the '$(X)' macro expansion operator
> indeed has meaning and makes sense for some tools such as Make, but not
> for a C preprocessor or compiler. Is this  config.h file included by a
> makefile somehow?

yes, it is.

Please see the autoconf.mk build step in the top level makefile: it
processes (among other things) the board config file and creates
include files to provide the needed symbols for make.

It is this mechanism that allows us - for example - to move the
CONFIG_SYS_TEXT_BASE definitions into the board config files, even
though these are needed in the Makefiles for the linker step.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
When a woman marries again it is because she detested her first  hus-
band.  When  a  man  marries again, it is because he adored his first
wife.                                                  -- Oscar Wilde


More information about the U-Boot mailing list