X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=probes%2FKbuild;h=2f6c7c76828681cb6795354f4e084f9e3c6e75a2;hb=c44f49680d9fd397cd5d822e38b5f31412d09bf1;hp=a4f6b32af172bedfba2b1a443b7b94d7d82b27bc;hpb=a9799a5121562e2e5fa8f31b01151f195efc92fc;p=lttng-modules.git diff --git a/probes/Kbuild b/probes/Kbuild index a4f6b32a..2f6c7c76 100644 --- a/probes/Kbuild +++ b/probes/Kbuild @@ -97,13 +97,15 @@ ifneq ($(CONFIG_EXT3_FS),) ext3_dep = $(srctree)/fs/ext3/*.h ext3_dep_check = $(wildcard $(ext3_dep)) ext3 = $(shell \ - 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 ; \ + if [ $(VERSION) -lt 4 -o \( $(VERSION) -eq 4 -a $(PATCHLEVEL) -lt 3 \) ] ; then \ + 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 ; \ + fi; \ + echo "lttng-probe-ext3.o" ; \ fi; \ - echo "lttng-probe-ext3.o" ; \ fi;) ifeq ($(ext3),warn) $(warning Files $(ext3_dep) not found. Probe "ext3" is disabled. Use full kernel source tree to enable it.)