From c09ee66e6936f610146c3c43c3344848bb0b4412 Mon Sep 17 00:00:00 2001 From: Splendide Imaginarius <119545140+Splendide-Imaginarius@users.noreply.github.com> Date: Mon, 2 Sep 2024 03:44:59 +0000 Subject: [PATCH] Fix armv7 cross-compile target I don't know why this change matters; my reading of the GCC documentation is that they should be equivalent, but clearly either I misread the docs or there's a GCC bug. Either way, this fix should be fine. --- linux/meson-armv7.txt | 2 +- linux/target-armv7.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux/meson-armv7.txt b/linux/meson-armv7.txt index e32324c..9a6f991 100644 --- a/linux/meson-armv7.txt +++ b/linux/meson-armv7.txt @@ -9,5 +9,5 @@ cmake = 'cmake' [host_machine] system = 'linux' cpu_family = 'arm' -cpu = 'generic-armv7-a+fp' +cpu = 'generic-armv7-a+vfpv3-d16' endian = 'little' diff --git a/linux/target-armv7.sh b/linux/target-armv7.sh index 5159fcd..ed676d0 100755 --- a/linux/target-armv7.sh +++ b/linux/target-armv7.sh @@ -21,7 +21,7 @@ export ARCH=armv7 export ARCH_OPENSSL=armv4 -export ARCH_CFLAGS="-mcpu=generic-armv7-a+fp -mtune=generic-armv7-a+fp" +export ARCH_CFLAGS="-mcpu=generic-armv7-a+vfpv3-d16 -mtune=generic-armv7-a+vfpv3-d16" export ARCH_CONFIGURE=arm-linux-gnueabihf export CC="$ARCH_CONFIGURE-gcc" export ARCH_CMAKE_TOOLCHAIN=toolchain-arm32.cmake