diff --git a/usr.sbin/config/config.h b/usr.sbin/config/config.h index d63569b08bb3..71542b55b071 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 9fde7001c3df..2ae105828521 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 638e04e47a52..ed04c8d7f57b 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 4f9e2a15a602..0ddf29f1bc11 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]))