]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
armv6: switch march to armv6zk+fp to use the FPU.
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 1 Jul 2021 06:43:47 +0000 (08:43 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 5 Jul 2021 05:42:39 +0000 (07:42 +0200)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/gcc
make.sh

diff --git a/lfs/gcc b/lfs/gcc
index 02c33ba5100ac4b66a4c69979a13ecfc74dc5615..44112bd70c5f242d7c6acc483082047dbb05bf18 100644 (file)
--- 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 321e87c5daa9def369b086d8f04836a03a1e0bd3..ad7c7fdd42358719c7934c6e4209959d89400925 100755 (executable)
--- 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"
                        ;;