Source-Changes-HG archive

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

[src/trunk]: src/sys/modules allow sharing Makefiles with rump kernel components



details:   https://anonhg.NetBSD.org/src/rev/89a3d670ad31
branches:  trunk
changeset: 333847:89a3d670ad31
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Nov 19 00:17:10 2014 +0000

description:
allow sharing Makefiles with rump kernel components

diffstat:

 sys/modules/hdafg/Makefile       |   7 ++-----
 sys/modules/hdafg/Makefile.inc   |   9 +++++++++
 sys/modules/hdaudio/Makefile     |   8 ++------
 sys/modules/hdaudio/Makefile.inc |  11 +++++++++++
 4 files changed, 24 insertions(+), 11 deletions(-)

diffs (63 lines):

diff -r 52cbe8e965dc -r 89a3d670ad31 sys/modules/hdafg/Makefile
--- a/sys/modules/hdafg/Makefile        Tue Nov 18 17:03:41 2014 +0000
+++ b/sys/modules/hdafg/Makefile        Wed Nov 19 00:17:10 2014 +0000
@@ -1,11 +1,8 @@
-#      $NetBSD: Makefile,v 1.4 2011/08/28 15:48:19 jmcneill Exp $
+#      $NetBSD: Makefile,v 1.5 2014/11/19 00:17:10 pooka Exp $
 
 .include "../Makefile.inc"
-
-.PATH: ${S}/dev/pci/hdaudio
+.include "${.CURDIR}/Makefile.inc"
 
 KMOD=  hdafg
-IOCONF=        hdafg.ioconf
-SRCS=  hdafg.c hdafg_dd.c
 
 .include <bsd.kmodule.mk>
diff -r 52cbe8e965dc -r 89a3d670ad31 sys/modules/hdafg/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/hdafg/Makefile.inc    Wed Nov 19 00:17:10 2014 +0000
@@ -0,0 +1,9 @@
+#      $NetBSD: Makefile.inc,v 1.1 2014/11/19 00:17:10 pooka Exp $
+
+# This file is used by modules and rump kernels 
+
+IOCONFDIR:=    ${.PARSEDIR}
+.PATH: ${NETBSDSRCDIR}/sys/dev/pci/hdaudio ${IOCONFDIR}
+
+IOCONF=        hdafg.ioconf
+SRCS=  hdafg.c hdafg_dd.c
diff -r 52cbe8e965dc -r 89a3d670ad31 sys/modules/hdaudio/Makefile
--- a/sys/modules/hdaudio/Makefile      Tue Nov 18 17:03:41 2014 +0000
+++ b/sys/modules/hdaudio/Makefile      Wed Nov 19 00:17:10 2014 +0000
@@ -1,12 +1,8 @@
-#      $NetBSD: Makefile,v 1.3 2014/09/19 18:05:24 christos Exp $
+#      $NetBSD: Makefile,v 1.4 2014/11/19 00:17:10 pooka Exp $
 
 .include "../Makefile.inc"
-
-.PATH: ${S}/dev/pci/hdaudio
+.include "${.CURDIR}/Makefile.inc"
 
 KMOD=  hdaudio
-IOCONF=        hdaudio.ioconf
-SRCS=  hdaudio.c
-SRCS+= hdaudio_pci.c
 
 .include <bsd.kmodule.mk>
diff -r 52cbe8e965dc -r 89a3d670ad31 sys/modules/hdaudio/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/hdaudio/Makefile.inc  Wed Nov 19 00:17:10 2014 +0000
@@ -0,0 +1,11 @@
+#      $NetBSD: Makefile.inc,v 1.1 2014/11/19 00:17:10 pooka Exp $
+
+# This file is used by modules and rump kernels
+
+IOCONFDIR:=    ${.PARSEDIR}
+
+.PATH: ${NETBSDSRCDIR}/sys/dev/pci/hdaudio ${IOCONFDIR}
+
+IOCONF=        hdaudio.ioconf
+SRCS=  hdaudio.c
+SRCS+= hdaudio_pci.c



Home | Main Index | Thread Index | Old Index