summaryrefslogtreecommitdiffstats
path: root/sys/modules/esp
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2008-05-04 14:59:25 +0000
committermarius <marius@FreeBSD.org>2008-05-04 14:59:25 +0000
commit3c64a86d3bc5b9318b3464deb481784be07927f3 (patch)
treed204b38fdb89bb28aab25b0b3da7863afa593e7e /sys/modules/esp
parentbb68298f623ded730e0dc981b2f072c542325a78 (diff)
downloadFreeBSD-src-3c64a86d3bc5b9318b3464deb481784be07927f3.zip
FreeBSD-src-3c64a86d3bc5b9318b3464deb481784be07927f3.tar.gz
Don't build unused SBus front-ends for sun4v, don't build EBus front-ends
which are also likely to be irrelevant for sun4v (there's no SBus on sun4v and only some EBus devices). While at it fix some style bugs according to style.Makefile(5) where appropriate. MFC after: 3 days
Diffstat (limited to 'sys/modules/esp')
-rw-r--r--sys/modules/esp/Makefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/modules/esp/Makefile b/sys/modules/esp/Makefile
index 2685b09..2171d85 100644
--- a/sys/modules/esp/Makefile
+++ b/sys/modules/esp/Makefile
@@ -1,15 +1,13 @@
# $FreeBSD$
-.PATH: ${.CURDIR}/../../dev/esp ${.CURDIR}/../../sparc64/sbus
+.PATH: ${.CURDIR}/../../dev/esp
KMOD= esp
+SRCS= device_if.h ${esp_sbus} bus_if.h ncr53c9x.c ${ofw_bus_if} opt_cam.h
-SRCS= ncr53c9x.c
-SRCS+= opt_ddb.h opt_cam.h
-SRCS+= device_if.h bus_if.h
-
-.if ${MACHINE_ARCH} == "sparc64"
-SRCS+= esp_sbus.c ofw_bus_if.h
+.if ${MACHINE} == "sparc64"
+ofw_bus_if= ofw_bus_if.h
+esp_sbus= esp_sbus.c
.endif
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud