| 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 | |
| 7 | DEB_API_VERSION:=$(shell $(MAKEFILEDIR)/abi-debian-version.sh $(KERNELDIR)) |
| 8 | |
| 9 | ifneq ($(DEB_API_VERSION), 0) |
| 10 | ccflags-y += -DDEBIAN_API_VERSION=$(DEB_API_VERSION) |
| 11 | endif |
| 12 | |
| 13 | RT_PATCH_VERSION:=$(shell $(MAKEFILEDIR)/rt-patch-version.sh $(KERNELDIR)) |
| 14 | |
| 15 | ifneq ($(RT_PATCH_VERSION), 0) |
| 16 | ccflags-y += -DRT_PATCH_VERSION=$(RT_PATCH_VERSION) |
| 17 | endif |