@ -36,6 +36,22 @@ MESON_BUILD_DIR:=$(PKG_BUILD_DIR)/openwrt-build
MESON_VARS :=
MESON_ARGS :=
i f n e q ( $( findstring i 386,$ ( CONFIG_ARCH ) ) , )
MESON_ARCH := "x86"
e l s e i f n e q ( $( findstring powerpc 64,$ ( CONFIG_ARCH ) ) , )
MESON_ARCH := "ppc64"
e l s e i f n e q ( $( findstring powerpc ,$ ( CONFIG_ARCH ) ) , )
MESON_ARCH := "ppc"
e l s e i f n e q ( $( findstring mips 64el ,$ ( CONFIG_ARCH ) ) , )
MESON_ARCH := "mips64"
e l s e i f n e q ( $( findstring mipsel ,$ ( CONFIG_ARCH ) ) , )
MESON_ARCH := "mips"
e l s e i f n e q ( $( findstring armeb ,$ ( CONFIG_ARCH ) ) , )
MESON_ARCH := "arm"
e l s e
MESON_ARCH := $( CONFIG_ARCH)
e n d i f
d e f i n e M e s o n
$( 2) $( STAGING_DIR_HOST) /bin/$( PYTHON) $( MESON_DIR) /meson.py $( 1)
e n d e f
@ -65,7 +81,7 @@ define Meson/CreateCrossFile
-e " s|@CFLAGS@| $( foreach FLAG,$( TARGET_CFLAGS) $( EXTRA_CFLAGS) $( TARGET_CPPFLAGS) $( EXTRA_CPPFLAGS) ,'$(FLAG)' ,) | " \
-e " s|@CXXFLAGS@| $( foreach FLAG,$( TARGET_CXXFLAGS) $( EXTRA_CXXFLAGS) $( TARGET_CPPFLAGS) $( EXTRA_CPPFLAGS) ,'$(FLAG)' ,) | " \
-e " s|@LDFLAGS@| $( foreach FLAG,$( TARGET_LDFLAGS) $( EXTRA_LDFLAGS) ,'$(FLAG)' ,) | " \
-e " s|@ARCH@| $( ARCH) | " \
-e " s|@ARCH@| $( MESON_ ARCH) | " \
-e " s|@CPU@| $( CONFIG_TARGET_SUBTARGET) | " \
-e " s|@ENDIAN@| $( if $( CONFIG_BIG_ENDIAN) ,big,little) | " \
< $( MESON_DIR) /openwrt-cross.txt.in \