summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config/config.y
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-02-04 13:17:38 +0000
committerpeter <peter@FreeBSD.org>2001-02-04 13:17:38 +0000
commitc417101ae55dd9941fb03ce6fce4955a6a2a2e8f (patch)
treee28a112e1254fefe9d7243b6c77f8470b3757ba5 /usr.sbin/config/config.y
parente87f7a15ad62e1dd25061ddb301662e809692c2c (diff)
downloadFreeBSD-src-c417101ae55dd9941fb03ce6fce4955a6a2a2e8f.zip
FreeBSD-src-c417101ae55dd9941fb03ce6fce4955a6a2a2e8f.tar.gz
Remove the need to list each and every cpu platform. Config will now
take your word for the 'machine' switch.
Diffstat (limited to 'usr.sbin/config/config.y')
-rw-r--r--usr.sbin/config/config.y18
1 files changed, 1 insertions, 17 deletions
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
= {
OpenPOWER on IntegriCloud