meson: Strip quotes from BR2_ENDIAN
authorGleb Mazovetskiy <glex.spb@gmail.com>
Wed, 11 Mar 2020 18:38:33 +0000 (18:38 +0000)
committerYann E. MORIN <yann.morin.1998@free.fr>
Wed, 11 Mar 2020 21:51:15 +0000 (22:51 +0100)
commit92eca65ddf9a27a0919d01d03e441d84740fa7b3
treee17d5c0b68b312be0356ce08fee9bcb396e80af4
parentb73cde8ff7c8b673c1108a8ae6f4f8838d1123d4
meson: Strip quotes from BR2_ENDIAN

The values in the cross-compilation file are expected to be quoted with
single quotes, which we have in our template.

However, the endian value we are injecting comes from Kconfig, so it is
double-quoted, and those quotes end up in the cross-compilation files we
generate (the internal one, and the SDK one):

    endian = '"little"'

So qstrip the value before we inject it.

Propagate the fix to the two generated files by using the same variable
HOST_MESON_TARGET_ENDIAN in both cases, rather than replicating the
(flawed) logic.

While at it, also use the common GCC_TARGET_CPU variable for the SDK
file too.

Signed-off-by: Gleb Mazovetskiy <glex.spb@gmail.com>
Reviewed-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/meson/meson.mk
package/pkg-meson.mk