From: mjeanson@efficios.com (Michael Jeanson)
Subject: [lttng-dev] [PATCH lttng-modules] Fix: version checks for kernel 4.0
Date: Wed, 17 Jun 2015 16:28:02 -0400 [thread overview]
Message-ID: <1434572882-29119-1-git-send-email-mjeanson@efficios.com> (raw)
Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
---
probes/Makefile | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/probes/Makefile b/probes/Makefile
index 4de157b..f0325c8 100644
--- a/probes/Makefile
+++ b/probes/Makefile
@@ -61,10 +61,12 @@ obj-m += $(shell \
-o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 37 \) ] ; then \
echo "lttng-probe-net.o" ; fi;)
obj-m += $(shell \
- if [ $(VERSION) -ge 3 -a $(PATCHLEVEL) -ge 1 ] ; then \
+ if [ $(VERSION) -ge 4 \
+ -o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 1 \) ] ; then \
echo "lttng-probe-sock.o" ; fi;)
obj-m += $(shell \
- if [ $(VERSION) -ge 3 -a $(PATCHLEVEL) -ge 1 ] ; then \
+ if [ $(VERSION) -ge 4 \
+ -o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 1 \) ] ; then \
echo "lttng-probe-udp.o" ; fi;)
endif
@@ -79,8 +81,8 @@ ifneq ($(CONFIG_EXT3_FS),)
ext3_dep = $(srctree)/fs/ext3/*.h
ext3_dep_check = $(wildcard $(ext3_dep))
ext3 = $(shell \
- if [ $(VERSION) -ge 3 -a $(PATCHLEVEL) -ge 1 ] ; then \
- if [ $(VERSION) -ge 3 -a $(PATCHLEVEL) -ge 4 -a \
+ if [ $(VERSION) -ge 4 -o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 1 \) ] ; then \
+ if [ \( $(VERSION) -ge 4 -o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 4 \) \) -a \
-z "$(ext3_dep_check)" ] ; then \
echo "warn" ; \
exit ; \
@@ -106,7 +108,8 @@ endif
ifneq ($(CONFIG_JBD),)
obj-m += $(shell \
- if [ $(VERSION) -ge 3 -a $(PATCHLEVEL) -ge 1 ] ; then \
+ if [ $(VERSION) -ge 4 \
+ -o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 1 \) ] ; then \
echo "lttng-probe-jbd.o" ; fi;)
endif
@@ -172,7 +175,8 @@ obj-m += $(ext4)
endif
obj-m += $(shell \
- if [ $(VERSION) -ge 3 -a $(PATCHLEVEL) -ge 4 ] ; then \
+ if [ $(VERSION) -ge 4 \
+ -o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 4 \) ] ; then \
echo "lttng-probe-printk.o" ; fi;)
ifneq ($(CONFIG_FRAME_WARN),0)
CFLAGS_lttng-probe-printk.o += -Wframe-larger-than=2200
--
1.9.1
reply other threads:[~2015-06-17 20:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1434572882-29119-1-git-send-email-mjeanson@efficios.com \
--to=mjeanson@efficios.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox