mirror of
https://git.yoctoproject.org/poky
synced 2026-04-22 06:32:12 +02:00
meson: write correct host endian into SDK cross file
Meson doesn't ignore this but will emit a warning, so write the correct value. (From OE-Core rev: 1239157805a4c363da853de6db05c53083b01189) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c2556c44ec
commit
5a0bed5be6
@@ -1,13 +1,20 @@
|
||||
include meson.inc
|
||||
|
||||
inherit nativesdk
|
||||
inherit siteinfo
|
||||
|
||||
SRC_URI += "file://meson-setup.py \
|
||||
file://meson-wrapper"
|
||||
|
||||
# both are required but not used by meson
|
||||
MESON_SDK_ENDIAN = "bogus-endian"
|
||||
MESON_TARGET_ENDIAN = "bogus-endian"
|
||||
def meson_endian(prefix, d):
|
||||
arch, os = d.getVar(prefix + "_ARCH"), d.getVar(prefix + "_OS")
|
||||
sitedata = siteinfo_data_for_machine(arch, os, d)
|
||||
if "endian-little" in sitedata:
|
||||
return "little"
|
||||
elif "endian-big" in sitedata:
|
||||
return "big"
|
||||
else:
|
||||
bb.fatal("Cannot determine endianism for %s-%s" % (arch, os))
|
||||
|
||||
MESON_TOOLCHAIN_ARGS = "${BUILDSDK_CC_ARCH}${TOOLCHAIN_OPTIONS}"
|
||||
MESON_C_ARGS = "${MESON_TOOLCHAIN_ARGS} ${BUILDSDK_CFLAGS}"
|
||||
@@ -44,7 +51,7 @@ cpp_link_args = @LDFLAGS
|
||||
system = '${SDK_OS}'
|
||||
cpu_family = '${SDK_ARCH}'
|
||||
cpu = '${SDK_ARCH}'
|
||||
endian = '${MESON_SDK_ENDIAN}'
|
||||
endian = '${@meson_endian("SDK", d)}'
|
||||
EOF
|
||||
|
||||
install -d ${D}${SDKPATHNATIVE}/post-relocate-setup.d
|
||||
|
||||
Reference in New Issue
Block a user