Revert "Update target architecture and FPU settings for ARM toolchain"

This reverts commit cc50788acd, restoring
the soft-float toolchain defaults on dev. The hard-float work continues
on the dev-hard-float branch.
This commit is contained in:
2026-08-12 11:30:23 +03:00
parent 455721eeb6
commit a3b718c4b1
5 changed files with 15 additions and 24 deletions

View File

@@ -18,14 +18,9 @@ source "$(dirname "$0")/versions.sh"
# Основные параметры тулчейна
# ==================================================================
TARGET="arm-uclinuxfdpiceabi"
SUBARCH="armv7e-m"
SUBARCH="armv7-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"
@@ -41,7 +36,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 -mcpu=${TARGET_CPU} -mfpu=${TARGET_FPU} -mfloat-abi=${TARGET_FLOAT_ABI}"
CFLAGS_TARGET='-Os -mthumb'
export CFLAGS=$CFLAGS_TOOLSET
export CFLAGS_FOR_TARGET=$CFLAGS_TARGET
@@ -114,9 +109,7 @@ mkdir -p "${BUILD_DIR}/gcc1" && cd "${BUILD_DIR}/gcc1"
"${SRC_GCC}/configure" \
--target="${TARGET}" \
--prefix="${INSTALL_DIR}" \
--with-cpu="${TARGET_CPU}" \
--with-fpu="${TARGET_FPU}" \
--with-float="${TARGET_FLOAT_ABI}" \
--with-arch="${SUBARCH}" \
--with-mode="${SUBMODE}" \
--without-headers \
--with-newlib \
@@ -193,9 +186,7 @@ mkdir -p "${BUILD_DIR}/gcc2" && cd "${BUILD_DIR}/gcc2"
--target="${TARGET}" \
--prefix="${INSTALL_DIR}" \
--with-sysroot="${KERNEL_SYSROOT_DIR}" \
--with-cpu="${TARGET_CPU}" \
--with-fpu="${TARGET_FPU}" \
--with-float="${TARGET_FLOAT_ABI}" \
--with-arch="${SUBARCH}" \
--with-mode="${SUBMODE}" \
--enable-languages=c,c++ \
--enable-threads=posix \