On Sun, May 29, 2016 at 12:58 AM, Drew Fustini <[email protected]> wrote:

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

OH yuck.. ;)

I've always thrown linux-libc-dev into the great /dev/null

Since the version isn't appended in the final export:

https://packages.debian.org/jessie/armhf/linux-libc-dev/filelist

So, maybe..

Step 1:

update deb-pkg to tie the "4.1.25-ti-r62" to via -$version here:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/scripts/package/builddeb?id=refs/tags/v4.7-rc1#n100

then just do a directory symlink like:

/usr/share/linux-libc-dev/4.1.25-ti-r62/ -> /usr/include/

(so we can easily install multiple linux-libc-dev)..

The only problem, when debian pushes a kernel update, it'll wipe
out linux-libc-dev..

....

Personally i wish Adafruit_BBIO just had a "export BUILD=4.1.x+" override ;)

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYi8qDJXgDekkDo3P1yyK%3DYdhAVddZV5ELvn7JfY8CZfrQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to