Fixed defines bug in configure; renamed config.kbuild variables.
--- a/configure.ac Tue Aug 07 13:33:57 2007 +0000
+++ b/configure.ac Wed Aug 08 10:31:54 2007 +0000
@@ -397,18 +397,18 @@
cat > config.kbuild <<EOF
# config.kbuild - created by configure
-EC_DEBUG_IF := ${dbg}
-EC_ENABLE_8139TOO := ${enable8139too}
-EC_8139TOO_KERNEL := ${kernel8139too}
-EC_ENABLE_E100 := ${enablee100}
-EC_E100_KERNEL := ${kernele100}
-EC_ENABLE_FORCEDETH := ${enableforcedeth}
-EC_FORCEDETH_KERNEL := ${kernelforcedeth}
-EC_ENABLE_E1000 := ${enablee1000}
-EC_E1000_KERNEL := ${kernele1000}
-EC_RTAI_DIR := "${rtaidir}"
-EC_MSR_DIR := "${msrdir}"
-EC_DUMMY := ${dummy}
+ENABLE_8139TOO := ${enable8139too}
+KERNEL_8139TOO := ${kernel8139too}
+ENABLE_E100 := ${enablee100}
+KERNEL_E100 := ${kernele100}
+ENABLE_FORCEDETH := ${enableforcedeth}
+KERNEL_FORCEDETH := ${kernelforcedeth}
+ENABLE_E1000 := ${enablee1000}
+ENABLE_E1000 := ${kernele1000}
+RTAI_DIR := "${rtaidir}"
+MSR_DIR := "${msrdir}"
+ENABLE_DEBUG_IF := ${dbg}
+ENABLE_DUMMY := ${dummy}
EOF
#------------------------------------------------------------------------------
--- a/devices/Kbuild Tue Aug 07 13:33:57 2007 +0000
+++ b/devices/Kbuild Wed Aug 08 10:31:54 2007 +0000
@@ -39,28 +39,28 @@
svnversion $(src)/.. 2>/dev/null || echo "unknown"; \
fi)
-ifeq ($(EC_ENABLE_8139TOO),1)
- EC_8139TOO_OBJ := 8139too-$(EC_8139TOO_KERNEL)-ethercat.o
+ifeq ($(ENABLE_8139TOO),1)
+ EC_8139TOO_OBJ := 8139too-$(KERNEL_8139TOO)-ethercat.o
obj-m += ec_8139too.o
ec_8139too-objs := $(EC_8139TOO_OBJ)
CFLAGS_$(EC_8139TOO_OBJ) = -DSVNREV=$(REV)
endif
-ifeq ($(EC_ENABLE_E100),1)
- EC_E100_OBJ := e100-$(EC_E100_KERNEL)-ethercat.o
+ifeq ($(ENABLE_E100),1)
+ EC_E100_OBJ := e100-$(KERNEL_E100)-ethercat.o
obj-m += ec_e100.o
ec_e100-objs := $(EC_E100_OBJ)
CFLAGS_$(EC_E100_OBJ) = -DSVNREV=$(REV)
endif
-ifeq ($(EC_ENABLE_FORCEDETH),1)
- EC_FORCEDETH_OBJ := forcedeth-$(EC_FORCEDETH_KERNEL)-ethercat.o
+ifeq ($(ENABLE_FORCEDETH),1)
+ EC_FORCEDETH_OBJ := forcedeth-$(KERNEL_FORCEDETH)-ethercat.o
obj-m += ec_forcedeth.o
ec_forcedeth-objs := $(EC_FORCEDETH_OBJ)
CFLAGS_$(EC_FORCEDETH_OBJ) = -DSVNREV=$(REV)
endif
-ifeq ($(EC_ENABLE_E1000),1)
+ifeq ($(ENABLE_E1000),1)
obj-m += e1000/
endif
--- a/devices/e1000/Kbuild Tue Aug 07 13:33:57 2007 +0000
+++ b/devices/e1000/Kbuild Wed Aug 08 10:31:54 2007 +0000
@@ -40,14 +40,14 @@
svnversion $(TOPDIR) 2>/dev/null || echo "unknown"; \
fi)
-ifeq ($(EC_ENABLE_E1000),1)
- EC_E1000_OBJ := e1000_main-$(EC_E1000_KERNEL)-ethercat.o \
- e1000_hw-$(EC_E1000_KERNEL)-ethercat.o \
- e1000_ethtool-$(EC_E1000_KERNEL)-ethercat.o \
- e1000_param-$(EC_E1000_KERNEL)-ethercat.o
+ifeq ($(ENABLE_E1000),1)
+ EC_E1000_OBJ := e1000_main-$(KERNEL_E1000)-ethercat.o \
+ e1000_hw-$(KERNEL_E1000)-ethercat.o \
+ e1000_ethtool-$(KERNEL_E1000)-ethercat.o \
+ e1000_param-$(KERNEL_E1000)-ethercat.o
obj-m += ec_e1000.o
ec_e1000-objs := $(EC_E1000_OBJ)
- CFLAGS_e1000_main-$(EC_E1000_KERNEL)-ethercat.o = -DSVNREV=$(REV)
+ CFLAGS_e1000_main-$(KERNEL_E1000)-ethercat.o = -DSVNREV=$(REV)
endif
#------------------------------------------------------------------------------
--- a/dummy/Kbuild Tue Aug 07 13:33:57 2007 +0000
+++ b/dummy/Kbuild Wed Aug 08 10:31:54 2007 +0000
@@ -39,7 +39,7 @@
svnversion $(src) 2>/dev/null || echo "unknown"; \
fi)
-ifeq ($(EC_DUMMY),1)
+ifeq ($(ENABLE_DUMMY),1)
obj-m := ec_dummy.o
ec_dummy-objs := module.o master.o slave.o domain.o
CFLAGS_dummy.o := -DSVNREV=$(REV)
--- a/examples/msr/Kbuild Tue Aug 07 13:33:57 2007 +0000
+++ b/examples/msr/Kbuild Wed Aug 08 10:31:54 2007 +0000
@@ -52,7 +52,7 @@
rt_lib/msr-math/msr_hex_bin.o \
libm.o
-EXTRA_CFLAGS := -I$(EC_MSR_DIR)/include -I$(EC_RTAI_DIR)/include \
+EXTRA_CFLAGS := -I$(MSR_DIR)/include -I$(RTAI_DIR)/include \
-D_SIMULATION -mhard-float
#------------------------------------------------------------------------------
--- a/examples/rtai/Kbuild Tue Aug 07 13:33:57 2007 +0000
+++ b/examples/rtai/Kbuild Wed Aug 08 10:31:54 2007 +0000
@@ -37,6 +37,6 @@
ec_rtai_sample-objs := rtai_sample.o
-EXTRA_CFLAGS := -I$(EC_RTAI_DIR)/include
+EXTRA_CFLAGS := -I$(RTAI_DIR)/include
#------------------------------------------------------------------------------