summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2020-07-21 12:52:11 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-07-22 12:45:56 +0100
commit3afe7395eedc02aa8f680f606e6bd4b6e57eade8 (patch)
tree9255a550682aaaebf39aa16b59db1d17c237d68a /meta/classes/package.bbclass
parent5843460575b377a44dd40b9e42e3b1add65b1ef0 (diff)
downloadpoky-3afe7395eedc02aa8f680f606e6bd4b6e57eade8.tar.gz
classes/cmake: Fix host detection
Fixes the class to use HOST_OS and HOST_ARCH to set the cmake SYSTEM variables. The HOST variables should be used instead of TARGET_OS/TARGET_ARCH because we want to control how cmake compiles for where the package is going to run (the host), not what it will be generating output for (the target). The distinction is only really relevant when building canadian cross recipes. Also fix up the host OS detection to account for MinGW by setting CMAKE_SYSTEM_NAME to "Windows". This eliminates the need for meta-mingw to patch this in all the cmake recipes it builds. (From OE-Core rev: 01245db2893e39ffb5d4a00e4689f048d0698974) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package.bbclass')
0 files changed, 0 insertions, 0 deletions