Module Name: src Committed By: uebayasi Date: Mon Dec 15 10:10:24 UTC 2014
Modified Files: src/usr.bin/config: mkmakefile.c Log Message: config(1): Fix build of old tree (bin/49389) Define the default, empty "build_kernel" target, so that old source trees, whose sys/conf/Makefile.kern.inc don't have "build_kernel" .USE target, can be built. (When "build_kernel" is defined, the target is overriden, as far as sys/conf/Makefile.kern.inc is included later than the "netbsd: ..." definition in sys/arch/*/conf/Makefile.*.) This should address PR bin/49389. To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/usr.bin/config/mkmakefile.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/config/mkmakefile.c diff -u src/usr.bin/config/mkmakefile.c:1.34 src/usr.bin/config/mkmakefile.c:1.35 --- src/usr.bin/config/mkmakefile.c:1.34 Fri Nov 21 20:46:56 2014 +++ src/usr.bin/config/mkmakefile.c Mon Dec 15 10:10:24 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: mkmakefile.c,v 1.34 2014/11/21 20:46:56 christos Exp $ */ +/* $NetBSD: mkmakefile.c,v 1.35 2014/12/15 10:10:24 uebayasi Exp $ */ /* * Copyright (c) 1992, 1993 @@ -45,7 +45,7 @@ #endif #include <sys/cdefs.h> -__RCSID("$NetBSD: mkmakefile.c,v 1.34 2014/11/21 20:46:56 christos Exp $"); +__RCSID("$NetBSD: mkmakefile.c,v 1.35 2014/12/15 10:10:24 uebayasi Exp $"); #include <sys/param.h> #include <ctype.h> @@ -581,6 +581,7 @@ emitload(FILE *fp) fputs("\n\n", fp); TAILQ_FOREACH(cf, &allcf, cf_next) { fprintf(fp, "KERNELS+=%s\n", cf->cf_name); + fprintf(fp, "build_kernel:\n"); fprintf(fp, "%s: ${SYSTEM_DEP} swap%s.o vers.o build_kernel\n", cf->cf_name, cf->cf_name); fprintf(fp, "swap%s.o: swap%s.c\n"