
On Thu, Aug 07, 2003 at 02:51:42PM +0200, Wolfgang Denk wrote:
I don't see what good it does. For all boards I tried it just generates an empty "configx.mk" file (well,tnot exactly empty, but two blank lines and a comment).
The ppc preprocessor behaves a bit differently from the other's I've used. Change the line
grep -E 'define[ \t]+CONFIG_[^ \t]*[ \t]+1$' |
to
grep -E 'define[ \t]+CONFIG_[^ \t]*[ \t]+1[ \t]*$' |
I wrote a Perl script to test this. It configures every target and then builds the configx.mk file. I'm attaching the script in case you want to use it.
I noticed that a couple of targets fail because of missing headers in the board specific directories.
I remember you wanted to avoid using $(CC) -E ?
I found no other reliable way to access the target-specific preprocessor. You made it clear that you want to use the cross-compiler's preprocessor, so this a method to do that.
As for submitting patches against more recent source, I'd be happy to do so. The sourceforge CVS server doesn't want to let me login as anonymous. I'll use a more recent snapshot if you have one.
Cheers.