diff options
author | grog <grog@FreeBSD.org> | 1999-04-11 03:40:11 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 1999-04-11 03:40:11 +0000 |
commit | a6f7cebb1b69be63e66d120173f9a8b4960e6986 (patch) | |
tree | d1b89928b1639b0e54736f64cac04e2ec73e3601 /usr.sbin/config/mkmakefile.c | |
parent | 57c8b4d2e5800801bec90763b2aa9ed55656d8c2 (diff) | |
download | FreeBSD-src-a6f7cebb1b69be63e66d120173f9a8b4960e6986.zip FreeBSD-src-a6f7cebb1b69be63e66d120173f9a8b4960e6986.tar.gz |
Back out default debug kernel. The flags revert to historical behaviour.
Requested-by: ache
bde
dg
Modify targets for debug kernels: when -g was specified, make will
now build a debug kernel called kernel.debug, and create a stripped
version called kernel at the same time. The two targets install and
install.debug are otherwise unchanged.
Requested-by: dillon
Update man page accordingly.
Diffstat (limited to 'usr.sbin/config/mkmakefile.c')
-rw-r--r-- | usr.sbin/config/mkmakefile.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c index 5c38d23..a2ed836 100644 --- a/usr.sbin/config/mkmakefile.c +++ b/usr.sbin/config/mkmakefile.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)mkmakefile.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id: mkmakefile.c,v 1.34 1998/09/15 21:07:54 gibbs Exp $"; + "$Id: mkmakefile.c,v 1.35 1999/04/07 09:27:56 grog Exp $"; #endif /* not lint */ /* @@ -790,10 +790,7 @@ do_load(f) fputs("all:", f); for (fl = conf_list; fl; fl = fl->f_next) if (fl->f_type == SYSTEMSPEC) - if (debugging) - fprintf(f, " %s.debug", fl->f_needs); - else - fprintf(f, " %s", fl->f_needs); + fprintf(f, " %s", fl->f_needs); putc('\n', f); } @@ -831,7 +828,14 @@ do_systemspec(f, fl, first) fprintf(f, "KERNEL=\t\t%s\n" "FULLKERNEL=\t%s.debug\n" - "INSTALL=\tinstall.debug\n\n", + "INSTALL=\tinstall.debug\n\n" + "%s: %s.debug\n", + fl->f_needs, + fl->f_needs, + fl->f_needs, + fl->f_needs ); + fprintf (f, + "\tobjcopy --strip-debug %s.debug %s\n\n", fl->f_needs, fl->f_needs ); fprintf(f, "%s.debug: ${SYSTEM_DEP} swap%s.o", fl->f_needs, fl->f_fn); |