Module: xenomai-2.6
Branch: master
Commit: 17708fbd2971cfeba63872e9846a431ab37ff7c2
URL:    
http://git.xenomai.org/?p=xenomai-2.6.git;a=commit;h=17708fbd2971cfeba63872e9846a431ab37ff7c2

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Mon Dec 26 21:07:07 2011 +0100

examples: fix compilation with kernel 3.0

---

 examples/common/Makefile               |    4 ++--
 examples/native/Makefile               |    4 ++--
 examples/posix/Makefile                |    4 ++--
 examples/rtdm/driver-api/Makefile      |    4 ++--
 examples/rtdm/profiles/can/Makefile    |    4 ++--
 examples/rtdm/profiles/ipc/Makefile    |    4 ++--
 examples/rtdm/profiles/serial/Makefile |    4 ++--
 7 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/examples/common/Makefile b/examples/common/Makefile
index 514122e..57756c5 100644
--- a/examples/common/Makefile
+++ b/examples/common/Makefile
@@ -61,8 +61,8 @@ CLEANMOD := ${patsubst %, .%*, $(MODULES)}
 PWD      := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
 
 PATCHLEVEL:=$(shell sed 's/^PATCHLEVEL = *\(.*\)/\1/;t;d' $(KSRC)/Makefile)
-### Kernel 2.6
-ifeq ($(strip $(PATCHLEVEL)),6)
+### Kernel 2.6 or 3.0
+ifneq ($(strip $(PATCHLEVEL)),4)
 
 obj-m        := $(OBJS)
 EXTRA_CFLAGS := -I$(KSRC)/include/xenomai -I$(KSRC)/include/xenomai/posix 
$(ADD_CFLAGS)
diff --git a/examples/native/Makefile b/examples/native/Makefile
index 40ed737..485b3fa 100644
--- a/examples/native/Makefile
+++ b/examples/native/Makefile
@@ -67,8 +67,8 @@ CLEANMOD := ${patsubst %, .%*, $(MODULES)}
 PWD      := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
 
 PATCHLEVEL:=$(shell sed 's/^PATCHLEVEL = *\(.*\)/\1/;t;d' $(KSRC)/Makefile)
-### Kernel 2.6
-ifeq ($(strip $(PATCHLEVEL)),6)
+### Kernel 2.6 or 3.0
+ifneq ($(strip $(PATCHLEVEL)),4)
 
 obj-m        := $(OBJS)
 EXTRA_CFLAGS := -I$(KSRC)/include/xenomai -I$(KSRC)/include/xenomai/posix 
$(ADD_CFLAGS)
diff --git a/examples/posix/Makefile b/examples/posix/Makefile
index f5c445f..a1ce80d 100644
--- a/examples/posix/Makefile
+++ b/examples/posix/Makefile
@@ -63,9 +63,9 @@ OBJS     := ${patsubst %, %.o, $(MODULES)}
 CLEANMOD := ${patsubst %, .%*, $(MODULES)}
 PWD      := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
 
-### Kernel 2.6
+### Kernel 2.6 or 3.0
 PATCHLEVEL:=$(shell sed 's/PATCHLEVEL = \(.*\)/\1/;t;d' $(KSRC)/Makefile)
-ifeq ($(PATCHLEVEL),6)
+ifneq ($(PATCHLEVEL),4)
 
 obj-m        := $(OBJS)
 EXTRA_CFLAGS := -DPRODUCER -I$(KSRC)/include/xenomai 
-I$(KSRC)/include/xenomai/posix $(ADD_CFLAGS)
diff --git a/examples/rtdm/driver-api/Makefile 
b/examples/rtdm/driver-api/Makefile
index e943a35..255c3d5 100644
--- a/examples/rtdm/driver-api/Makefile
+++ b/examples/rtdm/driver-api/Makefile
@@ -61,8 +61,8 @@ CLEANMOD := ${patsubst %, .%*, $(MODULES)}
 PWD      := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
 
 PATCHLEVEL:=$(shell sed 's/^PATCHLEVEL = *\(.*\)/\1/;t;d' $(KSRC)/Makefile)
-### Kernel 2.6
-ifeq ($(strip $(PATCHLEVEL)),6)
+### Kernel 2.6 or 3.0
+ifneq ($(strip $(PATCHLEVEL)),4)
 
 obj-m        := $(OBJS)
 EXTRA_CFLAGS := -I$(KSRC)/include/xenomai -I$(KSRC)/include/xenomai/posix 
$(ADD_CFLAGS)
diff --git a/examples/rtdm/profiles/can/Makefile 
b/examples/rtdm/profiles/can/Makefile
index aaed1d8..25be6b8 100644
--- a/examples/rtdm/profiles/can/Makefile
+++ b/examples/rtdm/profiles/can/Makefile
@@ -61,8 +61,8 @@ CLEANMOD := ${patsubst %, .%*, $(MODULES)}
 PWD      := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
 
 PATCHLEVEL:=$(shell sed 's/^PATCHLEVEL = *\(.*\)/\1/;t;d' $(KSRC)/Makefile)
-### Kernel 2.6
-ifeq ($(strip $(PATCHLEVEL)),6)
+### Kernel 2.6 or 3.0
+ifneq ($(strip $(PATCHLEVEL)),4)
 
 obj-m        := $(OBJS)
 EXTRA_CFLAGS := -I$(KSRC)/include/xenomai -I$(KSRC)/include/xenomai/posix 
$(ADD_CFLAGS)
diff --git a/examples/rtdm/profiles/ipc/Makefile 
b/examples/rtdm/profiles/ipc/Makefile
index 78e5c32..15da135 100644
--- a/examples/rtdm/profiles/ipc/Makefile
+++ b/examples/rtdm/profiles/ipc/Makefile
@@ -65,8 +65,8 @@ CLEANMOD := ${patsubst %, .%*, $(MODULES)}
 PWD      := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
 
 PATCHLEVEL:=$(shell sed 's/^PATCHLEVEL = *\(.*\)/\1/;t;d' $(KSRC)/Makefile)
-### Kernel 2.6
-ifeq ($(strip $(PATCHLEVEL)),6)
+### Kernel 2.6 or 3.0
+ifneq ($(strip $(PATCHLEVEL)),4)
 
 obj-m        := $(OBJS)
 EXTRA_CFLAGS := -I$(KSRC)/include/xenomai -I$(KSRC)/include/xenomai/posix 
$(ADD_CFLAGS)
diff --git a/examples/rtdm/profiles/serial/Makefile 
b/examples/rtdm/profiles/serial/Makefile
index 620db16..3b2aaab 100644
--- a/examples/rtdm/profiles/serial/Makefile
+++ b/examples/rtdm/profiles/serial/Makefile
@@ -61,8 +61,8 @@ CLEANMOD := ${patsubst %, .%*, $(MODULES)}
 PWD      := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
 
 PATCHLEVEL:=$(shell sed 's/^PATCHLEVEL = *\(.*\)/\1/;t;d' $(KSRC)/Makefile)
-### Kernel 2.6
-ifeq ($(strip $(PATCHLEVEL)),6)
+### Kernel 2.6 or 3.0
+ifneq ($(strip $(PATCHLEVEL)),4)
 
 obj-m        := $(OBJS)
 EXTRA_CFLAGS := -I$(KSRC)/include/xenomai -I$(KSRC)/include/xenomai/posix 
$(ADD_CFLAGS)


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to