meson: fix build/host confusion for bbclass

Meson and Bitbake use different terminology for the build and host;
this provides the correct build machine info to Meson.

Signed-off-by: Adam C. Foltzer <acfoltzer@galois.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Adam C. Foltzer
2017-06-05 10:23:20 -07:00
committed by Martin Jansa
parent 163abe723d
commit 77eae90ef5
+3 -3
View File
@@ -66,9 +66,9 @@ c_link_args = [${@meson_array('TOOLCHAIN_OPTIONS', d)}]
cpp_link_args = [${@meson_array('TOOLCHAIN_OPTIONS', d)}] cpp_link_args = [${@meson_array('TOOLCHAIN_OPTIONS', d)}]
[host_machine] [host_machine]
system = '${HOST_OS}' system = '${BUILD_OS}'
cpu_family = '${HOST_ARCH}' cpu_family = '${BUILD_ARCH}'
cpu = '${HOST_ARCH}' cpu = '${BUILD_ARCH}'
endian = '${MESON_HOST_ENDIAN}' endian = '${MESON_HOST_ENDIAN}'
[target_machine] [target_machine]