Fix: 4.10 btrfs instrumentation update backward compat
[lttng-modules.git] / Makefile.ABI.workarounds
CommitLineData
72e6c528
MD
1# Work-around for distro-specific public modules ABI breakages.
2# Some distributions break the public module instrumentation ABI
3# compared to upstream stable kernels without providing other mean than
4# the kernel EXTRAVERSION to figure it out. Translate this information
5# into a define visible from the C preprocessor.
6
b933d85e 7DEB_API_VERSION:=$(shell $(TOP_LTTNG_MODULES_DIR)/abi-debian-version.sh $(CURDIR))
72e6c528
MD
8
9ifneq ($(DEB_API_VERSION), 0)
a8907e9a 10 ccflags-y += -DDEBIAN_API_VERSION=$(DEB_API_VERSION)
72e6c528 11endif
b4c8e4d3 12
53c4007f
MJ
13RHEL_API_VERSION:=$(shell $(TOP_LTTNG_MODULES_DIR)/abi-rhel-version.sh $(CURDIR))
14
15ifneq ($(RHEL_API_VERSION), 0)
16 ccflags-y += -DRHEL_API_VERSION=$(RHEL_API_VERSION)
17endif
18
c6dd600b
MJ
19SLE_API_VERSION:=$(shell $(TOP_LTTNG_MODULES_DIR)/abi-sle-version.sh $(CURDIR))
20
21ifneq ($(SLE_API_VERSION), 0)
22 ccflags-y += -DSLE_API_VERSION=$(SLE_API_VERSION)
23endif
24
b933d85e 25RT_PATCH_VERSION:=$(shell $(TOP_LTTNG_MODULES_DIR)/rt-patch-version.sh $(CURDIR))
b4c8e4d3
MJ
26
27ifneq ($(RT_PATCH_VERSION), 0)
28 ccflags-y += -DRT_PATCH_VERSION=$(RT_PATCH_VERSION)
29endif
This page took 0.026727 seconds and 4 git commands to generate.