[U-Boot-Users] [PATCH 8/9] Generate include/autoconf.mk from board config files
Grant Likely
grant.likely at secretlab.ca
Wed Sep 26 16:51:34 CEST 2007
On 9/26/07, Shinya Kuribayashi <skuribay at ruby.dti.ne.jp> wrote:
> Grant Likely wrote:
> > diff --git a/tools/scripts/define2mk.sed b/tools/scripts/define2mk.sed
> > new file mode 100644
> > index 0000000..6464627
> > --- /dev/null
> > +++ b/tools/scripts/define2mk.sed
> > @@ -0,0 +1,29 @@
> > +#
> > +# Sed script to parse CPP macros and generate output usable by make
> > +#
> > +# It is expected that this script is fed the output of 'gpp -dM'
>
> 'cpp -dM'
Oops.
>
> It seems scripts works, but I feel like a little bit hard coded.
> FWIW how Linux work around this sort of job? I have to check..
> Anyway, I don't intend to object this patch. Please go ahead :-)
Yes, it is a little hard coded to only grab CONFIG_* macros. However,
this is only a temporary migration step. The goal is to remove the
CONFIG_* macros from the include/configs/*.h files entirely and use
defconfig files instead (which are input files for the Kconfig
system). At that point, this script will go away.
Cheers,
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely at secretlab.ca
(403) 399-0195
More information about the U-Boot
mailing list