Fix: Use kbuild env instead of a custom var KERNELDIR
[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
ebc53e02 7DEB_API_VERSION:=$(shell $(MAKEFILEDIR)/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
ebc53e02 13RT_PATCH_VERSION:=$(shell $(MAKEFILEDIR)/rt-patch-version.sh $(CURDIR))
b4c8e4d3
MJ
14
15ifneq ($(RT_PATCH_VERSION), 0)
16 ccflags-y += -DRT_PATCH_VERSION=$(RT_PATCH_VERSION)
17endif
This page took 0.023282 seconds and 4 git commands to generate.