mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-21 17:44:04 +08:00
Konfigurations-Template.
This commit is contained in:
@@ -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
|
||||
|
||||
+5
-3
@@ -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
|
||||
|
||||
+7
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user