include meson.inc inherit nativesdk inherit siteinfo SRC_URI += "file://meson-setup.py \ file://meson-wrapper" 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)) # The cross file logic is similar but not identical to that in meson.bbclass, # since it's generating for an SDK rather than a cross-compile. Important # differences are: # - We can't set vars like CC, CXX, etc. yet because they will be filled in with # real paths by meson-setup.sh when the SDK is extracted. # - Some overrides aren't needed, since the SDK injects paths that take care of # them. do_install_append() { install -d ${D}${datadir}/meson cat >${D}${datadir}/meson/meson.cross.template <