2004-08-01 11:40:54 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../dev/mem
|
2006-10-16 22:09:48 +00:00
|
|
|
.PATH: ${.CURDIR}/../../${MACHINE}/${MACHINE}
|
2010-08-23 06:13:29 +00:00
|
|
|
.PATH: ${.CURDIR}/../../${MACHINE_CPUARCH}/${MACHINE_CPUARCH}
|
2004-08-01 11:40:54 +00:00
|
|
|
|
|
|
|
KMOD= mem
|
|
|
|
SRCS= memdev.c mem.c
|
2010-10-03 20:04:11 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "powerpc"
|
2004-08-04 18:30:31 +00:00
|
|
|
SRCS+= memutil.c
|
|
|
|
.endif
|
2010-08-23 06:13:29 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "i386"
|
2004-09-28 07:26:00 +00:00
|
|
|
SRCS+= i686_mem.c k6_mem.c
|
|
|
|
.endif
|
2010-08-23 06:13:29 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
2004-09-28 07:26:00 +00:00
|
|
|
SRCS+= amd64_mem.c
|
|
|
|
.endif
|
2004-12-29 08:44:30 +00:00
|
|
|
SRCS+= bus_if.h device_if.h
|
2004-08-01 11:40:54 +00:00
|
|
|
|
2008-07-22 09:56:45 +00:00
|
|
|
.if ${MACHINE} == "sun4v"
|
|
|
|
SRCS+= opt_global.h
|
2008-07-24 14:07:52 +00:00
|
|
|
|
|
|
|
.if defined(KERNBUILDDIR)
|
|
|
|
MKDEP= -include ${KERNBUILDDIR}/opt_global.h
|
|
|
|
.else
|
2008-07-22 09:56:45 +00:00
|
|
|
CFLAGS+= -include opt_global.h
|
|
|
|
MKDEP= -include opt_global.h
|
|
|
|
|
|
|
|
opt_global.h:
|
|
|
|
echo "#define SUN4V 1" > ${.TARGET}
|
|
|
|
.endif
|
2008-07-24 14:07:52 +00:00
|
|
|
.endif
|
2008-07-22 09:56:45 +00:00
|
|
|
|
2004-08-01 11:40:54 +00:00
|
|
|
.include <bsd.kmod.mk>
|