mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +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() {
|
create_meson_conf() {
|
||||||
local endian root
|
local endian root properties
|
||||||
case "$1" in
|
case "$1" in
|
||||||
target|init) endian="little"
|
target|init) endian="little"
|
||||||
root="$SYSROOT_PREFIX/usr"
|
root="$SYSROOT_PREFIX/usr"
|
||||||
@ -342,6 +342,8 @@ create_meson_conf() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
properties="PKG_MESON_PROPERTIES_${1^^}"
|
||||||
|
|
||||||
cat > $2 <<EOF
|
cat > $2 <<EOF
|
||||||
[binaries]
|
[binaries]
|
||||||
c = '$CC'
|
c = '$CC'
|
||||||
@ -361,6 +363,7 @@ endian = '$endian'
|
|||||||
root = '$root'
|
root = '$root'
|
||||||
$(python -c "import os; print('c_args = {}'.format([x for x in os.getenv('CFLAGS').split()]))")
|
$(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()]))")
|
$(python -c "import os; print('c_link_args = {}'.format([x for x in os.getenv('LDFLAGS').split()]))")
|
||||||
|
${!properties}
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user