Symbol versions; Makefile improvements.
authorFlorian Pose <fp@igh-essen.com>
Thu, 07 May 2009 08:44:00 +0000
changeset 1453 79042b9458b1
parent 1452 b76ce77e0de2
child 1454 b9986feec1a5
Symbol versions; Makefile improvements.
devices/Kbuild.in
devices/Makefile.am
devices/e1000/Kbuild.in
devices/e1000/Makefile.am
examples/dc_rtai/Kbuild.in
examples/mini/Kbuild.in
examples/rtai/Kbuild.in
master/Makefile.am
--- a/devices/Kbuild.in	Thu May 07 08:12:13 2009 +0000
+++ b/devices/Kbuild.in	Thu May 07 08:44:00 2009 +0000
@@ -62,4 +62,8 @@
 	CFLAGS_$(EC_R8169_OBJ) = -DSVNREV=$(REV)
 endif
 
+KBUILD_EXTRA_SYMBOLS := \
+	@abs_top_builddir@/Module.symvers \
+	@abs_top_builddir@/master/Module.symvers
+
 #------------------------------------------------------------------------------
--- a/devices/Makefile.am	Thu May 07 08:12:13 2009 +0000
+++ b/devices/Makefile.am	Thu May 07 08:44:00 2009 +0000
@@ -70,7 +70,7 @@
 	Kbuild
 
 modules:
-	$(MAKE) -C "@abs_top_srcdir@" modules
+	$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" modules
 
 modules_install:
 	mkdir -p $(DESTDIR)$(LINUX_MOD_PATH)
--- a/devices/e1000/Kbuild.in	Thu May 07 08:12:13 2009 +0000
+++ b/devices/e1000/Kbuild.in	Thu May 07 08:44:00 2009 +0000
@@ -50,4 +50,8 @@
 	CFLAGS_e1000_main-@KERNEL_E1000@-ethercat.o = -DSVNREV=$(REV)
 endif
 
+KBUILD_EXTRA_SYMBOLS := \
+	@abs_top_builddir@/Module.symvers \
+	@abs_top_builddir@/master/Module.symvers
+
 #------------------------------------------------------------------------------
--- a/devices/e1000/Makefile.am	Thu May 07 08:12:13 2009 +0000
+++ b/devices/e1000/Makefile.am	Thu May 07 08:44:00 2009 +0000
@@ -119,7 +119,7 @@
 	Kbuild
 
 modules:
-	$(MAKE) -C "@abs_top_srcdir@" modules
+	$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" modules
 
 modules_install:
 	mkdir -p $(DESTDIR)$(LINUX_MOD_PATH)
--- a/examples/dc_rtai/Kbuild.in	Thu May 07 08:12:13 2009 +0000
+++ b/examples/dc_rtai/Kbuild.in	Thu May 07 08:44:00 2009 +0000
@@ -37,4 +37,8 @@
 
 EXTRA_CFLAGS := -I@RTAI_DIR@/include
 
+KBUILD_EXTRA_SYMBOLS := \
+	@abs_top_builddir@/Module.symvers \
+	@abs_top_builddir@/master/Module.symvers
+
 #------------------------------------------------------------------------------
--- a/examples/mini/Kbuild.in	Thu May 07 08:12:13 2009 +0000
+++ b/examples/mini/Kbuild.in	Thu May 07 08:44:00 2009 +0000
@@ -35,4 +35,8 @@
 
 ec_mini-objs := mini.o
 
+KBUILD_EXTRA_SYMBOLS := \
+	@abs_top_builddir@/Module.symvers \
+	@abs_top_builddir@/master/Module.symvers
+
 #------------------------------------------------------------------------------
--- a/examples/rtai/Kbuild.in	Thu May 07 08:12:13 2009 +0000
+++ b/examples/rtai/Kbuild.in	Thu May 07 08:44:00 2009 +0000
@@ -37,4 +37,8 @@
 
 EXTRA_CFLAGS := -I@RTAI_DIR@/include
 
+KBUILD_EXTRA_SYMBOLS := \
+	@abs_top_builddir@/Module.symvers \
+	@abs_top_builddir@/master/Module.symvers
+
 #------------------------------------------------------------------------------
--- a/master/Makefile.am	Thu May 07 08:12:13 2009 +0000
+++ b/master/Makefile.am	Thu May 07 08:44:00 2009 +0000
@@ -72,7 +72,7 @@
 	Kbuild
 
 modules:
-	$(MAKE) -C "@abs_top_srcdir@" modules
+	$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" modules
 
 modules_install:
 	mkdir -p $(DESTDIR)$(LINUX_MOD_PATH)