diff options
Diffstat (limited to 'usr.sbin/config')
-rw-r--r-- | usr.sbin/config/configvers.h | 2 | ||||
-rw-r--r-- | usr.sbin/config/mkmakefile.c | 18 |
2 files changed, 8 insertions, 12 deletions
diff --git a/usr.sbin/config/configvers.h b/usr.sbin/config/configvers.h index fcc7265..580ea83 100644 --- a/usr.sbin/config/configvers.h +++ b/usr.sbin/config/configvers.h @@ -8,4 +8,4 @@ * * $FreeBSD$ */ -#define CONFIGVERS 500010 +#define CONFIGVERS 500011 diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c index c24a121..6d38186 100644 --- a/usr.sbin/config/mkmakefile.c +++ b/usr.sbin/config/mkmakefile.c @@ -134,27 +134,23 @@ makefile(void) } if (ifp == 0) err(1, "%s", line); - ofp = fopen(path("Makefile.new"), "w"); - if (ofp == 0) - err(1, "%s", path("Makefile.new")); - fprintf(ofp, "KERN_IDENT=%s\n", raisestr(ident)); - fprintf(ofp, "IDENT="); - if (profiling) - fprintf(ofp, " -DGPROF"); + /* XXX this check seems to be misplaced. */ if (cputype == 0) { printf("cpu type must be specified\n"); exit(1); } - fprintf(ofp, "\n"); + + ofp = fopen(path("Makefile.new"), "w"); + if (ofp == 0) + err(1, "%s", path("Makefile.new")); + fprintf(ofp, "KERN_IDENT=%s\n", raisestr(ident)); for (op = mkopt; op; op = op->op_next) fprintf(ofp, "%s=%s\n", op->op_name, op->op_value); if (debugging) fprintf(ofp, "DEBUG=-g\n"); - if (profiling) { - fprintf(ofp, "PROF=-pg\n"); + if (profiling) fprintf(ofp, "PROFLEVEL=%d\n", profiling); - } if (*srcdir != '\0') fprintf(ofp,"S=%s\n", srcdir); while (fgets(line, BUFSIZ, ifp) != 0) { |