I saw that, but I am unable to parse this in the C preprocessor. I could do something like this:
#if UTS_RELEASE == "3.15.0-5-generic" /* some code */ #else /some code */ #endif but that does not scale. Having something like: #define UTS_RELEASE_MINOR 5 would help, the rest is already in include/generated/uapi/linux/version.h -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1327619 Title: kernel version detection in module build To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1327619/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs