Subject: toolchain/21427: bsd.kmod.mk doesn't remove the x86 symlink
To: None <gnats-bugs@gnats.netbsd.org>
From: None <cube@cubidou.net>
List: netbsd-bugs
Date: 05/02/2003 17:53:53
>Number:         21427
>Category:       toolchain
>Synopsis:       bsd.kmod.mk doesn't remove the x86 symlink
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 02 15:55:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Quentin Garnier
>Release:        NetBSD 1.6R
>Organization:
Quentin Garnier - cube@cubidou.net
"Feels like I'm fiddling while Rome is burning down.
Should I lay my fiddle down and take a rifle from the ground ?"
Leigh Nash/Sixpence None The Richer, Paralyzed, Divine Discontents, 2002.
>Environment:
System: NetBSD padme 1.6R NetBSD 1.6R (NVIDIA_ACPI-$Revision: 1.3 $) #35: Wed Apr 30 17:24:32 CEST 2003 cube@padme:/home/cube/src/nv-netbsd/netvidia/src/sys/arch/i386/compile/NVIDIA_ACPI i386
Architecture: i386
Machine: i386
>Description:
	When compiling a LKM using bsd.kmod.mk on my i386, a symlink to x86
	include directory is created, but is not removed at 'make cleandir'
	time, which is far from critical, just a bit annoying.
>How-To-Repeat:
	'make cleandir' in a LKM source directory on an x86 platform and see
	that the 'x86' symlink was not removed.
>Fix:
Index: bsd.kmod.mk
===================================================================
RCS file: /cvsroot/src/share/mk/bsd.kmod.mk,v
retrieving revision 1.58
diff -u -r1.58 bsd.kmod.mk
--- bsd.kmod.mk	2003/02/27 11:09:59	1.58
+++ bsd.kmod.mk	2003/05/02 15:48:58
@@ -26,6 +26,8 @@
 CLEANFILES+=	sparc
 .elif ${MACHINE_ARCH} == "powerpc"
 CLEANFILES+=	${KMOD}_tramp.o ${KMOD}_tramp.S tmp.S ${KMOD}_tmp.o
+.elif ${MACHINE} == "i386" || ${MACHINE} == "x86_64"
+CLEANFILES+=	x86
 .endif
 
 OBJS+=		${SRCS:N*.h:N*.sh:R:S/$/.o/g}
>Release-Note:
>Audit-Trail:
>Unformatted: