2bc4fb1fcb
explicitly set WARNS for modules that fail with WARNS=5. Also, turn on -Wno-missing-noreturn for clang for some files. At the moment, among ~ 360 modules, - 2 (lua and zfs) need WARNS=0 - 1 (solaris) needs WARNS=1 - 136 need WARNS=3 (mostly due to sign-compare) - 4 need WARNS=4 - others can be compiled with WARNS=5 Discussed on tech-kern.
24 lines
443 B
Makefile
24 lines
443 B
Makefile
# $NetBSD: Makefile,v 1.9 2019/02/17 04:05:47 rin Exp $
|
|
|
|
.include "../Makefile.inc"
|
|
.include "../drmkms/Makefile.inc"
|
|
|
|
.PATH: ${S}/external/bsd/drm2/linux
|
|
.PATH: ${S}/external/bsd/drm2/pci
|
|
|
|
.PATH: ${S}/external/bsd/drm2/dist/drm
|
|
|
|
KMOD= drmkms_pci
|
|
|
|
SRCS+= drmfb_pci.c
|
|
SRCS+= linux_pci.c
|
|
|
|
#SRCS+= ati_pcigart.c # XXX Restore for ATI support.
|
|
SRCS+= drm_agpsupport.c
|
|
SRCS+= drm_pci.c
|
|
SRCS+= drm_pci_module.c
|
|
|
|
WARNS= 3
|
|
|
|
.include <bsd.kmodule.mk>
|