Symbol versions; Makefile improvements.
--- 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)