[OE-core] [PATCH 1/9] meson: add a recipe and class from meta-oe

Andre McCurdy armccurdy at gmail.com
Thu Dec 7 19:27:17 UTC 2017


On Fri, Nov 17, 2017 at 4:02 AM, Alexander Kanavin
<alexander.kanavin at linux.intel.com> wrote:
> +
> +MESON_HOST_ENDIAN = "${@bb.utils.contains('SITEINFO_ENDIANNESS', 'be', 'big', 'little', d)}"

SITEINFO_ENDIANNESS returns the endianness of the target, not the
host. Perhaps this is just a confusingly named variable though? (it
doesn't make much sense to expect the user to tell the build system
what endianness it's running on, the build system should be able to
determine that on it's own).

> +MESON_TARGET_ENDIAN = "${@bb.utils.contains('TUNE_FEATURES', 'bigendian', 'big', 'little', d)}"

This won't work for all targets (e.g. PowerPC is big endian but
doesn't include "bigendian" in TUNE_FEATURES). To determine the
endianness of the target, use SITEINFO_ENDIANNESS instead.



More information about the Openembedded-core mailing list