aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/config/config.y
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>1998-06-09 14:02:08 +0000
committerDoug Rabson <dfr@FreeBSD.org>1998-06-09 14:02:08 +0000
commit4d40ec2fb934e40446ddb430f5ae903a3379a8d3 (patch)
tree652ffda17f58f1d0c04b1e71bbc77d8922cb74cf /usr.sbin/config/config.y
parentf6fa1b35fde00abe62db90a06c279a70893b4ab1 (diff)
downloadsrc-4d40ec2fb934e40446ddb430f5ae903a3379a8d3.tar.gz
src-4d40ec2fb934e40446ddb430f5ae903a3379a8d3.zip
Add (mostly stub) alpha support. Incidentally, it doesn't build on stable
unless I manually construct y.tab.h. Is this normal?
Notes
Notes: svn path=/head/; revision=36813
Diffstat (limited to 'usr.sbin/config/config.y')
-rw-r--r--usr.sbin/config/config.y6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/config/config.y b/usr.sbin/config/config.y
index 9ad7b0dffce3..845ee657ceb2 100644
--- a/usr.sbin/config/config.y
+++ b/usr.sbin/config/config.y
@@ -117,6 +117,9 @@
#include <sys/disklabel.h>
#include <sys/diskslice.h>
+#ifdef linux
+#include <sys/sysmacros.h>
+#endif
#include <ctype.h>
#include <err.h>
@@ -189,6 +192,9 @@ Config_spec:
} else if (!strcmp($2, "news3400")) {
machine = MACHINE_NEWS3400;
machinename = "news3400";
+ } else if (!strcmp($2, "alpha")) {
+ machine = MACHINE_ALPHA;
+ machinename = "alpha";
} else
yyerror("Unknown machine type");
} |