Konfigurations-Template.
--- a/Makefile Wed Mar 15 20:17:02 2006 +0000
+++ b/Makefile Wed Mar 15 20:19:05 2006 +0000
@@ -34,13 +34,6 @@
clean:
$(MAKE) -C $(KERNELDIR) M=`pwd` clean
-config conf $(CONFIG_FILE):
- @echo "# EtherCAT Konfigurationsdatei Kernel 2.6" > $(CONFIG_FILE)
- @echo >> $(CONFIG_FILE)
- @echo "KERNELDIR = /usr/src/linux" >> $(CONFIG_FILE)
- @echo >> $(CONFIG_FILE)
- @echo "$(CONFIG_FILE) erstellt."
-
#------------------------------------------------------------------------------
endif
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/ethercat.conf.tmpl Wed Mar 15 20:19:05 2006 +0000
@@ -0,0 +1,13 @@
+#------------------------------------------------------------------------------
+#
+# EtherCAT Konfigurationsdatei Kernel 2.6
+#
+# $Id$
+#
+# This file is a versioned template configuration. Copy it to "ethercat.conf"
+# (which is ignored by Subversion) and adjust it to your needs.
+#
+#------------------------------------------------------------------------------
+
+KERNELDIR = /usr/src/linux
+
--- a/mini/Makefile Wed Mar 15 20:17:02 2006 +0000
+++ b/mini/Makefile Wed Mar 15 20:19:05 2006 +0000
@@ -11,7 +11,8 @@
ifneq ($(KERNELRELEASE),)
#----------------------------------------------------------------
-# Kbuild-Abschnitt
+# Kbuild-Abschnitt
+#----------------------------------------------------------------
obj-m := ec_mini.o
@@ -22,12 +23,13 @@
else
#----------------------------------------------------------------
-# Default-Abschnitt
+# Default-Abschnitt
+#----------------------------------------------------------------
ifneq ($(wildcard ethercat.conf),)
include ethercat.conf
else
-KERNELDIR = /lib/modules/`uname -r`/build
+KERNELDIR = /usr/src/linux
endif
modules:
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mini/ethercat.conf.tmpl Wed Mar 15 20:19:05 2006 +0000
@@ -0,0 +1,13 @@
+#------------------------------------------------------------------------------
+#
+# EtherCAT Konfigurationsdatei Kernel 2.6
+#
+# $Id$
+#
+# This file is a versioned template configuration. Copy it to "ethercat.conf"
+# (which is ignored by Subversion) and adjust it to your needs.
+#
+#------------------------------------------------------------------------------
+
+KERNELDIR = /usr/src/linux
+
--- a/rt/Makefile Wed Mar 15 20:17:02 2006 +0000
+++ b/rt/Makefile Wed Mar 15 20:19:05 2006 +0000
@@ -1,15 +1,16 @@
#------------------------------------------------------------------------------
#
-# Makefile Echtzeitmodule
+# Makefile Echtzeitmodule
#
-# $Id$
+# $Id$
#
#------------------------------------------------------------------------------
ifneq ($(KERNELRELEASE),)
#------------------------------------------------------------------------------
-# Kbuild-Abschnitt
+# Kbuild-Abschnitt
+#------------------------------------------------------------------------------
obj-m := msr_modul.o
@@ -37,12 +38,13 @@
else
#------------------------------------------------------------------------------
-# Default-Abschnitt
+# Default-Abschnitt
+#------------------------------------------------------------------------------
ifneq ($(wildcard ethercat.conf),)
include ethercat.conf
else
-KERNELDIR = /lib/modules/`uname -r`/build
+KERNELDIR = /usr/src/linux
endif
modules:
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/rt/ethercat.conf.tmpl Wed Mar 15 20:19:05 2006 +0000
@@ -0,0 +1,13 @@
+#------------------------------------------------------------------------------
+#
+# EtherCAT Konfigurationsdatei Kernel 2.6
+#
+# $Id$
+#
+# This file is a versioned template configuration. Copy it to "ethercat.conf"
+# (which is ignored by Subversion) and adjust it to your needs.
+#
+#------------------------------------------------------------------------------
+
+KERNELDIR = /usr/src/linux
+