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 Define IS_ENABLED and IS_REACHABLE...



details:   https://anonhg.NetBSD.org/src/rev/dedce9b0aab4
branches:  trunk
changeset: 1027784:dedce9b0aab4
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 00:30:18 2021 +0000

description:
Define IS_ENABLED and IS_REACHABLE on the command line.

Header file is too late for it, apparently.

XXX Find a way to put this into a header file; command-line -D
arguments are ugly.

diffstat:

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

diffs (19 lines):

diff -r 1e685547ed06 -r dedce9b0aab4 sys/external/bsd/drm2/drm/files.drmkms
--- a/sys/external/bsd/drm2/drm/files.drmkms    Sun Dec 19 00:30:11 2021 +0000
+++ b/sys/external/bsd/drm2/drm/files.drmkms    Sun Dec 19 00:30:18 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.drmkms,v 1.40 2021/12/19 00:27:52 riastradh Exp $
+#      $NetBSD: files.drmkms,v 1.41 2021/12/19 00:30:18 riastradh Exp $
 
 include "external/bsd/drm2/linux/files.drmkms_linux"
 
@@ -35,6 +35,9 @@
 makeoptions    drmkms  CPPFLAGS+="-DCONFIG_DRM_FBDEV_EMULATION=1"
 makeoptions    drmkms  CPPFLAGS+="-DCONFIG_FB=0"
 
+makeoptions    drmkms  CPPFLAGS+="-DIS_ENABLED\(X\)=X"
+makeoptions    drmkms  CPPFLAGS+="-DIS_REACHABLE\(X\)=X"
+
 # NetBSD additions.
 file   external/bsd/drm2/drm/drm_agp_hook.c            drmkms
 file   external/bsd/drm2/drm/drm_cdevsw.c              drmkms



Home | Main Index | Thread Index | Old Index