[OE-core] [PATCH] Refuse to run bitbake on a kernel that is too old.
Burton, Ross
ross.burton at intel.com
Mon Oct 20 19:08:21 UTC 2014
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.
Ross
More information about the Openembedded-core
mailing list