Konfigurations-Template.

This commit is contained in:
Florian Pose 2006-03-15 20:19:05 +00:00
parent 0fface9b7a
commit a49d5f512c
6 changed files with 51 additions and 15 deletions

View File

@ -34,13 +34,6 @@ modules:
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

13
ethercat.conf.tmpl Normal file
View File

@ -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

View File

@ -11,7 +11,8 @@
ifneq ($(KERNELRELEASE),)
#----------------------------------------------------------------
# Kbuild-Abschnitt
# Kbuild-Abschnitt
#----------------------------------------------------------------
obj-m := ec_mini.o
@ -22,12 +23,13 @@ ec_mini-objs := mini.o
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:

13
mini/ethercat.conf.tmpl Normal file
View File

@ -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

View File

@ -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 @@ EXTRA_CFLAGS := -I$(src)/rt_lib/msr-include -D_SIMULATION \
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:

13
rt/ethercat.conf.tmpl Normal file
View File

@ -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