Konfigurations-Template.
This commit is contained in:
parent
0fface9b7a
commit
a49d5f512c
7
Makefile
7
Makefile
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
12
rt/Makefile
12
rt/Makefile
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
Loading…
Reference in New Issue