@ -52,6 +52,13 @@ else
MESON_ARCH := $( CONFIG_ARCH)
e n d i f
# this is undefined for just x64_64
i f e q ( $( origin CPU_TYPE ) , u n d e f i n e d )
MESON_CPU := "generic"
e l s e
MESON_CPU := " $( CPU_TYPE) $( if $( CPU_SUBTYPE) ,+$( CPU_SUBTYPE) ) "
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
@ -81,7 +88,7 @@ define Meson/CreateCrossFile
-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@| $( MESON_ARCH) | " \
-e " s|@CPU@| $( CONFIG_TARGET_SUBTARGET) | " \
-e " s|@CPU@| $( MESON_CPU) ) | " \
-e " s|@ENDIAN@| $( if $( CONFIG_BIG_ENDIAN) ,big,little) | " \
< $( MESON_DIR) /openwrt-cross.txt.in \
> $( 1)