| items = d.getVar(var).split() |
| return repr(items[0] if len(items) == 1 else items) |
| # Map our ARCH values to what Meson expects: |
| # http://mesonbuild.com/Reference-tables.html#cpu-families |
| def meson_cpu_family(var, d): |
| elif arch == 'powerpc64' or arch == 'powerpc64le': |
| elif arch == 'aarch64_be': |
| elif re.match(r"i[3-6]86", arch): |
| elif arch == "microblazeel": |
| # Map our OS values to what Meson expects: |
| # https://mesonbuild.com/Reference-tables.html#operating-system-names |
| def meson_operating_system(var, d): |
| # avoid e.g 'linux-gnueabi' |
| 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: |
| elif "endian-big" in sitedata: |
| bb.fatal("Cannot determine endianism for %s-%s" % (arch, os)) |