Comment 9 for bug 1327619

Revision history for this message
Hauke (hauke-m) wrote :

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.