diff options
author | imp <imp@FreeBSD.org> | 2005-04-01 22:54:22 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2005-04-01 22:54:22 +0000 |
commit | 245a07a0538c56a5962892185f6047675ee37b78 (patch) | |
tree | 1ba61db91c45bcb818e850154911a2077257edd4 /usr.sbin/config/config.y | |
parent | 45160e9067ecf4dcfbcb6056315978829c8e39f6 (diff) | |
download | FreeBSD-src-245a07a0538c56a5962892185f6047675ee37b78.zip FreeBSD-src-245a07a0538c56a5962892185f6047675ee37b78.tar.gz |
Allow one to specify a second parameter to the machine line. This
allows us to specify the machine_arch as well as machine. If
specified then a second link will be made, similar to machine, from
$MACHINE_ARCH to $S/$MACHINE_ARCH/include.
This is for ports where MACHINE != MACHINE_ARCH (pc98 today, others in
the future?).
Reviewed by: arch@, nyan@
Diffstat (limited to 'usr.sbin/config/config.y')
-rw-r--r-- | usr.sbin/config/config.y | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/usr.sbin/config/config.y b/usr.sbin/config/config.y index 77a17fc..018ec61 100644 --- a/usr.sbin/config/config.y +++ b/usr.sbin/config/config.y @@ -138,6 +138,15 @@ Config_spec: errx(1, "%s:%d: only one machine directive is allowed", yyfile, yyline); machinename = $2; + machinearch = $2; + } | + ARCH Save_id Save_id + = { + if (machinename != NULL) + errx(1, "%s:%d: only one machine directive is allowed", + yyfile, yyline); + machinename = $2; + machinearch = $3; } | CPU Save_id = { |