Thanks for adding this, now I am able to automatically detect the
version. It would sill be better if this define would be in
include/generated/uapi/linux/version.h and not in
include/generated/utsrelease.h, because utsrelease.h is not there in non
ubuntu kernel and then an include <generated/utsrelease.h>  will fail,
but I can include <linux/vermagic.h> which again includes
<generated/utsrelease.h> to circumvent this problem.

Instead of adding the ubuntu kernel version it would be better to add
the EXTRAVERSION, then this would also work for the kernel versions you
provide longterm support for.

-- 
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

Reply via email to