Fix: discover Debian API
[lttng-modules.git] / Makefile.ABI.workarounds
diff --git a/Makefile.ABI.workarounds b/Makefile.ABI.workarounds
new file mode 100644 (file)
index 0000000..f00340c
--- /dev/null
@@ -0,0 +1,11 @@
+# Work-around for distro-specific public modules ABI breakages.
+# Some distributions break the public module instrumentation ABI
+# compared to upstream stable kernels without providing other mean than
+# the kernel EXTRAVERSION to figure it out. Translate this information
+# into a define visible from the C preprocessor.
+
+DEB_API_VERSION=$(shell $(KBUILD_EXTMOD)/abi-debian-version.sh $(KERNELDIR))
+
+ifneq ($(DEB_API_VERSION), 0)
+ccflags-y += -DDEBIAN_API_VERSION=$(DEB_API_VERSION)
+endif
This page took 0.023745 seconds and 4 git commands to generate.