From 245a07a0538c56a5962892185f6047675ee37b78 Mon Sep 17 00:00:00 2001 From: imp Date: Fri, 1 Apr 2005 22:54:22 +0000 Subject: 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@ --- usr.sbin/config/config.y | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'usr.sbin/config/config.y') 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 = { -- cgit v1.1