summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2010-07-13 12:47:31 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2010-07-13 12:47:31 +0000
commit07bff8843eee2c79cfcf30977a767f3319cbb4ad (patch)
tree3af48b8d6b6ea1dca42476ee2bc1befb13cd115a /sys/modules
parentb076092fdd67d1ebb8c03e6078349eeadcfc4c0b (diff)
downloadFreeBSD-src-07bff8843eee2c79cfcf30977a767f3319cbb4ad.zip
FreeBSD-src-07bff8843eee2c79cfcf30977a767f3319cbb4ad.tar.gz
Make kernel modules build correctly on 64-bit PowerPC.
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile4
-rw-r--r--sys/modules/cas/Makefile2
-rw-r--r--sys/modules/hwpmc/Makefile2
-rw-r--r--sys/modules/sound/driver/Makefile2
4 files changed, 5 insertions, 5 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 779924e..180bb10 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -318,7 +318,7 @@ SUBDIR= ${_3dfx} \
${_zfs} \
zlib \
-.if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "arm" && \
+.if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_ARCH} != "arm" && \
${MACHINE_ARCH} != "mips"
_syscons= syscons
_vpo= vpo
@@ -615,7 +615,7 @@ _wi= wi
_xe= xe
.endif
-.if ${MACHINE_ARCH} == "powerpc"
+.if ${MACHINE_CPUARCH} == "powerpc"
_an= an
_bm= bm
_cpufreq= cpufreq
diff --git a/sys/modules/cas/Makefile b/sys/modules/cas/Makefile
index 8e71fcf..0877c6c 100644
--- a/sys/modules/cas/Makefile
+++ b/sys/modules/cas/Makefile
@@ -5,7 +5,7 @@
KMOD= if_cas
SRCS= bus_if.h device_if.h if_cas.c miibus_if.h pci_if.h ${ofw_bus_if}
-.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64"
+.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64"
ofw_bus_if= ofw_bus_if.h
.endif
diff --git a/sys/modules/hwpmc/Makefile b/sys/modules/hwpmc/Makefile
index 1febf54..b295a67 100644
--- a/sys/modules/hwpmc/Makefile
+++ b/sys/modules/hwpmc/Makefile
@@ -28,7 +28,7 @@ SRCS+= device_if.h bus_if.h
SRCS+= hwpmc_ia64.c
.endif
-.if ${MACHINE_ARCH} == "powerpc"
+.if ${MACHINE_CPUARCH} == "powerpc"
SRCS+= hwpmc_powerpc.c
.endif
diff --git a/sys/modules/sound/driver/Makefile b/sys/modules/sound/driver/Makefile
index f070119..c07a1c5 100644
--- a/sys/modules/sound/driver/Makefile
+++ b/sys/modules/sound/driver/Makefile
@@ -15,7 +15,7 @@ SUBDIR+= audiocs
.endif
.endif
-.if ${MACHINE_ARCH} == "powerpc"
+.if ${MACHINE_CPUARCH} == "powerpc"
SUBDIR+= ai2s davbus
.endif
OpenPOWER on IntegriCloud