Module Name: src Committed By: christos Date: Thu Dec 23 14:50:59 UTC 2021
Modified Files: src/etc: Makefile Log Message: Put back the code to add DEBUG=-g in config and to add the debug kernels in the kernel sets. Having the .gdb kernels in the EXTRA_KERNELS does not work, since we only walk through the standard kernels in the Makefile. Also doing DEBUG=-g in config twice does not hurt. To generate a diff of this commit: cvs rdiff -u -r1.454 -r1.455 src/etc/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/etc/Makefile diff -u src/etc/Makefile:1.454 src/etc/Makefile:1.455 --- src/etc/Makefile:1.454 Mon Dec 20 15:20:35 2021 +++ src/etc/Makefile Thu Dec 23 09:50:59 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.454 2021/12/20 20:20:35 christos Exp $ +# $NetBSD: Makefile,v 1.455 2021/12/23 14:50:59 christos Exp $ # from: @(#)Makefile 8.7 (Berkeley) 5/25/95 # Environment variables without default values: @@ -590,6 +590,7 @@ build_kernels: .PHONY build_kernels: kern-${configfile} kern-${configfile}: .PHONY .MAKE cd ${KERNCONFDIR} && ${TOOL_CONFIG} ${CONFIGOPTS} -s ${KERNSRCDIR} \ + ${MKDEBUGKERNEL == "yes" :? -DDEBUG=-g :} \ -b ${KERNOBJDIR}/${configfile:C/.*\///} ${configfile} .if ${MKUPDATE} == "no" ${MAKE} -C ${KERNOBJDIR}/${configfile:C/.*\///} distclean @@ -622,6 +623,9 @@ kernset-${configfile}: .PHONY build_kern kernels="$${kernels} $${ks}"; \ [ -z "$${newest}" -o $${ks} \ -nt "$${newest}" ] && newest=$${ks}; \ + [ ${MKDEBUGKERNEL} = "no" -o \ + ! -f $${ks}.gdb ] continue; \ + kernels="$${kernels} $${ks}.gdb"; \ done; \ done; \ [ $${kern_tgz} -nt "$${newest}" ] || { \