I was wondering someone could help me the following problem:

I want to add some device drivers to the kernel build, but the kernel configuration in kernel version 3 is different from the configuration in kernel version 4.

I was looking for a parameter that I could use inside an .mk file to find which kernel version I am building for.

So far with trial and error (unfortunately I could not find specific documentation) I found that I can test reliably a variable that includes both kernel version and patchlevel as follows:

LINUX_4_0||LINUX_4_1||LINUX_4_2||LINUX_4_3||LINUX_4_4||LINUX_4_5

... and so on.

However all I would need is something like LINUX_4 or LINUX_3

otherwise I would have to list every possible patchlevel (present and future to allow the build when patchlevel changes).

Thank you in advance,


Mauro

_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to