head	1.5;
access;
symbols
	RELENG_9_1_0_RELEASE:1.1.2.2.2.2
	RELENG_9_1:1.1.2.2.0.2
	RELENG_9_1_BP:1.1.2.2
	RELENG_9_0_0_RELEASE:1.1.2.1.2.1
	RELENG_9_0:1.1.2.1.0.2
	RELENG_9_0_BP:1.1.2.1
	RELENG_9:1.1.0.2
	RELENG_9_BP:1.1;
locks; strict;
comment	@# @;


1.5
date	2012.11.17.01.52.54;	author svnexp;	state Exp;
branches;
next	1.4;

1.4
date	2012.10.28.02.15.35;	author nwhitehorn;	state Exp;
branches;
next	1.3;

1.3
date	2012.10.27.23.14.37;	author nwhitehorn;	state Exp;
branches;
next	1.2;

1.2
date	2011.12.30.01.54.45;	author dim;	state Exp;
branches;
next	1.1;

1.1
date	2010.01.31.14.30.39;	author rnoland;	state Exp;
branches
	1.1.2.1;
next	;

1.1.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.1.2.1.2.1;
next	1.1.2.2;

1.1.2.2
date	2012.01.06.21.14.54;	author dim;	state Exp;
branches
	1.1.2.2.2.1;
next	1.1.2.3;

1.1.2.3
date	2012.11.17.11.37.16;	author svnexp;	state Exp;
branches;
next	;

1.1.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.1.2.1.2.2;

1.1.2.1.2.2
date	2012.11.17.08.37.13;	author svnexp;	state Exp;
branches;
next	;

1.1.2.2.2.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.1.2.2.2.2;

1.1.2.2.2.2
date	2012.11.17.08.48.04;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Switching exporter and resync
@
text
@# $FreeBSD: head/sys/modules/drm/via/Makefile 242203 2012-10-28 02:15:35Z nwhitehorn $

.PATH:	${.CURDIR}/../../../dev/drm
KMOD	= via
SRCS	= via_dma.c via_dmablit.c via_drv.c via_irq.c via_map.c via_mm.c \
	via_verifier.c via_video.c
SRCS	+= device_if.h bus_if.h pci_if.h opt_drm.h

.if defined(DRM_DEBUG)
DRM_DEBUG_OPT= "\#define DRM_DEBUG 1"
.endif

.if !defined(DRM_NOLINUX) && \
     (${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64")
DRM_LINUX_OPT= "\#define DRM_LINUX 1"
.endif

opt_drm.h:
	touch opt_drm.h
	echo $(DRM_DEBUG_OPT) >> opt_drm.h
	echo $(DRM_LINUX_OPT) >> opt_drm.h

.include <bsd.kmod.mk>

CWARNFLAGS.via_dma.c=		-Wno-unused-value
CWARNFLAGS.via_dmablit.c=	-Wno-unused-value
CWARNFLAGS+=			${CWARNFLAGS.${.IMPSRC:T}}
@


1.4
log
@SVN rev 242203 on 2012-10-28 02:15:35Z by nwhitehorn

Extend dim's hack from r228978: not only clang but gcc on non-x86 platforms
warns about unused variables in this code, so always add -Wno-unused to
the warning flags. Why gcc on x86 *doesn't* warn about this, I will never
know. The code itself should probably be fixed at some point.
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.3
log
@SVN rev 242197 on 2012-10-27 23:14:37Z by nwhitehorn

Don't try to build Linux compatibility stuff on platforms without
COMPAT_LINUX.
@
text
@d25 2
a26 2
CWARNFLAGS.via_dma.c=		${NO_WUNUSED_VALUE}
CWARNFLAGS.via_dmablit.c=	${NO_WUNUSED_VALUE}
@


1.2
log
@SVN rev 228978 on 2011-12-30 01:54:45Z by dim

For several files in sys/dev/drm, disable -Wunused-value when building
with clang.  There are several macros in these files that return values,
and in some cases nothing is done with them, but it is completely
harmless.  For some other files, also disable -Wconstant-conversion,
since that triggers a false positive with the DMA_BIT_MASK() macro.

MFC after:	1 week
@
text
@d13 2
a14 1
.if !defined(DRM_NOLINUX)
@


1.1
log
@SVN rev 203288 on 2010-01-31 14:30:39Z by rnoland

Welcome drm support for VIA unichrome chips.

MFC after:	2 weeks
@
text
@d23 4
@


1.1.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.1.2.2
log
@SVN rev 229731 on 2012-01-06 21:14:54Z by dim

MFC r228978:

For several files in sys/dev/drm, disable -Wunused-value when building
with clang.  There are several macros in these files that return values,
and in some cases nothing is done with them, but it is completely
harmless.  For some other files, also disable -Wconstant-conversion,
since that triggers a false positive with the DMA_BIT_MASK() macro.
@
text
@a22 4

CWARNFLAGS.via_dma.c=		${NO_WUNUSED_VALUE}
CWARNFLAGS.via_dmablit.c=	${NO_WUNUSED_VALUE}
CWARNFLAGS+=			${CWARNFLAGS.${.IMPSRC:T}}
@


1.1.2.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/sys/modules/drm/via/Makefile 229731 2012-01-06 21:14:54Z dim $
@


1.1.2.2.2.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.1.2.2.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/sys/modules/drm/via/Makefile 229731 2012-01-06 21:14:54Z dim $
@


1.1.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.1.2.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/sys/modules/drm/via/Makefile 203288 2010-01-31 14:30:39Z rnoland $
@


