mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge pull request #3285 from MilhouseVH/le90_meson_props_backport
config/functions: add cross-compile property support [backport]
This commit is contained in:
commit
4fb58fc234
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user