Generate MACHINE= and MACHINE_ARCH= lines based on the machine

directive.  Once this is MFC'd, we can move these out of the template
files where they are (incosnsitently) defined.

MFC after:	1 week
This commit is contained in:
Warner Losh 2011-02-11 06:35:53 +00:00
parent 859e6f407d
commit be1d53ac56
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218544
2 changed files with 3 additions and 1 deletions

View file

@ -49,5 +49,5 @@
*
* $FreeBSD$
*/
#define CONFIGVERS 600011
#define CONFIGVERS 600012
#define MAJOR_VERS(x) ((x) / 100000)

View file

@ -140,6 +140,8 @@ makefile(void)
if (ofp == 0)
err(1, "%s", path("Makefile.new"));
fprintf(ofp, "KERN_IDENT=%s\n", ident);
fprintf(ofp, "MACHINE=%s\n", machinename);
fprintf(ofp, "MACHINE_ARCH=%s\n", machinearch);
SLIST_FOREACH_SAFE(op, &mkopt, op_next, t) {
fprintf(ofp, "%s=%s", op->op_name, op->op_value);
while ((op = SLIST_NEXT(op, op_append)) != NULL)