Version 2.7.7
[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
e0577e5f 7DEB_API_VERSION:=$(shell $(MAKEFILEDIR)/abi-debian-version.sh $(KERNELDIR))
72e6c528
MD
8
9ifneq ($(DEB_API_VERSION), 0)
10ccflags-y += -DDEBIAN_API_VERSION=$(DEB_API_VERSION)
11endif
e0577e5f 12
8d2c7a7c
MJ
13RHEL_API_VERSION:=$(shell $(MAKEFILEDIR)/abi-rhel-version.sh $(CURDIR))
14
15ifneq ($(RHEL_API_VERSION), 0)
16 ccflags-y += -DRHEL_API_VERSION=$(RHEL_API_VERSION)
17endif
18
e0577e5f
MJ
19RT_PATCH_VERSION:=$(shell $(MAKEFILEDIR)/rt-patch-version.sh $(KERNELDIR))
20
21ifneq ($(RT_PATCH_VERSION), 0)
22 ccflags-y += -DRT_PATCH_VERSION=$(RT_PATCH_VERSION)
23endif
This page took 0.023045 seconds and 4 git commands to generate.