#if LINUX_VERSION_CODE <= KERNEL_VERSION(4,1,17)--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/6dfd7521-cf7e-48b4-b6fc-5ba2d1461d36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Robert: I'm hoping you might have some advice for this issue I'm encountering.
Peter's pull request for Adafruit_BBIO uses LINUX_VERSION_CODE to determine if the kernel is 4.1 or newer:
https://github.com/adafruit/adafruit-beaglebone-io-python/pull/96#issuecomment-222343880
When I build Adafruit_BBIO, LINUX_VERSION_CODE is set to old version 200711. It appears to come from:
/usr/include/linux/version.h:#define LINUX_VERSION_CODE 200711
/usr/src/linux-headers-4.1.17-ti-rt-r46/include/generated/uapi/linux/version.h:#define LINUX_VERSION_CODE 262417
I'm using image "BeagleBoard.org Debian Image 2016-02-07" with Linux kernel 4.1.25-ti-r62 and Debian 8.4. "/usr/include/linux/version.h" appears to come from linux-libc-dev:armhf 3.16.7-ckt25-2. "/usr/src/linux-headers-4.1.17-ti-rt-r46/include/generated/uapi/linux/version.h" comes from linux-headers-4.1.17-ti-rt-r46.
What would be the proper way to update /usr/include/linux/version.h to reflect 4.1+?