Merge pull request #3285 from MilhouseVH/le90_meson_props_backport

config/functions: add cross-compile property support [backport]
This commit is contained in:
CvH 2019-02-17 22:00:38 +01:00 committed by GitHub
commit 4fb58fc234
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -332,7 +332,7 @@ setup_toolchain() {
}
create_meson_conf() {
local endian root
local endian root properties
case "$1" in
target|init) endian="little"
root="$SYSROOT_PREFIX/usr"
@ -342,6 +342,8 @@ create_meson_conf() {
;;
esac
properties="PKG_MESON_PROPERTIES_${1^^}"
cat > $2 <<EOF
[binaries]
c = '$CC'
@ -361,6 +363,7 @@ endian = '$endian'
root = '$root'
$(python -c "import os; print('c_args = {}'.format([x for x in os.getenv('CFLAGS').split()]))")
$(python -c "import os; print('c_link_args = {}'.format([x for x in os.getenv('LDFLAGS').split()]))")
${!properties}
EOF
}