Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/drm drm: Keep drm include flags in CPP...



details:   https://anonhg.NetBSD.org/src/rev/8f9dbba2d2d7
branches:  trunk
changeset: 368582:8f9dbba2d2d7
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 20 10:01:01 2022 +0000

description:
drm: Keep drm include flags in CPPFLAGS.drmkms after all.

Failures from this are much more obvious to debug than files with
missing #ifdefs, which sometimes lead to build failures but could
also just lead to silent miscompilation.

diffstat:

 sys/external/bsd/drm2/drm/files.drmkms |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (31 lines):

diff -r 1ca7ee9b9ce1 -r 8f9dbba2d2d7 sys/external/bsd/drm2/drm/files.drmkms
--- a/sys/external/bsd/drm2/drm/files.drmkms    Wed Jul 20 06:43:37 2022 +0000
+++ b/sys/external/bsd/drm2/drm/files.drmkms    Wed Jul 20 10:01:01 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.drmkms,v 1.78 2022/07/20 01:38:24 riastradh Exp $
+#      $NetBSD: files.drmkms,v 1.79 2022/07/20 10:01:01 riastradh Exp $
 
 version        20180827
 
@@ -17,15 +17,15 @@
 makeoptions    drmkms  "COPTS.drmkms"+="-fwrapv"
 
 # Overrides first.
-makeoptions    drmkms  CPPFLAGS+="-I$S/external/bsd/drm2/include"
-makeoptions    drmkms  CPPFLAGS+="-I$S/external/bsd/drm2/include/drm"
+makeoptions    drmkms  "CPPFLAGS.drmkms"+="-I$S/external/bsd/drm2/include"
+makeoptions    drmkms  "CPPFLAGS.drmkms"+="-I$S/external/bsd/drm2/include/drm"
 
-makeoptions    drmkms  CPPFLAGS+="-I$S/external/bsd/common/include"
+makeoptions    drmkms  "CPPFLAGS.drmkms"+="-I$S/external/bsd/common/include"
 
 # Then upstream.
-makeoptions    drmkms  CPPFLAGS+="-I$S/external/bsd/drm2/dist/include"
-makeoptions    drmkms  CPPFLAGS+="-I$S/external/bsd/drm2/dist/include/drm"
-makeoptions    drmkms  CPPFLAGS+="-I$S/external/bsd/drm2/dist/include/uapi"
+makeoptions    drmkms  "CPPFLAGS.drmkms"+="-I$S/external/bsd/drm2/dist/include"
+makeoptions    drmkms  "CPPFLAGS.drmkms"+="-I$S/external/bsd/drm2/dist/include/drm"
+makeoptions    drmkms  "CPPFLAGS.drmkms"+="-I$S/external/bsd/drm2/dist/include/uapi"
 
 makeoptions    drmkms  "CPPFLAGS.drmkms"+="-D__KERNEL__"
 



Home | Main Index | Thread Index | Old Index