summaryrefslogtreecommitdiff
path: root/sys/modules
diff options
context:
space:
mode:
authortsutsui <tsutsui@NetBSD.org>2008-11-29 18:41:06 +0000
committertsutsui <tsutsui@NetBSD.org>2008-11-29 18:41:06 +0000
commit7828361bcf2a179feab66f58be556ce7828db831 (patch)
treeb6ff132682271eaec28efae906795b0b0f57ddd3 /sys/modules
parent83776b8eea825adb3f0c4d3ffe27e2747a9beb96 (diff)
- don't build compat_linux on alpha until sys/modules/compat_linux/Makefile
handles required MD files under sys/compat/linux/arch/alpha - build exec_elf64 for all 64 bit arch - use MACHINE_ARCH!="alpha" instead of MACHINE!="alpha" for exec_elf32 check XXX we have many histrical inconsistent use of amd64 vs x86_64.
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 1b046276219..94cad3ec5dc 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2008/11/28 21:17:08 he Exp $
+# $NetBSD: Makefile,v 1.21 2008/11/29 18:41:06 tsutsui Exp $
# For all platforms
@@ -48,12 +48,13 @@ SUBDIR+= unionfs
.endif
# Machine dependent section
-.if ${MACHINE} != "alpha"
+.if ${MACHINE_ARCH} != "alpha"
SUBDIR+= exec_elf32
.endif
-.if ${MACHINE} == "alpha"
-SUBDIR+= compat_linux
+.if ${MACHINE_ARCH} == "alpha" || \
+ ${MACHINE_ARCH} == "sparc64" || \
+ ${MACHINE_ARCH} == "x86_64"
SUBDIR+= exec_elf64
.endif
@@ -63,7 +64,6 @@ SUBDIR+= compat_linux
SUBDIR+= compat_linux32
SUBDIR+= compat_netbsd32
SUBDIR+= drm
-SUBDIR+= exec_elf64
SUBDIR+= i915drm
.endif