lkml.org 
[lkml]   [1999]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPatch to kernel Menuconfig script
I'd noticed for a long time on the parport pages that it'd been mentioned
that if SCSI support was enabled while parport support (in 2.1.x and now
2.2.0prex kernels) was enabled as a module, PPA (and now also IMM) support
could be compiled for direct linking, producing an unlinkable final
product. I looked at the Menuconfig script and was able to solve the
problem for it. The xconfig scripts' parser is something that I'm much
less sure about, but this looks good for menuconfig, at least. I'm
including the patch below.

Derrik Pates
dpates@dsdk12.net


----- Patch below -----

--- linux/scripts/Menuconfig.old Tue Jan 5 22:11:23 1999
+++ linux/scripts/Menuconfig Tue Jan 5 22:20:26 1999
@@ -177,19 +177,30 @@
# else in the kernel.
#
function dep_tristate () {
+ NAME=$1
+ TAG=$2
+ MODONLY=N
if eval [ "_$3" = "_n" ]
then
return
fi
+ while [ "$3" != "" ]
+ do
+ if [ "_$3" = "_m" ]
+ then
+ MODONLY=Y
+ fi
+ shift
+ done
if [ "$CONFIG_MODULES" != "y" ]
then
- bool "$1" "$2"
+ bool "$NAME" "$TAG"
else
- if eval [ "_$3" != "_m" ]
+ if eval [ "$MODONLY" = "N" ]
then
- tristate "$1" "$2" $3
+ tristate "$NAME" "$TAG" y
else
- mod_bool "$1" "$2"
+ mod_bool "$NAME" "$TAG"
fi
fi
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.025 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site