Merge pull request #3283 from MilhouseVH/le90_meson_props_support

config/functions: add cross-compile property support
This commit is contained in:
Jernej Škrabec
2019-02-08 18:15:12 +01:00
committed by GitHub

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
}