naiveproxy/src/get-sysroot.sh

22 lines
531 B
Bash
Raw Permalink Normal View History

2018-01-25 18:06:30 +03:00
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
}