
On 9/26/07, Shinya Kuribayashi skuribay@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.