From c417101ae55dd9941fb03ce6fce4955a6a2a2e8f Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 4 Feb 2001 13:17:38 +0000 Subject: Remove the need to list each and every cpu platform. Config will now take your word for the 'machine' switch. --- usr.sbin/config/config.y | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'usr.sbin/config/config.y') diff --git a/usr.sbin/config/config.y b/usr.sbin/config/config.y index 5fe6ff6..52f77c0 100644 --- a/usr.sbin/config/config.y +++ b/usr.sbin/config/config.y @@ -121,23 +121,7 @@ Spec: Config_spec: ARCH Save_id = { - if (!strcmp($2, "i386")) { - machine = MACHINE_I386; - machinename = "i386"; - } else if (!strcmp($2, "pc98")) { - machine = MACHINE_PC98; - machinename = "pc98"; - } else if (!strcmp($2, "alpha")) { - machine = MACHINE_ALPHA; - machinename = "alpha"; - } else if (!strcmp($2, "ia64")) { - machine = MACHINE_IA64; - machinename = "ia64"; - } else if (!strcmp($2, "powerpc")) { - machine = MACHINE_POWERPC; - machinename = "powerpc"; - } else - yyerror("Unknown machine type"); + machinename = $2; } | CPU Save_id = { -- cgit v1.1