mirror of
https://github.com/google/cpu_features.git
synced 2025-04-28 07:23:37 +02:00
Merge pull request #378 from Mizux/main
ci: Remove linaro toolchains support
This commit is contained in:
commit
99b7c591fa
2
.github/workflows/aarch64_linux_cmake.yml
vendored
2
.github/workflows/aarch64_linux_cmake.yml
vendored
@ -16,8 +16,6 @@ jobs:
|
|||||||
targets: [
|
targets: [
|
||||||
[aarch64],
|
[aarch64],
|
||||||
[aarch64be],
|
[aarch64be],
|
||||||
[aarch64-linux-gnu],
|
|
||||||
[aarch64_be-linux-gnu]
|
|
||||||
]
|
]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
env:
|
env:
|
||||||
|
7
.github/workflows/arm_linux_cmake.yml
vendored
7
.github/workflows/arm_linux_cmake.yml
vendored
@ -14,11 +14,8 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
targets: [
|
targets: [
|
||||||
[arm-linux-gnueabihf],
|
[armv7-eabihf],
|
||||||
[armv8l-linux-gnueabihf],
|
[armebv7-eabihf],
|
||||||
[arm-linux-gnueabi],
|
|
||||||
[armeb-linux-gnueabihf],
|
|
||||||
[armeb-linux-gnueabi]
|
|
||||||
]
|
]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
env:
|
env:
|
||||||
|
@ -39,20 +39,16 @@ help:
|
|||||||
@echo -e "\t${BOLD}clean_<target>_<toolchain_stage>${RESET}: Remove cache and docker image."
|
@echo -e "\t${BOLD}clean_<target>_<toolchain_stage>${RESET}: Remove cache and docker image."
|
||||||
@echo
|
@echo
|
||||||
@echo -e "\tWith ${BOLD}<target>${RESET}:"
|
@echo -e "\tWith ${BOLD}<target>${RESET}:"
|
||||||
@echo -e "\t\t${BOLD}arm-linux-gnueabihf${RESET} (linaro toolchain)"
|
@echo -e "\t\t${BOLD}armv7-eabihf(arm)${RESET} (bootlin toolchain)"
|
||||||
@echo -e "\t\t${BOLD}armv8l-linux-gnueabihf${RESET} (linaro toolchain)"
|
@echo -e "\t\t${BOLD}armebv7-eabihf(armeb)${RESET} (bootlin toolchain)"
|
||||||
@echo -e "\t\t${BOLD}arm-linux-gnueabi${RESET} (linaro toolchain)"
|
@echo -e "\t\t${BOLD}aarch64(arm64)${RESET} (bootlin toolchain)"
|
||||||
@echo -e "\t\t${BOLD}armeb-linux-gnueabihf${RESET} (linaro toolchain)"
|
@echo -e "\t\t${BOLD}aarch64be(arm64be)${RESET} (bootlin toolchain)"
|
||||||
@echo -e "\t\t${BOLD}armeb-linux-gnueabi${RESET} (linaro toolchain)"
|
|
||||||
@echo -e "\t\t${BOLD}aarch64-linux-gnu${RESET} (linaro toolchain)"
|
|
||||||
@echo -e "\t\t${BOLD}aarch64${RESET} (bootlin toolchain)"
|
|
||||||
@echo -e "\t\t${BOLD}aarch64_be-linux-gnu${RESET} (linaro toolchain)"
|
|
||||||
@echo -e "\t\t${BOLD}aarch64be${RESET} (bootlin toolchain)"
|
|
||||||
@echo -e "\t\t${BOLD}mips32${RESET} (codespace toolchain)"
|
@echo -e "\t\t${BOLD}mips32${RESET} (codespace toolchain)"
|
||||||
@echo -e "\t\t${BOLD}mips64${RESET} (codespace toolchain)"
|
@echo -e "\t\t${BOLD}mips64${RESET} (codespace toolchain)"
|
||||||
@echo -e "\t\t${BOLD}mips32el${RESET} (codespace toolchain)"
|
@echo -e "\t\t${BOLD}mips32el${RESET} (codespace toolchain)"
|
||||||
@echo -e "\t\t${BOLD}mips64el${RESET} (codespace toolchain)"
|
@echo -e "\t\t${BOLD}mips64el${RESET} (codespace toolchain)"
|
||||||
@echo -e "\t\t${BOLD}ppc${RESET} (bootlin toolchain)"
|
@echo -e "\t\t${BOLD}ppc-440fp(ppc)${RESET} (bootlin toolchain)"
|
||||||
|
@echo -e "\t\t${BOLD}ppc-e500mc${RESET} (bootlin toolchain)"
|
||||||
@echo -e "\t\t${BOLD}ppc64${RESET} (bootlin toolchain)"
|
@echo -e "\t\t${BOLD}ppc64${RESET} (bootlin toolchain)"
|
||||||
@echo -e "\t\t${BOLD}ppc64le${RESET} (bootlin toolchain)"
|
@echo -e "\t\t${BOLD}ppc64le${RESET} (bootlin toolchain)"
|
||||||
@echo -e "\t\t${BOLD}riscv32${RESET} (bootlin toolchain)"
|
@echo -e "\t\t${BOLD}riscv32${RESET} (bootlin toolchain)"
|
||||||
@ -151,9 +147,10 @@ $(clean_targets_amd64): clean_amd64_%:
|
|||||||
## TOOLCHAIN ##
|
## TOOLCHAIN ##
|
||||||
###############
|
###############
|
||||||
TOOLCHAIN_TARGETS = \
|
TOOLCHAIN_TARGETS = \
|
||||||
|
arm armeb \
|
||||||
|
armv7-eabihf armebv7-eabihf \
|
||||||
|
arm64 arm64be \
|
||||||
aarch64 aarch64be \
|
aarch64 aarch64be \
|
||||||
arm-linux-gnueabihf armv8l-linux-gnueabihf arm-linux-gnueabi armeb-linux-gnueabihf armeb-linux-gnueabi \
|
|
||||||
aarch64-linux-gnu aarch64_be-linux-gnu \
|
|
||||||
mips32 mips32el mips64 mips64el \
|
mips32 mips32el mips64 mips64el \
|
||||||
ppc ppc-440fp ppc-e500mc \
|
ppc ppc-440fp ppc-e500mc \
|
||||||
ppc64 ppc64le \
|
ppc64 ppc64le \
|
||||||
|
@ -92,50 +92,6 @@ function clean_build() {
|
|||||||
mkdir -p "${BUILD_DIR}"
|
mkdir -p "${BUILD_DIR}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function expand_linaro_config() {
|
|
||||||
#ref: https://releases.linaro.org/components/toolchain/binaries/
|
|
||||||
local -r LINARO_VERSION=7.5-2019.12
|
|
||||||
local -r LINARO_ROOT_URL=https://releases.linaro.org/components/toolchain/binaries/${LINARO_VERSION}
|
|
||||||
|
|
||||||
local -r GCC_VERSION=7.5.0-2019.12
|
|
||||||
local -r GCC_URL=${LINARO_ROOT_URL}/${TARGET}/gcc-linaro-${GCC_VERSION}-x86_64_${TARGET}.tar.xz
|
|
||||||
local -r GCC_RELATIVE_DIR="gcc-linaro-${GCC_VERSION}-x86_64_${TARGET}"
|
|
||||||
unpack "${GCC_URL}" "${GCC_RELATIVE_DIR}"
|
|
||||||
|
|
||||||
local -r SYSROOT_VERSION=2.25-2019.12
|
|
||||||
local -r SYSROOT_URL=${LINARO_ROOT_URL}/${TARGET}/sysroot-glibc-linaro-${SYSROOT_VERSION}-${TARGET}.tar.xz
|
|
||||||
local -r SYSROOT_RELATIVE_DIR=sysroot-glibc-linaro-${SYSROOT_VERSION}-${TARGET}
|
|
||||||
unpack "${SYSROOT_URL}" "${SYSROOT_RELATIVE_DIR}"
|
|
||||||
|
|
||||||
local -r SYSROOT_DIR=${ARCHIVE_DIR}/${SYSROOT_RELATIVE_DIR}
|
|
||||||
local -r STAGING_DIR=${ARCHIVE_DIR}/${SYSROOT_RELATIVE_DIR}-stage
|
|
||||||
local -r GCC_DIR=${ARCHIVE_DIR}/${GCC_RELATIVE_DIR}
|
|
||||||
|
|
||||||
# Write a Toolchain file
|
|
||||||
# note: This is manadatory to use a file in order to have the CMake variable
|
|
||||||
# 'CMAKE_CROSSCOMPILING' set to TRUE.
|
|
||||||
# ref: https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html#cross-compiling-for-linux
|
|
||||||
cat >"$TOOLCHAIN_FILE" <<EOL
|
|
||||||
set(CMAKE_SYSTEM_NAME Linux)
|
|
||||||
set(CMAKE_SYSTEM_PROCESSOR ${TARGET})
|
|
||||||
|
|
||||||
set(CMAKE_SYSROOT ${SYSROOT_DIR})
|
|
||||||
set(CMAKE_STAGING_PREFIX ${STAGING_DIR})
|
|
||||||
|
|
||||||
set(tools ${GCC_DIR})
|
|
||||||
set(CMAKE_C_COMPILER \${tools}/bin/${TARGET}-gcc)
|
|
||||||
set(CMAKE_CXX_COMPILER \${tools}/bin/${TARGET}-g++)
|
|
||||||
|
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
|
|
||||||
EOL
|
|
||||||
CMAKE_ADDITIONAL_ARGS+=( -DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" )
|
|
||||||
QEMU_ARGS+=( -L "${SYSROOT_DIR}" )
|
|
||||||
QEMU_ARGS+=( -E LD_LIBRARY_PATH=/lib )
|
|
||||||
}
|
|
||||||
|
|
||||||
function expand_bootlin_config() {
|
function expand_bootlin_config() {
|
||||||
# ref: https://toolchains.bootlin.com/
|
# ref: https://toolchains.bootlin.com/
|
||||||
local -r GCC_DIR=${ARCHIVE_DIR}/${GCC_RELATIVE_DIR}
|
local -r GCC_DIR=${ARCHIVE_DIR}/${GCC_RELATIVE_DIR}
|
||||||
@ -388,9 +344,6 @@ DESCRIPTION
|
|||||||
\t\tx86_64
|
\t\tx86_64
|
||||||
\t\tarmv7-eabihf(arm) armebv7-eabihf(armeb) (bootlin)
|
\t\tarmv7-eabihf(arm) armebv7-eabihf(armeb) (bootlin)
|
||||||
\t\taarch64(arm64) aarch64be(arm64be) (bootlin)
|
\t\taarch64(arm64) aarch64be(arm64be) (bootlin)
|
||||||
\t\taarch64-linux-gnu aarch64_be-linux-gnu (linaro)
|
|
||||||
\t\tarm-linux-gnueabihf armv8l-linux-gnueabihf arm-linux-gnueabi (linaro)
|
|
||||||
\t\tarmeb-linux-gnueabihf armeb-linux-gnueabi (linaro)
|
|
||||||
\t\tmips32 mips32el (codespace)
|
\t\tmips32 mips32el (codespace)
|
||||||
\t\tmips64 mips64el (codespace)
|
\t\tmips64 mips64el (codespace)
|
||||||
\t\tppc-440fp(ppc) ppc-e500mc (bootlin)
|
\t\tppc-440fp(ppc) ppc-e500mc (bootlin)
|
||||||
@ -443,18 +396,6 @@ function main() {
|
|||||||
case ${TARGET} in
|
case ${TARGET} in
|
||||||
x86_64)
|
x86_64)
|
||||||
declare -r QEMU_ARCH=x86_64 ;;
|
declare -r QEMU_ARCH=x86_64 ;;
|
||||||
arm-linux-gnueabihf | armv8l-linux-gnueabihf | arm-linux-gnueabi)
|
|
||||||
expand_linaro_config
|
|
||||||
declare -r QEMU_ARCH=arm ;;
|
|
||||||
armeb-linux-gnueabihf | armeb-linux-gnueabi)
|
|
||||||
expand_linaro_config
|
|
||||||
declare -r QEMU_ARCH=DISABLED ;;
|
|
||||||
aarch64-linux-gnu)
|
|
||||||
expand_linaro_config
|
|
||||||
declare -r QEMU_ARCH=aarch64 ;;
|
|
||||||
aarch64_be-linux-gnu)
|
|
||||||
expand_linaro_config
|
|
||||||
declare -r QEMU_ARCH=aarch64_be ;;
|
|
||||||
arm | armv7-eabihf)
|
arm | armv7-eabihf)
|
||||||
expand_bootlin_config
|
expand_bootlin_config
|
||||||
declare -r QEMU_ARCH=arm ;;
|
declare -r QEMU_ARCH=arm ;;
|
||||||
@ -467,6 +408,7 @@ function main() {
|
|||||||
arm64be | aarch64be)
|
arm64be | aarch64be)
|
||||||
expand_bootlin_config
|
expand_bootlin_config
|
||||||
declare -r QEMU_ARCH=aarch64_be ;;
|
declare -r QEMU_ARCH=aarch64_be ;;
|
||||||
|
|
||||||
mips32)
|
mips32)
|
||||||
expand_codescape_config
|
expand_codescape_config
|
||||||
declare -r QEMU_ARCH=mips ;;
|
declare -r QEMU_ARCH=mips ;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user