Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

#	$NetBSD: Makefile,v 1.14 2018/12/31 12:13:50 mrg Exp $

DRIVER=		xf86-video-nv
DRIVER_NAME=	nv_drv

SRCS=		nv_cursor.c nv_dac.c nv_dga.c nv_driver.c nv_exa.c nv_hw.c
SRCS+=		nv_setup.c nv_shadow.c nv_video.c nv_xaa.c riva_cursor.c
SRCS+=		riva_dac.c riva_dga.c riva_driver.c riva_hw.c
SRCS+=		riva_setup.c riva_shadow.c g80_cursor.c
SRCS+=		g80_dac.c g80_display.c g80_dma.c g80_driver.c g80_exa.c
SRCS+=		g80_output.c g80_sor.c
MAN=		nv.4

# XAA files have generic functions as well
#.if ${XORG_SERVER_SUBDIR} == "xorg-server.old"
SRCS+=		riva_xaa.c g80_xaa.c
#.endif

.if ${MACHINE} == "macppc"
CPPFLAGS+= -DAVOID_VGAHW
.endif

.if ${MACHINE} == "i386" || ${MACHINE} == "amd64"
# XXX
# the test uses pci_device_has_kernel_driver() which, for now at least, only 
# makes sense on x86 ( it just checks if the kernel driver handling the
# device is vga ) - and even there, genfb and the like don't do anything
# that would prevent this driver from working. Might need to revisit this once
# the new DRM2 code has nvidia support
#CPPFLAGS+= -DNV_TEST_FOR_KERNEL_DRIVER
.endif

# XXX
COPTS+=		${${ACTIVE_CC} == "gcc":? -Wno-error=cpp :}
COPTS+=		${${ACTIVE_CC} == "clang":? -Wno-error=\#warnings :}

COPTS.g80_dac.c+=		-Wno-error	# XXX deprecated

.include "../Makefile.xf86-driver"