a problem report
[Sam Ravnborg]
sound/Config.in 2002-10-01 12:21:05.000000000 +0200 line 36
Quoted 13 lines
sound/Config.in 2002-10-01 12:21:05.000000000 +0200 renamed from sound/Config.in 2002-10-01 12:09:44.000000000 +0200 +1
-4@@ -31,10 +31,7 @@ if [ "$CONFIG_SND" != "n" -a "$CONFIG_ARM" = "y" ]; then source sound/arm/Config.in fi -if [ "$CONFIG_SND" != "n" -a "$CONFIG_SPARC32" = "y" ]; then - source sound/sparc/Config.in -fi -if [ "$CONFIG_SND" != "n" -a "$CONFIG_SPARC64" = "y" ]; then +if [ "$CONFIG_SND" != "n" -a "$CONFIG_SPARC32" = "y" ] || [ "$CONFIG_SND" != "n" -a "$CONFIG_SPARC64" = "y" ] ; then source sound/sparc/Config.in fi
That's not right. You can't use '||' in config language. (Try it with xconfig some time.) You have to either nest if statements or make use of precedence. Documentation/kbuild/config-language.txt doesn't actually specify the precedence, but in the Unix test(1) from which it is derived, AND binds tighter than OR. Thus:
if [ "$CONFIG_SND" != "n" ]; then
if [ "$CONFIG_SPARC32" = "y" -o "$CONFIG_SPARC64" = "y" ]; then
source sound/sparc/Config.in
fifi
-- or --
if [ "$CONFIG_SND" != "n" -a "$CONFIG_SPARC32" = "y" -o \
"$CONFIG_SND" != "n" -a "$CONFIG_SPARC64" = "y" ]; then
source sound/sparc/Config.in
fiThis 'if' statement syntax has *got* to go. I posted an incomplete replacement syntax some time ago, but abandoned it because it appeared Roman was almost ready to merge his new config stuff....
Peter
Quoted 1 line · Peter Samuelson
[Sam Ravnborg]
[Snip faulty Config.in patch]
Quoted 2 lines
That's not right. You can't use '||' in config language. (Try it with xconfig some time.)
I was aware of this, the only reason why I posted this was to let people proceed with menuconfig, and to give them a response.
Roman Zippel already posted a correct path, that he also has sent to Linus. Although I do not understand where the ALSA people are in this game.
Quoted 3 lines
This 'if' statement syntax has *got* to go. I posted an incomplete replacement syntax some time ago, but abandoned it because it appeared Roman was almost ready to merge his new config stuff....
The 2.5.39 version of Roman's lkc looked really good IMHO, but I think more people has to get into the discussion before it will be accepted. I for one is not the right person to comment on the config language, old or new.
Sam
Hi,
Quoted 2 lines · Sam Ravnborg
The 2.5.39 version of Roman's lkc looked really good IMHO, but I think more people has to get into the discussion before it will be accepted.
I'd be happy about a discussion, but if it's not happening soon, it's up to Linus to accept it.
bye, Roman