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

Enrico Scholz enrico.scholz at sigma-chemnitz.de
Tue Oct 21 10:03:38 UTC 2014


<jeffrey.honig-CWA4WttNNZF54TAoqtyWWQ at public.gmane.org> writes:

> Bitbake.conf now specifies OLDEST_KERNEL to insure that the SDK is
> not run on a kernel that is not supported by a component of the SDK
> (i.e. glibc).

OLDEST_KERNEL is used in glibc recipe only; it would be much better
to build SDK's glibc with an --enable-kernel matching the target
distribution.  E.g. by setting a special 'OLDEST_KERNEL_nativesdk'
variable.

> +    # Check that our kernel will work for crosssdk

This check should be made overridable for environments which do not
build SDKs.

> +    if os.uname()[0] == "Linux" and LooseVersion(os.uname()[2]) < LooseVersion(d.getVar('OLDEST_KERNEL')):

This check does not work when you build e.g. in an LXC container.  You
could define something like

| SDK_UNAME ??= "${@' '.join(os.uname())}"

and do the checks on this.


Enrico



More information about the Openembedded-core mailing list