![James Hilliard](/assets/img/avatar_default.png)
As explained in [0], meson will try on its own to decide whether it can run what it builds. If it happens that the host and target CPUs are "compatible", that test may fail and meson may believe it can run what it builds. Override that test by using needs_exe_wrapper=true, and not defining an actual exe_wrapper. [0] https://mesonbuild.com/Cross-compilation.html Signed-off-by: James Hilliard <james.hilliard1@gmail.com> [yann.morin.1998@free.fr: - split in its own patch - improve commit log ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
25 lines
625 B
Plaintext
25 lines
625 B
Plaintext
# Note: Buildroot's and Meson's terminologies differ about the meaning
|
|
# of 'build', 'host' and 'target':
|
|
# - Buildroot's 'host' is Meson's 'build'
|
|
# - Buildroot's 'target' is Meson's 'host'
|
|
|
|
[binaries]
|
|
c = '@TARGET_CROSS@gcc'
|
|
cpp = '@TARGET_CROSS@g++'
|
|
ar = '@TARGET_CROSS@ar'
|
|
strip = '@TARGET_CROSS@strip'
|
|
pkgconfig = '@HOST_DIR@/usr/bin/pkg-config'
|
|
|
|
[properties]
|
|
needs_exe_wrapper = true
|
|
c_args = [@TARGET_CFLAGS@]
|
|
c_link_args = [@TARGET_LDFLAGS@]
|
|
cpp_args = [@TARGET_CXXFLAGS@]
|
|
cpp_link_args = [@TARGET_LDFLAGS@]
|
|
|
|
[host_machine]
|
|
system = 'linux'
|
|
cpu_family ='@TARGET_ARCH@'
|
|
cpu = '@TARGET_CPU@'
|
|
endian = '@TARGET_ENDIAN@'
|