[U-Boot] without board level config.mk How to add CPPFLAGS

Wolfgang Denk wd at denx.de
Mon Mar 28 12:28:38 CEST 2011


Dear zzs,

In message <20110328091916.GC26252 at greatfirst.com> you wrote:
>
> > What exactly would you need board specific CPPFLAGS settings for?
> >
> I just want to add a -iquote flag for searching my header file which in
> the linux driver dir.

This will not be accepted.

U-Boot is supposed to be self-contained. It must not reference any
source (or header) files outside the U-Boot directory.

> I had wrote a linux driver and has a header file in it. Now I want to
> write this driver for u-boot. So I think copy that header file to u-boot
> source tree is not a good idea because I must modify two same file when
> something wrong.

You can probably write the file such that both U-Boot and Linux can
use the same version.

> So I want add "-iquote my/header/dir" to CPPFLAGS

This will not be accepted.

> Is there any good methods?

Make sure that U-Boot has all files it needs in it's own source tree.

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
C++ was an interesting and valuable experiment, but we've learned its
lessons and it's time to move on.
                            - Peter Curran in <DCqM4z.BxB at isgtec.com>


More information about the U-Boot mailing list