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

View File

@ -66,9 +66,9 @@ c_link_args = [${@meson_array('TOOLCHAIN_OPTIONS', d)}]
cpp_link_args = [${@meson_array('TOOLCHAIN_OPTIONS', d)}]
[host_machine]
system = '${HOST_OS}'
cpu_family = '${HOST_ARCH}'
cpu = '${HOST_ARCH}'
system = '${BUILD_OS}'
cpu_family = '${BUILD_ARCH}'
cpu = '${BUILD_ARCH}'
endian = '${MESON_HOST_ENDIAN}'
[target_machine]