]> code.ossystems Code Review - openembedded-core.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 08:50:34 +0000 (09:50 +0100)
commitce24958d644f2218d5415be574a5b7e1ee8c9b2d
tree9c93a1a1b024a976e0e9f2504ae007e993463f53
parent2df2372a31b02eab933e4a7aa6d5f8ca48e02c04
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.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake