mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 14:26:09 +03:00
22 lines
531 B
Bash
22 lines
531 B
Bash
|
get_sysroot() {
|
||
|
if [ "$OPENWRT_FLAGS" ]; then
|
||
|
eval "$OPENWRT_FLAGS"
|
||
|
echo "out/sysroot-build/openwrt/$release/$arch"
|
||
|
return
|
||
|
fi
|
||
|
eval "$EXTRA_FLAGS"
|
||
|
if [ ! "$target_sysroot" ]; then
|
||
|
local sysroot_type
|
||
|
case "$target_cpu" in
|
||
|
x64) sysroot_type=amd64;;
|
||
|
x86) sysroot_type=i386;;
|
||
|
arm64) sysroot_type=arm64;;
|
||
|
arm) sysroot_type=arm;;
|
||
|
mipsel) sysroot_type=mips;;
|
||
|
esac
|
||
|
if [ "$sysroot_type" ]; then
|
||
|
echo "out/sysroot-build/sid/sid_${sysroot_type}_staging"
|
||
|
fi
|
||
|
fi
|
||
|
}
|