diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-05-24 20:02:09 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-05-24 20:02:09 +0000 |
commit | d4399647f369e9e03ceefe34193211cd4fedcd8f (patch) | |
tree | 7ee43adb14a8e8a048e806deb351c40a41f82cf9 /usr.sbin/config/mkmakefile.c | |
parent | 6409b7640d63ebb55d873d5058be79c89d2d43e1 (diff) |
automatically generate the _arch= and _mach= lines at the top of the kernel
Makefile, since we already know them. (Later on, we can remove the chunks
from the Makefile.* files...)
ok kettenis
Diffstat (limited to 'usr.sbin/config/mkmakefile.c')
-rw-r--r-- | usr.sbin/config/mkmakefile.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c index 7c51d4c78c8..d59814727b6 100644 --- a/usr.sbin/config/mkmakefile.c +++ b/usr.sbin/config/mkmakefile.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mkmakefile.c,v 1.32 2009/10/19 19:46:57 guenther Exp $ */ +/* $OpenBSD: mkmakefile.c,v 1.33 2010/05/24 20:02:08 deraadt Exp $ */ /* $NetBSD: mkmakefile.c,v 1.34 1997/02/02 21:12:36 thorpej Exp $ */ /* @@ -262,6 +262,10 @@ emitdefs(FILE *fp) return (1); if (fprintf(fp, "S=\t%s\n", srcdir) < 0) return (1); + if (fprintf(fp, "_mach=%s\n", machine) < 0) + return (1); + if (fprintf(fp, "_arch=%s\n", machinearch ? machinearch : machine) < 0) + return (1); for (nv = mkoptions; nv != NULL; nv = nv->nv_next) if (fprintf(fp, "%s=%s\n", nv->nv_name, nv->nv_str) < 0) return (1); |