Add new arm builds

This commit is contained in:
klzgrad 2021-05-13 23:52:14 +08:00
parent f61051c442
commit 0c7cdfd582
2 changed files with 52 additions and 12 deletions

View File

@ -195,27 +195,67 @@ jobs:
fail-fast: false
matrix:
include:
- arch: mipsel_24kc
target_cpu: mipsel
extra: 'mips_arch_variant="r2" mips_float_abi="soft" mips_tune="24kc" use_lld=false use_gold=false'
openwrt: 'target=ramips subtarget=rt305x abi=musl'
- arch: x86_64
target_cpu: x64
openwrt: 'target=x86 subtarget=64 abi=musl'
- arch: x86
target_cpu: x86
openwrt: 'target=x86 subtarget=generic abi=musl'
- arch: aarch64
- arch: aarch64_cortex-a53
target_cpu: arm64
extra: 'arm_version=0 arm_cpu="cortex-a53"'
openwrt: 'target=sunxi subtarget=cortexa53 abi=musl'
- arch: aarch64_cortex-a72
target_cpu: arm64
extra: 'arm_version=0 arm_cpu="cortex-a72"'
openwrt: 'target=mvebu subtarget=cortexa72 abi=musl'
- arch: aarch64_generic
target_cpu: arm64
openwrt: 'target=armvirt subtarget=64 abi=musl'
- arch: arm_cortex-a15_neon-vfpv4
- arch: arm_cortex-a5_vfpv4
target_cpu: arm
extra: 'arm_version=0 arm_cpu="cortex-a15" arm_fpu="neon-vfpv4" arm_float_abi="hard"'
openwrt: 'target=ipq806x subtarget=generic abi=musl_eabi'
extra: 'arm_version=0 arm_cpu="cortex-a5" arm_fpu="vfpv4" arm_float_abi="hard" arm_use_neon=false'
openwrt: 'target=at91 subtarget=sama5 abi=musl_eabi'
- arch: arm_cortex-a7_neon-vfpv4
target_cpu: arm
extra: 'arm_version=0 arm_cpu="cortex-a7" arm_fpu="neon-vfpv4" arm_float_abi="hard" arm_use_neon=true'
openwrt: 'target=sunxi subtarget=cortexa7 abi=musl_eabi'
- arch: arm_cortex-a8_neon
target_cpu: arm
extra: 'arm_version=0 arm_cpu="cortex-a8" arm_fpu="neon" arm_float_abi="hard" arm_use_neon=true'
openwrt: 'target=samsung subtarget=s5pv210 abi=musl_eabi'
- arch: arm_cortex-a8_vfpv3
target_cpu: arm
extra: 'arm_version=0 arm_cpu="cortex-a8" arm_fpu="vfpv3" arm_float_abi="hard" arm_use_neon=false'
openwrt: 'target=sunxi subtarget=cortexa8 abi=musl_eabi'
- arch: arm_cortex-a9
target_cpu: arm
extra: 'arm_version=0 arm_cpu="cortex-a9" arm_float_abi="soft" arm_use_neon=false'
openwrt: 'target=bcm53xx subtarget=generic abi=musl_eabi'
- arch: arm_cortex-a9_neon
target_cpu: arm
extra: 'arm_version=0 arm_cpu="cortex-a9" arm_fpu="neon" arm_float_abi="hard" arm_use_neon=true'
openwrt: 'target=imx6 subtarget=generic abi=musl_eabi'
- arch: arm_cortex-a9_vfpv3-d16
target_cpu: arm
extra: 'arm_version=0 arm_cpu="cortex-a9" arm_fpu="vfpv3-d16" arm_float_abi="hard" arm_use_neon=false'
openwrt: 'target=tegra subtarget=generic abi=musl_eabi'
- arch: arm_cortex-a15_neon-vfpv4
target_cpu: arm
extra: 'arm_version=0 arm_cpu="cortex-a15" arm_fpu="neon-vfpv4" arm_float_abi="hard" arm_use_neon=true'
openwrt: 'target=armvirt subtarget=32 abi=musl_eabi'
- arch: mipsel_24kc
target_cpu: mipsel
extra: 'mips_arch_variant="r2" mips_float_abi="soft" mips_tune="24kc" use_lld=false use_gold=false'
openwrt: 'target=ramips subtarget=rt305x abi=musl'
- arch: mipsel_74kc
target_cpu: mipsel
extra: 'mips_arch_variant="r2" mips_float_abi="soft" mips_tune="74kc" use_lld=false use_gold=false'
openwrt: 'target=ramips subtarget=rt3883 abi=musl'
- arch: mipsel_mips32
target_cpu: mipsel
extra: 'mips_arch_variant="r1" mips_float_abi="soft" use_lld=false use_gold=false'
openwrt: 'target=rb532 subtarget=generic abi=musl'
env:
EXTRA_FLAGS: |
target_cpu="${{ matrix.target_cpu }}"

View File

@ -10,10 +10,10 @@ if [ -d $sysroot/lib ]; then
fi
mkdir -p $sysroot
SDK_PATH=openwrt-sdk-$release-$target-${subtarget}_gcc-${gcc_ver}_${abi}.Linux-x86_64
if [ "$target" = bcm53xx ]; then
SDK_PATH=openwrt-sdk-$release-${target}_gcc-${gcc_ver}_${abi}.Linux-x86_64
fi
case "$target" in
rb532|bcm53xx|imx6|tegra|gemini|cns3xxx|kirkwood) SDK_PATH=openwrt-sdk-$release-${target}_gcc-${gcc_ver}_${abi}.Linux-x86_64;;
*) SDK_PATH=openwrt-sdk-$release-$target-${subtarget}_gcc-${gcc_ver}_${abi}.Linux-x86_64;;
esac
SDK_URL=https://downloads.openwrt.org/releases/$release/targets/$target/$subtarget/$SDK_PATH.tar.xz
rm -rf $SDK_PATH
curl $SDK_URL | tar xJf -