add a new test repo, modify some GCC configs, and upgrade crosstool-ng to 1.25.0

This commit is contained in:
Chen Tao 2022-06-19 01:57:50 +09:00
parent 0ea32fc1ed
commit acdeffa51b
4 changed files with 44 additions and 55 deletions

View File

@ -869,7 +869,7 @@ jobs:
openssl_arg: "",
C: "no",
C_arg: "",
C-Plus-Plus: "yes",
C-Plus-Plus: "no",
C-Plus-Plus_arg: "",
fmt: "no",
fmt_arg: "",
@ -877,6 +877,8 @@ jobs:
cpython_arg: "",
mbedtls: "yes",
mbedtls_arg: "",
ardupilot: "yes",
ardupilot_arg: "",
}
steps:
- name: checkout code
@ -986,6 +988,17 @@ jobs:
cd ..
rm -rf mbedtls
# Updated on 19/6/2022
- name: ardupilot build test
if: ${{ matrix.arch_name.ardupilot == 'yes' }}
run: |
git clone --depth 1 --branch Copter-4.2.1 --recursive https://github.com/ArduPilot/ardupilot.git
cd ardupilot
docker run --rm dockcross/${{ matrix.arch_name.image }} > ./dockcross && chmod +x ./dockcross
./dockcross bash -c "python -m pip install empy pexpect future && git config --global --add safe.directory '*' && ./waf configure --toolchain=/usr/xcc/arm-none-eabi/bin/arm-none-eabi --debug --board CubeBlack && ./waf copter"
cd ..
rm -rf ardupilot
- name: deploy
if: github.ref == 'refs/heads/master'
run: |

View File

@ -4,12 +4,12 @@ LABEL maintainer="Chen Tao t.clydechen@gmail.com"
# This is for armv7e-m+fp bare metal
# Crosstool-ng version 1.25.0-rc1
ENV CT_VERSION 1e47ca1e70497a38641b9025998a6333265fe84e
# Crosstool-ng version 1.25.0
ENV CT_VERSION 8fa98eeeff9bc53478d97ef722f366fea151ae64
#include "common.crosstool"
ENV CROSS_TRIPLE arm-none-eabihf
ENV CROSS_TRIPLE arm-none-eabi
ENV CROSS_ROOT ${XCC_PREFIX}/${CROSS_TRIPLE}
ENV AS=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-as \
@ -24,7 +24,7 @@ ENV AS=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-as \
COPY Toolchain.cmake ${CROSS_ROOT}/
ENV CMAKE_TOOLCHAIN_FILE ${CROSS_ROOT}/Toolchain.cmake
ENV PKG_CONFIG_PATH /usr/lib/arm-none-eabihf/pkgconfig
ENV PKG_CONFIG_PATH /usr/lib/arm-none-eabi/pkgconfig
# Linux kernel cross compilation variables
ENV PATH ${PATH}:${CROSS_ROOT}/bin

View File

@ -2,7 +2,7 @@ set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_SYSTEM_VERSION 1)
set(CMAKE_SYSTEM_PROCESSOR arm)
set(cross_triple "arm-none-eabihf")
set(cross_triple "arm-none-eabi")
set(cross_root /usr/xcc/${cross_triple})
set(CMAKE_C_COMPILER $ENV{CC})

View File

@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
# crosstool-NG 1.25.0_rc1 Configuration
# crosstool-NG 1.25.0 Configuration
#
CT_CONFIGURE_has_static_link=y
CT_CONFIGURE_has_cxx11=y
@ -22,7 +22,7 @@ CT_CONFIGURE_has_sha1sum=y
CT_CONFIGURE_has_sha256sum=y
CT_CONFIGURE_has_sha512sum=y
CT_CONFIGURE_has_install_with_strip_program=y
CT_VERSION="1.25.0_rc1"
CT_VERSION="1.25.0"
CT_VCHECK=""
CT_CONFIG_VERSION_ENV="4"
CT_CONFIG_VERSION_CURRENT="4"
@ -121,7 +121,7 @@ CT_LOG_LEVEL_MAX="EXTRA"
# CT_LOG_SEE_TOOLS_WARN is not set
CT_LOG_PROGRESS_BAR=y
CT_LOG_TO_FILE=y
# CT_LOG_FILE_COMPRESS is not set
CT_LOG_FILE_COMPRESS=y
# end of Paths and misc options
#
@ -156,13 +156,13 @@ CT_ARCH_ARM_SHOW=y
# Options for arm
#
CT_ARCH_ARM_PKG_KSYM=""
CT_ARCH_ARM_MODE="arm"
CT_ARCH_ARM_MODE_ARM=y
# CT_ARCH_ARM_MODE_THUMB is not set
CT_ARCH_ARM_MODE="thumb"
# CT_ARCH_ARM_MODE_ARM is not set
CT_ARCH_ARM_MODE_THUMB=y
# CT_ARCH_ARM_INTERWORKING is not set
CT_ARCH_ARM_EABI_FORCE=y
CT_ARCH_ARM_EABI=y
CT_ARCH_ARM_TUPLE_USE_EABIHF=y
# CT_ARCH_ARM_TUPLE_USE_EABIHF is not set
CT_ALL_ARCH_CHOICES="ALPHA ARC ARM AVR C6X M68K MICROBLAZE MIPS MOXIE MSP430 NIOS2 POWERPC PRU RISCV S390 SH SPARC X86 XTENSA"
CT_ARCH_SUFFIX=""
# CT_OMIT_TARGET_VENDOR is not set
@ -276,8 +276,8 @@ CT_ALL_KERNEL_CHOICES="BARE_METAL LINUX WINDOWS"
#
# Binary utilities
#
# CT_ARCH_BINFMT_ELF is not set
CT_ARCH_BINFMT_FLAT=y
CT_ARCH_BINFMT_ELF=y
# CT_ARCH_BINFMT_FLAT is not set
# CT_ARCH_BINFMT_FDPIC is not set
CT_BINUTILS_BINUTILS=y
CT_BINUTILS="binutils"
@ -335,42 +335,16 @@ CT_BINUTILS_2_26_or_later=y
#
CT_BINUTILS_GOLD_SUPPORTS_ARCH=y
CT_BINUTILS_GOLD_SUPPORT=y
CT_BINUTILS_FORCE_LD_BFD_ONLY=y
CT_BINUTILS_LINKER_LD=y
# CT_BINUTILS_LINKER_GOLD is not set
# CT_BINUTILS_LINKER_LD_GOLD is not set
# CT_BINUTILS_LINKER_GOLD_LD is not set
CT_BINUTILS_LINKERS_LIST="ld"
CT_BINUTILS_LINKER_DEFAULT="bfd"
CT_BINUTILS_PLUGINS=y
CT_BINUTILS_RELRO=m
CT_BINUTILS_DETERMINISTIC_ARCHIVES=y
CT_BINUTILS_EXTRA_CONFIG_ARRAY=""
#
# elf2flt
#
CT_ELF2FLT_REQUIRES=y
CT_ELF2FLT_DIR_NAME="elf2flt"
CT_ELF2FLT_PKG_NAME="elf2flt"
CT_ELF2FLT_SRC_DEVEL=y
# CT_ELF2FLT_SRC_CUSTOM is not set
CT_ELF2FLT_DEVEL_VCS_git=y
# CT_ELF2FLT_DEVEL_VCS_svn is not set
# CT_ELF2FLT_DEVEL_VCS_hg is not set
# CT_ELF2FLT_DEVEL_VCS_cvs is not set
CT_ELF2FLT_DEVEL_VCS="git"
CT_ELF2FLT_DEVEL_URL="https://github.com/uclinux-dev/elf2flt.git"
CT_ELF2FLT_DEVEL_BRANCH=""
CT_ELF2FLT_DEVEL_REVISION="453398f917d167f8c308c8f997270c48ae8f8b12"
CT_ELF2FLT_DEVEL_SUBDIR=""
CT_ELF2FLT_DEVEL_BOOTSTRAP=""
CT_ELF2FLT_PATCH_GLOBAL=y
# CT_ELF2FLT_PATCH_BUNDLED is not set
# CT_ELF2FLT_PATCH_LOCAL is not set
# CT_ELF2FLT_PATCH_BUNDLED_LOCAL is not set
# CT_ELF2FLT_PATCH_LOCAL_BUNDLED is not set
# CT_ELF2FLT_PATCH_NONE is not set
CT_ELF2FLT_PATCH_ORDER="global"
CT_ELF2FLT_VERSION="unknown"
CT_ELF2FLT_EXTRA_CONFIG_ARRAY=""
CT_ALL_BINUTILS_CHOICES="BINUTILS"
# end of Binary utilities
@ -413,12 +387,13 @@ CT_NEWLIB_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
CT_NEWLIB_ARCHIVE_FORMATS=".tar.gz"
CT_NEWLIB_SIGNATURE_FORMAT=""
CT_LIBC_NEWLIB_TARGET_CFLAGS=""
# CT_LIBC_NEWLIB_IO_C99FMT is not set
# CT_LIBC_NEWLIB_IO_LL is not set
# CT_LIBC_NEWLIB_IO_FLOAT is not set
# CT_LIBC_NEWLIB_IO_POS_ARGS is not set
CT_LIBC_NEWLIB_IO_C99FMT=y
CT_LIBC_NEWLIB_IO_LL=y
CT_LIBC_NEWLIB_IO_FLOAT=y
# CT_LIBC_NEWLIB_IO_LDBL is not set
CT_LIBC_NEWLIB_IO_POS_ARGS=y
# CT_LIBC_NEWLIB_FVWRITE_IN_STREAMIO is not set
# CT_LIBC_NEWLIB_UNBUF_STREAM_OPT is not set
CT_LIBC_NEWLIB_UNBUF_STREAM_OPT=y
# CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set
CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y
# CT_LIBC_NEWLIB_REGISTER_FINI is not set
@ -426,10 +401,10 @@ CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y
# CT_LIBC_NEWLIB_GLOBAL_ATEXIT is not set
CT_LIBC_NEWLIB_LITE_EXIT=y
CT_LIBC_NEWLIB_REENT_SMALL=y
# CT_LIBC_NEWLIB_MULTITHREAD is not set
CT_LIBC_NEWLIB_MULTITHREAD=y
# CT_LIBC_NEWLIB_RETARGETABLE_LOCKING is not set
CT_LIBC_NEWLIB_EXTRA_SECTIONS=y
# CT_LIBC_NEWLIB_WIDE_ORIENT is not set
CT_LIBC_NEWLIB_WIDE_ORIENT=y
CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE=y
# CT_LIBC_NEWLIB_LTO is not set
CT_LIBC_NEWLIB_NANO_MALLOC=y
@ -538,7 +513,7 @@ CT_CC_GCC_ENABLE_TARGET_OPTSPACE=y
#
# CT_CC_CXA_ATEXIT is not set
CT_CC_GCC_TM_CLONE_REGISTRY=m
CT_CC_GCC_DISABLE_PCH=y
# CT_CC_GCC_DISABLE_PCH is not set
# CT_CC_GCC_LDBL_128 is not set
# CT_CC_GCC_BUILD_ID is not set
CT_CC_GCC_LNK_HASH_STYLE_DEFAULT=y
@ -603,7 +578,8 @@ CT_GDB_7_11_or_later=y
CT_GDB_CROSS=y
# CT_GDB_CROSS_STATIC is not set
CT_GDB_CROSS_SIM=y
# CT_GDB_CROSS_PYTHON is not set
CT_GDB_CROSS_PYTHON=y
CT_GDB_CROSS_PYTHON_BINARY=""
CT_GDB_CROSS_EXTRA_CONFIG_ARRAY=""
#
@ -846,8 +822,8 @@ CT_ZLIB_PATCH_GLOBAL=y
# CT_ZLIB_PATCH_LOCAL_BUNDLED is not set
# CT_ZLIB_PATCH_NONE is not set
CT_ZLIB_PATCH_ORDER="global"
CT_ZLIB_V_1_2_11=y
CT_ZLIB_VERSION="1.2.11"
CT_ZLIB_V_1_2_12=y
CT_ZLIB_VERSION="1.2.12"
CT_ZLIB_MIRRORS="http://downloads.sourceforge.net/project/libpng/zlib/${CT_ZLIB_VERSION} https://www.zlib.net/"
CT_ZLIB_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
CT_ZLIB_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"