Bug 6856 - sanity.bbclass should check OLDEST_KERNEL
Summary: sanity.bbclass should check OLDEST_KERNEL
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: configuration (show other bugs)
Version: 1.7
Hardware: All Multiple
: Medium minor
Target Milestone: 1.8
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-10-17 19:53 UTC by Jeffrey Honig
Modified: 2015-02-17 15:05 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Honig 2014-10-17 19:53:52 UTC
meta/conf/bitbake.conf defines OLDEST_KERNEL (currently 2.6.32), however running bitbake on a system with this kernel version will not generate an error until gcc-cross-initial-sdk do_install step.  It would be much more user-friendly to check and fail in sanity.bb

A pull request will be forthcoming.

Thanks.

Jeff
Comment 1 Jeffrey Honig 2014-10-17 20:14:59 UTC
I mean sanity.bbclass, not sanity.bb.  I've fixed the description but am unable to edit my comment.
Comment 2 Richard Purdie 2014-10-23 14:45:33 UTC
There seems to be some confusion with this bug. OLDEST_KERNEL affects the oldest kernel either the target binaries or the SDK will run on. Neither should be affected by the kernel of the *build* system which is the kind of tests sanity.bbclass would perform. Could you describe the problem you're trying to solve in more detail please.
Comment 3 Richard Purdie 2014-12-04 16:01:09 UTC
No response to the question so assuming there was some confusion and the issue wasn't correctly described. If a better description is forthcoming, please reopen.
Comment 4 Jeffrey Honig 2014-12-04 16:27:21 UTC
The problem is that we can build a builtools tarball on a system with an older kernel, but are unable to use it on that system.  There should at least be a warning from the build system that the generated SDK is not usable on the build system.  The only indication is somewhat obscure message (FATAL: kernel too old) when you attempt to use the SDK. 

Additional there could be a check in the SDK installer that provides a more descriptive message.

Thanks.

Jeff