From c7301f9132006423f10f397594b7d1edb63edb3d Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Wed, 21 Jan 2004 08:23:46 +0000 Subject: [PATCH] The gdbinit.${MACHINE_ARCH} script may not exist. --- sys/conf/kern.post.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk index 8dc8317cc966..dcdafa49a090 100644 --- a/sys/conf/kern.post.mk +++ b/sys/conf/kern.post.mk @@ -61,9 +61,11 @@ gdbinit: sed "s:MODPATH:${.OBJDIR}/modules:" > .gdbinit cp ${S}/../tools/debugscripts/gdbinit.kernel \ ${S}/../tools/debugscripts/gdbinit.vinum ${.CURDIR} +.if exists(${S}/../tools/debugscripts/gdbinit.${MACHINE_ARCH}) cp ${S}/../tools/debugscripts/gdbinit.${MACHINE_ARCH} \ ${.CURDIR}/gdbinit.machine .endif +.endif ${FULLKERNEL}: ${SYSTEM_DEP} vers.o @rm -f ${.TARGET}