Add OpenWrt x86_64 build

This commit is contained in:
klzgrad 2020-02-06 03:08:11 +08:00
parent 1973c0d880
commit f7ce953587
2 changed files with 17 additions and 1 deletions

View File

@ -23,7 +23,22 @@ matrix:
- name: "openwrt-mipsel_24kc"
os: linux
dist: bionic
env: EXTRA_FLAGS='target_cpu="mipsel" mips_arch_variant="r2" mips_float_abi="soft" mips_tune="24kc" use_allocator="none" use_allocator_shim=false is_openwrt=true ldso_path="/lib/ld-musl-mipsel-sf.so.1" use_lld=false use_gold=false' OPENWRT_FLAGS='arch=mipsel_24kc release=19.07.1 gcc_ver=7.5.0 target=ramips subtarget=rt305x'
env: EXTRA_FLAGS='
target_cpu="mipsel"
mips_arch_variant="r2" mips_float_abi="soft" mips_tune="24kc"
use_allocator="none" use_allocator_shim=false
use_lld=false use_gold=false
ldso_path="/lib/ld-musl-mipsel-sf.so.1"
custom_toolchain="//build/toolchain/linux:clang_mipsel_openwrt"'
OPENWRT_FLAGS='arch=mipsel_24kc release=19.07.1 gcc_ver=7.5.0 target=ramips subtarget=rt305x'
- name: "openwrt-x86_64"
os: linux
dist: bionic
env: EXTRA_FLAGS='
target_cpu="x64"
use_allocator="none" use_allocator_shim=false
custom_toolchain="//build/toolchain/linux:clang_x64_openwrt"'
OPENWRT_FLAGS='arch=x86_64 release=19.07.1 gcc_ver=7.5.0 target=x86 subtarget=64'
- name: "osx"
os: osx
osx_image: xcode10.2

View File

@ -9,6 +9,7 @@ if [ "$(uname)" = Linux ]; then
case "$target_cpu" in
arm64) naive="qemu-aarch64 -L src/$sysroot $naive";;
arm) naive="qemu-arm -L src/$sysroot $naive";;
x64) naive="qemu-x86_64 -L src/$sysroot $naive";;
x86) naive="qemu-i386 -L src/$sysroot $naive";;
mipsel) naive="qemu-mipsel -L src/$sysroot $naive";;
esac