]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
classes/nativesdk: set SDK_OLDEST_KERNEL appropriately paule/sdk-fixes
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 1 Nov 2016 02:07:15 +0000 (15:07 +1300)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 1 Nov 2016 03:22:33 +0000 (16:22 +1300)
commitf3635dee8a440ebe0e796c2b3ca3c6bb0ee35af9
tree9f0e1f4892812f5318bb70cdf57742c731df54b8
parentea8c34f8572f12b3fdf6f7bb9512b838a294d986
classes/nativesdk: set SDK_OLDEST_KERNEL appropriately

SDK_OLDEST_KERNEL currently only controls the check on SDK installation,
however as with OLDEST_KERNEL it should be controlling the OLDEST_KERNEL
value for building glibc used in the SDK. Thus, set it in
nativesdk.bbclass. This means we need to move the default to
bitbake.conf so that it can be seen in both places.

Also set a more reasonable default for SDK_OLDEST_KERNEL for x86/x86-64 as
glibc 2.24 still supports back to 2.6.32 there and there are still
people wanting to build SDKs that will install on older distros (e.g.
CentOS 6). However it's not possible to set this with overrides since
there aren't any for the SDK_ARCH, however we can instead set the variable
from conf files in conf/machine-sdk especially as there is now a soft
default for SDKMACHINE.

Fixes [YOCTO #10561].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
meta/classes/nativesdk.bbclass
meta/classes/populate_sdk_base.bbclass
meta/conf/bitbake.conf
meta/conf/machine-sdk/i586.conf
meta/conf/machine-sdk/i686.conf
meta/conf/machine-sdk/x86_64.conf