Makefile.inc revision 1.5
11.5Sriastrad# $NetBSD: Makefile.inc,v 1.5 2018/08/27 13:53:42 riastradh Exp $ 21.2Sriastrad 31.2Sriastrad# Common makefile cruft for drm2 code. 41.2Sriastrad 51.2Sriastrad# XXX All the -D crap needs to go in a header file instead so changing 61.2Sriastrad# it correctly triggers rebuilds. 71.2Sriastrad 81.5Sriastrad# Overrides first. 91.2SriastradCPPFLAGS+= -I${S}/external/bsd/drm2/include 101.5Sriastrad 111.5SriastradCPPFLAGS+= -I${S}/external/bsd/common/include 121.5Sriastrad 131.5Sriastrad# Then upstream. 141.4SriastradCPPFLAGS+= -I${S}/external/bsd/drm2/dist/include 151.4SriastradCPPFLAGS+= -I${S}/external/bsd/drm2/dist/include/drm 161.2SriastradCPPFLAGS+= -I${S}/external/bsd/drm2/dist/uapi 171.5Sriastrad 181.5Sriastrad# Must come last because some header file names are repeated in 191.5Sriastrad# dist/drm (I'm looking ta you, drm_legacy.h), while others sometimes 201.5Sriastrad# explicitly write <uapi/...>. (Maybe that should have been imported 211.5Sriastrad# under dist/include/uapi rather than dist/uapi.) 221.5SriastradCPPFLAGS+= -I${S}/external/bsd/drm2/dist 231.5Sriastrad 241.5Sriastrad# XXX Should probably be in a header file. opt_drmkms.h? 251.2SriastradCPPFLAGS+= -D__KERNEL__ 261.2Sriastrad 271.5SriastradCPPFLAGS+= -DCONFIG_BACKLIGHT_CLASS_DEVICE=0 281.5SriastradCPPFLAGS+= -DCONFIG_BACKLIGHT_CLASS_DEVICE_MODULE=0 291.5SriastradCPPFLAGS+= -DCONFIG_DRM_FBDEV_EMULATION=0 301.5SriastradCPPFLAGS+= -DCONFIG_FB=0 311.5Sriastrad 321.2Sriastrad# XXX Is this the right place to set this? 331.2SriastradCPPFLAGS+= -DDIAGNOSTIC 34