Skip to contentSkip to conversation

2.4.13-ac2: Appletalk Config Screwed

PATCH In review Robert Love 2 participants 3 messages Oct 27, 2001 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.4.13-ac2: Appletalk Config Screwed

The Appletalk configure file is butchered, resulting in various
problems: make oldconfig' always prompts on CONFIG_ATALK, make [*]config' returns "ERROR - Attempting to write value for unconfigured variable (CONFIG_ATALK).", etc etc.

The fix is trivial. Attached is against 2.4.13-ac2. Alan, please apply.

drivers/net/appletalk/Config.in +2 -5
diff -u linux-2.4.13-ac2/drivers/net/appletalk/Config.in linux/drivers/net/appletalk/Config.in 
@@ -1,9 +1,7 @@
 #
 # Appletalk driver configuration
 #
-
-if [ "$CONFIG_ATALK" != "n" ]; then
-   mainmenu_option next_comment
+mainmenu_option next_comment
    comment 'Appletalk devices'
    bool 'Appletalk interfaces support' CONFIG_ATALK
    if [ "$CONFIG_ATALK" != "n" ]; then
@@ -19,5 +17,4 @@
 	 bool '    Appletalk-IP to IP Decapsulation support' CONFIG_IPDDP_DECAP
       fi
    fi
-   endmenu
-fi
+endmenu

Robert Love

#1 lore raw
Quoted 4 lines

The Appletalk configure file is butchered, resulting in various
problems: make oldconfig' always prompts on CONFIG_ATALK, make [*]config' returns "ERROR - Attempting to write value for unconfigured variable (CONFIG_ATALK).", etc etc.

I can't duplicate the problem described

#2 lore raw
Quoted 1 line · Alan Cox

I can't duplicate the problem described

Perhaps you need to have no reference to CONFIG_ATALK in your config? At the very least, you should be able to go into Network Devices -> Appletalk and see that if CONFIG_ATALK=n then the suboptions for the devices are settable, and of course they should not be. I don't know why you don't see the errors on exit from make xconfig or the repeated questions from oldconfig...

I also found another problem: there are two statements for CONFIG_ATALK, the second one should be removed as the resulting options are in an if block anyhow. This results in double CONFIG_ATALK entries in your config now that the gross if's were reorganized. Updated patch attached.

drivers/net/appletalk/Config.in +2 -6
diff -u linux-2.4.13-ac2/drivers/net/appletalk/Config.in linux/drivers/net/appletalk/Config.in
@@ -1,11 +1,8 @@
 #
 # Appletalk driver configuration
 #
-
-if [ "$CONFIG_ATALK" != "n" ]; then
-   mainmenu_option next_comment
+mainmenu_option next_comment
    comment 'Appletalk devices'
-   bool 'Appletalk interfaces support' CONFIG_ATALK
    if [ "$CONFIG_ATALK" != "n" ]; then
       dep_tristate '  Apple/Farallon LocalTalk PC support' CONFIG_LTPC $CONFIG_ATALK
       dep_tristate '  COPS LocalTalk PC support' CONFIG_COPS $CONFIG_ATALK
@@ -19,5 +16,4 @@
 	 bool '    Appletalk-IP to IP Decapsulation support' CONFIG_IPDDP_DECAP
       fi
    fi
-   endmenu
-fi
+endmenu

Robert Love