mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 06:16:30 +03:00
Add OpenWRT builds
This commit is contained in:
parent
8072e5c86b
commit
6da81f8c25
16
src/build.sh
16
src/build.sh
@ -34,6 +34,7 @@ fi
|
|||||||
flags="$flags"'
|
flags="$flags"'
|
||||||
is_clang=true
|
is_clang=true
|
||||||
linux_use_bundled_binutils=false
|
linux_use_bundled_binutils=false
|
||||||
|
use_sysroot=false
|
||||||
|
|
||||||
fatal_linker_warnings=false
|
fatal_linker_warnings=false
|
||||||
treat_warnings_as_errors=false
|
treat_warnings_as_errors=false
|
||||||
@ -62,6 +63,21 @@ if [ "$(uname)" = Linux ]; then
|
|||||||
ozone_auto_platforms=false
|
ozone_auto_platforms=false
|
||||||
ozone_platform="headless"
|
ozone_platform="headless"
|
||||||
ozone_platform_headless=true'
|
ozone_platform_headless=true'
|
||||||
|
if [ ! "$target_sysroot" ]; then
|
||||||
|
eval "$EXTRA_FLAGS"
|
||||||
|
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
|
||||||
|
flags="$flags"'
|
||||||
|
target_sysroot="//out/sysroot-build/sid/sid_'"$sysroot_type"'_staging"'
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf "./$out"
|
rm -rf "./$out"
|
||||||
|
@ -58,6 +58,9 @@ cp() {
|
|||||||
[ "${1##*/}" = libdbus-1-3-symbols ] && return
|
[ "${1##*/}" = libdbus-1-3-symbols ] && return
|
||||||
/bin/cp "$@"
|
/bin/cp "$@"
|
||||||
}
|
}
|
||||||
|
tar() {
|
||||||
|
echo tar "$@"
|
||||||
|
}
|
||||||
|
|
||||||
trap "cd $PWD; rm strip *-strip" EXIT
|
trap "cd $PWD; rm strip *-strip" EXIT
|
||||||
|
|
||||||
|
@ -10,32 +10,17 @@ esac
|
|||||||
eval "$EXTRA_FLAGS"
|
eval "$EXTRA_FLAGS"
|
||||||
|
|
||||||
build_sysroot() {
|
build_sysroot() {
|
||||||
local lower="$(echo "$1" | tr '[:upper:]' '[:lower:]')"
|
|
||||||
./build/linux/sysroot_scripts/sysroot-creator-sid-naive.sh "BuildSysroot$1"
|
./build/linux/sysroot_scripts/sysroot-creator-sid-naive.sh "BuildSysroot$1"
|
||||||
rm -rf "./build/linux/debian_sid_$lower-sysroot"
|
|
||||||
mkdir "./build/linux/debian_sid_$lower-sysroot"
|
|
||||||
tar xf "./out/sysroot-build/sid/debian_sid_${lower}_sysroot.tar.xz" -C "./build/linux/debian_sid_$lower-sysroot"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$ARCH" = Linux ]; then
|
if [ "$ARCH" = Linux ]; then
|
||||||
build_sysroot Amd64
|
|
||||||
case "$target_cpu" in
|
case "$target_cpu" in
|
||||||
arm64)
|
x64) build_sysroot Amd64;;
|
||||||
build_sysroot ARM64
|
x86) build_sysroot I386;;
|
||||||
;;
|
arm64) build_sysroot ARM64;;
|
||||||
arm)
|
arm) build_sysroot ARM;;
|
||||||
build_sysroot I386
|
mips64el) build_sysroot Mips64el;;
|
||||||
build_sysroot ARM
|
mipsel) build_sysroot Mips;;
|
||||||
;;
|
|
||||||
x86)
|
|
||||||
build_sysroot I386
|
|
||||||
;;
|
|
||||||
mips64el)
|
|
||||||
build_sysroot Mips64el
|
|
||||||
;;
|
|
||||||
mipsel)
|
|
||||||
build_sysroot I386
|
|
||||||
build_sysroot Mips
|
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user