96boards / meta-96boards

OpenEmbedded BSP Layer for the 96boards.org boards
MIT License
41 stars 59 forks source link

linux-generic: set PKGV from the kernel's Makefile #231

Closed fboudra closed 6 years ago

fboudra commented 6 years ago

Since PV is parsed upfront by bitbake, we can't set the accurate kernel version (unless, we post process the kernel source outside of OE, which increases the build time). PKGV can be set dynamically to match the kernel version. A python function will parse the Makefile and will set PKGV accordingly.

Signed-off-by: Fathi Boudra fathi.boudra@linaro.org

koenkooi commented 6 years ago

It's missing sublevel, so you only get 4.15 and not 4.15.9

fboudra commented 6 years ago

@koenkooi yes, it's on purpose. Do you think we should add it?

koenkooi commented 6 years ago

Yes, in case we want to test a linux-stable or aosp kernel

fboudra commented 6 years ago

@koenkooi I made the changes and included sublevel. Now, I'm pondering to drop SRCPV and use SRCREV (10 chars) instead of the gitAUTOINC string?