]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
cmake: improve CMAKE_SYSTEM_PROCESSOR assignment in nativesdk
authorRoss Burton <ross.burton@intel.com>
Tue, 11 Oct 2016 12:30:42 +0000 (13:30 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 15 Oct 2016 09:01:42 +0000 (10:01 +0100)
commit4e1b9d590246d29a4ae49f421b2ef0cfdbad5dd1
tree40596645dcdc14c5dc103ac68e61e3851544c82c
parent62a01634c59e476f14ce21b64349642073c90356
cmake: improve CMAKE_SYSTEM_PROCESSOR assignment in nativesdk

The previous string manipulations would result in the wrong string being used
for machines such as intel-corei7-64 as the sysroot was split at the first
hyphen (so would result in corei7 instead of corei7-64).

Change the logic so that it looks for processor-distro-os and uses the whole of
the processor field.

(From OE-Core rev: ce24958d644f2218d5415be574a5b7e1ee8c9b2d)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake