From f3fda4d3ba5dfc68caf376a12ac9853849968d41 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Thu, 1 Jul 2021 08:43:47 +0200 Subject: [PATCH] armv6: switch march to armv6zk+fp to use the FPU. Signed-off-by: Arne Fitzenreiter --- lfs/gcc | 2 +- make.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lfs/gcc b/lfs/gcc index 02c33ba510..44112bd70c 100644 --- a/lfs/gcc +++ b/lfs/gcc @@ -163,7 +163,7 @@ endif ifeq "$(BUILD_ARCH)" "armv6l" EXTRA_CONFIG += \ - --with-arch=armv6 \ + --with-arch=armv6zk+fp \ --with-float=softfp # --disable-sjlj-exceptions endif diff --git a/make.sh b/make.sh index 321e87c5da..ad7c7fdd42 100755 --- a/make.sh +++ b/make.sh @@ -176,7 +176,7 @@ configure_build() { BUILDTARGET="${build_arch}-unknown-linux-gnueabi" CROSSTARGET="${build_arch}-cross-linux-gnueabi" BUILD_PLATFORM="arm" - CFLAGS_ARCH="-march=armv6 -mfpu=vfp -mfloat-abi=softfp -fomit-frame-pointer" + CFLAGS_ARCH="-march=armv6zk+fp -mfpu=vfp -mfloat-abi=softfp -fomit-frame-pointer" #RUSTFLAGS="-Ccodegen-units=1" ;; -- 2.39.2