Skip to contentSkip to conversation

make config w/ Pentium-II

PATCH New Matthew Wilcox 1 participant 1 message Dec 12, 2000

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make config w/ Pentium-II

I built 2.4.0-test10 for my laptop and got caught out by make config'. When I typed Pentium-II' for my CPU type, it selected Pentium-III and my kernel wouldn't boot. To prevent errors of this type, please apply this patch. As a bonus, `Celeron' will now work as an answer too.

Please apply.

scripts/Configure +8 -5
diff -urNX dontdiff linux/scripts/Configure linux-test10/scripts/Configure
@@ -479,11 +479,14 @@
 		while [ -n "$1" ]; do
 			name=$(echo $1 | tr a-z A-Z)
 			case "$name" in
-				"$ans"* )
-					if [ "$name" = "$ans" ]; then
-						val="$2"
-						break	# stop on exact match
-					fi
+				"$ans"* | */"$ans"* )
+					case "$name" in
+						"$ans" | */"$ans"/* | \
+						"$ans"/* | */"$ans" )
+							val="$2"
+							break # exact match
+						;;
+					esac
 					if [ -n "$val" ]; then
 						echo;echo \
 		"  Sorry, \"$ans\" is ambiguous; please enter a longer string."
Signature · 5 lines
Revolutions do not require corporate support.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/