Update target architecture and FPU settings for ARM toolchain

This commit is contained in:
2026-08-07 09:13:18 +03:00
parent 8267e2e4da
commit cc50788acd
5 changed files with 24 additions and 15 deletions

View File

@@ -18,9 +18,14 @@ source "$(dirname "$0")/versions.sh"
# Основные параметры тулчейна
# ==================================================================
TARGET="arm-uclinuxfdpiceabi"
SUBARCH="armv7-m"
SUBARCH="armv7e-m"
SUBMODE="thumb"
# Cortex-M7 (i.MX RT1050) с аппаратным FPU (VFPv5, двойная точность)
TARGET_CPU="cortex-m7"
TARGET_FPU="fpv5-d16"
TARGET_FLOAT_ABI="hard"
TOP="$(pwd)"
CONFIGS_DIR="${TOP}/config"
@@ -36,7 +41,7 @@ KERNEL_SYSROOT_USR_DIR="${KERNEL_SYSROOT_DIR}/usr"
KERNEL_SYSROOT_USR_INCLUDES_DIR="${KERNEL_SYSROOT_USR_DIR}/include"
CFLAGS_TOOLSET='-O2'
CFLAGS_TARGET='-Os -mthumb'
CFLAGS_TARGET="-Os -mthumb -mcpu=${TARGET_CPU} -mfpu=${TARGET_FPU} -mfloat-abi=${TARGET_FLOAT_ABI}"
export CFLAGS=$CFLAGS_TOOLSET
export CFLAGS_FOR_TARGET=$CFLAGS_TARGET
@@ -109,7 +114,9 @@ mkdir -p "${BUILD_DIR}/gcc1" && cd "${BUILD_DIR}/gcc1"
"${SRC_GCC}/configure" \
--target="${TARGET}" \
--prefix="${INSTALL_DIR}" \
--with-arch="${SUBARCH}" \
--with-cpu="${TARGET_CPU}" \
--with-fpu="${TARGET_FPU}" \
--with-float="${TARGET_FLOAT_ABI}" \
--with-mode="${SUBMODE}" \
--without-headers \
--with-newlib \
@@ -186,7 +193,9 @@ mkdir -p "${BUILD_DIR}/gcc2" && cd "${BUILD_DIR}/gcc2"
--target="${TARGET}" \
--prefix="${INSTALL_DIR}" \
--with-sysroot="${KERNEL_SYSROOT_DIR}" \
--with-arch="${SUBARCH}" \
--with-cpu="${TARGET_CPU}" \
--with-fpu="${TARGET_FPU}" \
--with-float="${TARGET_FLOAT_ABI}" \
--with-mode="${SUBMODE}" \
--enable-languages=c,c++ \
--disable-threads \