From f7ce953587a058ed7828fec988dcd779619a58f5 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Thu, 6 Feb 2020 03:08:11 +0800 Subject: [PATCH] Add OpenWrt x86_64 build --- .travis.yml | 17 ++++++++++++++++- tests/basic.sh | 1 + 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9871c79c02..83fdd897fb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/tests/basic.sh b/tests/basic.sh index a7306c6f0a..b9ec917570 100755 --- a/tests/basic.sh +++ b/tests/basic.sh @@ -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