-ifneq ($(wildcard $(regmap_dep_4_0)),)
-obj-m += $(shell \
- if [ $(VERSION) -eq 4 -a $(PATCHLEVEL) -eq 0 ] ; then \
- echo "lttng-probe-regmap.o" ; fi;)
-else
-ifneq ($(wildcard $(regmap_dep_3_x)),)
-obj-m += $(shell \
- if [ $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 2 ] ; then \
- echo "lttng-probe-regmap.o" ; fi;)
-else
-$(warning Either of files $(regmap_dep_4_1), $(regmap_dep_4_0), or $(regmap_dep_3_x) not found. Probe "regmap" is disabled. Use full kernel source tree to enable it.)
-endif
-endif