diff options
-rw-r--r-- | usr.sbin/config/config.h | 1 | ||||
-rw-r--r-- | usr.sbin/config/config.y | 3 | ||||
-rw-r--r-- | usr.sbin/config/main.c | 1 | ||||
-rw-r--r-- | usr.sbin/config/mkoptions.c | 1 |
4 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/config/config.h b/usr.sbin/config/config.h index d63569b..71542b5 100644 --- a/usr.sbin/config/config.h +++ b/usr.sbin/config/config.h @@ -100,6 +100,7 @@ char *machinename; #define MACHINE_PC98 2 #define MACHINE_ALPHA 3 #define MACHINE_IA64 4 +#define MACHINE_POWERPC 5 /* * For each machine, a set of CPU's may be specified as supported. diff --git a/usr.sbin/config/config.y b/usr.sbin/config/config.y index 9fde700..2ae1058 100644 --- a/usr.sbin/config/config.y +++ b/usr.sbin/config/config.y @@ -133,6 +133,9 @@ Config_spec: } 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"); } | diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c index 638e04e..ed04c8d 100644 --- a/usr.sbin/config/main.c +++ b/usr.sbin/config/main.c @@ -145,6 +145,7 @@ main(int argc, char **argv) case MACHINE_PC98: case MACHINE_ALPHA: case MACHINE_IA64: + case MACHINE_POWERPC: break; default: diff --git a/usr.sbin/config/mkoptions.c b/usr.sbin/config/mkoptions.c index 4f9e2a1..0ddf29f 100644 --- a/usr.sbin/config/mkoptions.c +++ b/usr.sbin/config/mkoptions.c @@ -61,6 +61,7 @@ static struct users { { 8, 2, 512 }, /* MACHINE_PC98 */ { 8, 2, 512 }, /* MACHINE_ALPHA */ { 8, 2, 512 }, /* MACHINE_IA64 */ + { 8, 2, 512 }, /* MACHINE_POWERPC */ }; #define NUSERS (sizeof (users) / sizeof (users[0])) |