Re: [U-Boot] [RFC] Centralise documentation of CONFIG_ options (and finding unused ones)

2011-04-17 Thread Graeme Russ
On Sunday, April 17, 2011, Timur Tabi wrote: > On Sat, Apr 16, 2011 at 2:16 AM, Graeme Russ wrote: > >> #!/bin/bash >> INPUT=doc/README.configuration.options.list >> OUTPUT1=doc/README.configuration.options.counted.code_usage >> OUTPUT2=doc/README.configuration.options.counted.doc >> OUTPUT3=doc/

Re: [U-Boot] [RFC] Centralise documentation of CONFIG_ options (and finding unused ones)

2011-04-17 Thread Timur Tabi
On Sat, Apr 16, 2011 at 2:16 AM, Graeme Russ wrote: > #!/bin/bash > INPUT=doc/README.configuration.options.list > OUTPUT1=doc/README.configuration.options.counted.code_usage > OUTPUT2=doc/README.configuration.options.counted.doc > OUTPUT3=doc/README.configuration.options.counted.config How about

Re: [U-Boot] [RFC] Centralise documentation of CONFIG_ options (and finding unused ones)

2011-04-16 Thread Graeme Russ
On 14/04/11 19:14, Kumar Gala wrote: >>> 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

Re: [U-Boot] [RFC] Centralise documentation of CONFIG_ options (and finding unused ones)

2011-04-14 Thread Kumar Gala
>> 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 > standar

Re: [U-Boot] [RFC] Centralise documentation of CONFIG_ options (and finding unused ones)

2011-04-14 Thread Graeme Russ
On 14/04/11 16:17, Albert ARIBAUD wrote: > Hi Graeme, > > Le 11/04/2011 15:11, Graeme Russ a écrit : > >> So my RFC is twofold: >> 1) Should we start to systematically remove unused options > > I would tend to answer 'yes'. Unused options should not clobber code or > documentation. > >> 2)

Re: [U-Boot] [RFC] Centralise documentation of CONFIG_ options (and finding unused ones)

2011-04-13 Thread Albert ARIBAUD
Hi Graeme, Le 11/04/2011 15:11, Graeme Russ a écrit : > So my RFC is twofold: > 1) Should we start to systematically remove unused options I would tend to answer 'yes'. Unused options should not clobber code or documentation. > 2) Should we centralise all options in a single README (or two

[U-Boot] [RFC] Centralise documentation of CONFIG_ options (and finding unused ones)

2011-04-11 Thread Graeme Russ
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.co