X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=Makefile.ABI.workarounds;h=e8cf520a2bc20586a61900bf2df378e5cac03ba1;hb=b4c8e4d34937b83ed3d2c6a3665d181ce483c06e;hp=be9f1cb5455ba061bf2cad0917ad45c9efcfed54;hpb=b37d476e197064573206a68ed3bcc2e63257edd8;p=lttng-modules.git diff --git a/Makefile.ABI.workarounds b/Makefile.ABI.workarounds index be9f1cb5..e8cf520a 100644 --- a/Makefile.ABI.workarounds +++ b/Makefile.ABI.workarounds @@ -4,8 +4,14 @@ # the kernel EXTRAVERSION to figure it out. Translate this information # into a define visible from the C preprocessor. -DEB_API_VERSION=$(shell $(MAKEFILEDIR)/abi-debian-version.sh $(KERNELDIR)) +DEB_API_VERSION:=$(shell $(MAKEFILEDIR)/abi-debian-version.sh $(KERNELDIR)) ifneq ($(DEB_API_VERSION), 0) -ccflags-y += -DDEBIAN_API_VERSION=$(DEB_API_VERSION) + ccflags-y += -DDEBIAN_API_VERSION=$(DEB_API_VERSION) +endif + +RT_PATCH_VERSION:=$(shell $(MAKEFILEDIR)/rt-patch-version.sh $(KERNELDIR)) + +ifneq ($(RT_PATCH_VERSION), 0) + ccflags-y += -DRT_PATCH_VERSION=$(RT_PATCH_VERSION) endif