Hi All,
As a bit of a lark, I ran the following shell command:
grep -r -h -o -G "#define CONFIG.*" * | \
sed 's/#define[ \t]*//' | \
sed 's/^\([A-Za-z0-9_]*\).*/\1/' | \
sort -u > README.configuration.options
I then ran the result through the following script into
README.configuration.options.counted
#!/bin/bash
INPUT=doc/README.configuration.options
#!/bin/bash
INPUT=doc/README.configuration.options
for i in `cat $INPUT`
do
grep -rcs --exclude-dir=doc '\<'${i}'\>' * | \
cut -d : -f 2 | \
awk '{sum+=$1} END {printf("%d\t%s\n", sum, f);}' f=$i
done
The result? 5539 lines of pure configuration option goodness :)
Here's a little snippet:
6 CONFIG_100MHz
8 CONFIG_133MHZ_DRAM
7 CONFIG_300MHz
13 CONFIG_405
24 CONFIG_405CR
88 CONFIG_405EP
81 CONFIG_405EX
>From this it is easy to find unused options (CONFIG_ARIA is found only as a
#define in include/configs/aria.h for example)
So my RFC is twofold:
1) Should we start to systematically remove unused options
2) Should we centralise all options in a single README (or two, one for
standard CONFIG options and one for CONFIG_SYS options)?
Regards,
Graeme
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot