[OE-core] [PATCH] Refuse to run bitbake on a kernel that is too old.

Mark Hatle mark.hatle at windriver.com
Mon Oct 20 23:30:41 UTC 2014


On 10/21/14, 3:08 AM, Burton, Ross wrote:
> On 20 October 2014 19:30,  <jeffrey.honig at windriver.com> wrote:
>> +    # Check that our kernel will work for crosssdk
>> +    if os.uname()[0] == "Linux" and LooseVersion(os.uname()[2]) < LooseVersion(d.getVar('OLDEST_KERNEL')):
>> +        status.addresult("The system requires a kernel of at least %s to run\n" % d.getVar('OLDEST_KERNEL'))
>> +
>
> The OLDEST_KERNEL documentation says:
>
>                      Declares the oldest version of the Linux kernel that the
>                      produced binaries must support.
>                      This variable is passed into the build of the Embedded
>                      GNU C Library (<filename>eglibc</filename>).
>
> So surely checking this value at *runtime in bitbake* isn't correct.

The generated SDK has the same limitation as the runtime since we moved to 
building the SDK for things like the buildtools-tarball.

While it -might- work on older kernels, I think we do need to limit the version 
we support to match the SDK and related, otherwise we will have issues.  (Do we 
also need to add this to the SDK .sh installer script?  probably.)

--Mark

> Ross
>




More information about the Openembedded-core mailing list