package/pkg-meson: fix meson cpu_family format
authorJames Hilliard <james.hilliard1@gmail.com>
Mon, 25 Feb 2019 00:52:45 +0000 (08:52 +0800)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 25 Feb 2019 21:12:28 +0000 (22:12 +0100)
meson requires a custom cpu_family format
https://mesonbuild.com/Reference-tables.html#cpu-families

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Reviewed-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/pkg-meson.mk

index a637299476c9bdff756c1238ff321e9f856474f2..886fcf7205a90617a9b9a27682790c321a260ee1 100644 (file)
@@ -64,7 +64,7 @@ define $(2)_CONFIGURE_CMDS
        rm -rf $$($$(PKG)_SRCDIR)/build
        mkdir -p $$($$(PKG)_SRCDIR)/build
        sed -e "s%@TARGET_CROSS@%$$(TARGET_CROSS)%g" \
-           -e "s%@TARGET_ARCH@%$$(ARCH)%g" \
+           -e "s%@TARGET_ARCH@%$$(HOST_MESON_TARGET_CPU_FAMILY)%g" \
            -e "s%@TARGET_CPU@%$$(GCC_TARGET_CPU)%g" \
            -e "s%@TARGET_ENDIAN@%$$(call LOWERCASE,$$(BR2_ENDIAN))%g" \
            -e "s%@TARGET_CFLAGS@%$$(HOST_MESON_SED_CFLAGS)%g" \