Understand 'config kernelname' and pretend it was a
'makeoptions KERNEL=kernelname'. Warn about any trailing stuff as it's not handled here. This is a simple bandaid, hopefully to head off some complaints from certain people.
This commit is contained in:
parent
b42cb34552
commit
ef354ff70d
@ -11,6 +11,7 @@
|
||||
%token BUS
|
||||
%token CAM
|
||||
%token COMMA
|
||||
%token CONFIG
|
||||
%token CONFLICTS
|
||||
%token CONTROLLER
|
||||
%token CPU
|
||||
@ -175,9 +176,36 @@ Config_spec:
|
||||
|
|
||||
IDENT ID
|
||||
= { ident = $2; } |
|
||||
System_spec
|
||||
|
|
||||
MAXUSERS NUMBER
|
||||
= { maxusers = $2; };
|
||||
|
||||
System_spec:
|
||||
CONFIG System_id System_parameter_list
|
||||
= { warnx("line %d: root/dump/swap specifications obsolete", yyline);}
|
||||
|
|
||||
CONFIG System_id
|
||||
;
|
||||
|
||||
System_id:
|
||||
Save_id
|
||||
= {
|
||||
struct opt *op = (struct opt *)malloc(sizeof (struct opt));
|
||||
memset(op, 0, sizeof(*op));
|
||||
op->op_name = ns("KERNEL");
|
||||
op->op_ownfile = 0;
|
||||
op->op_next = mkopt;
|
||||
op->op_value = $1;
|
||||
op->op_line = yyline + 1;
|
||||
mkopt = op;
|
||||
};
|
||||
|
||||
System_parameter_list:
|
||||
System_parameter_list ID
|
||||
| ID
|
||||
;
|
||||
|
||||
device_name:
|
||||
Save_id
|
||||
= { $$ = $1; }
|
||||
|
@ -57,6 +57,7 @@ struct kt {
|
||||
{ "bus", BUS },
|
||||
{ "cam", CAM }, /* XXX going away */
|
||||
{ "conflicts", CONFLICTS },
|
||||
{ "config", CONFIG },
|
||||
{ "controller", CONTROLLER },
|
||||
{ "cpu", CPU },
|
||||
{ "device", DEVICE },
|
||||
|
Loading…
x
Reference in New Issue
Block a user