mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
config/functions: add cross-compile property support
This commit is contained in:
parent
720a3a4997
commit
15c11d0f7d
@ -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