From d738c41d07c3de6d4f61931176da2223dde5f293 Mon Sep 17 00:00:00 2001 From: Johnny Hughes Date: Aug 09 2019 13:41:18 +0000 Subject: build on armhfp --- diff --git a/SPECS/gcc-libraries.spec b/SPECS/gcc-libraries.spec index 950de12..a71bf64 100644 --- a/SPECS/gcc-libraries.spec +++ b/SPECS/gcc-libraries.spec @@ -196,7 +196,7 @@ BuildRequires: libmpc-devel >= 0.8.1 %endif Requires(post): /sbin/install-info Requires(preun): /sbin/install-info -ExclusiveArch: %{ix86} x86_64 ppc ppc64 ppc64le s390 s390x aarch64 +ExclusiveArch: %{ix86} x86_64 ppc ppc64 ppc64le s390 s390x aarch64 %{arm} %global oformat %{nil} %global oformat2 %{nil} @@ -232,6 +232,10 @@ ExclusiveArch: %{ix86} x86_64 ppc ppc64 ppc64le s390 s390x aarch64 %global oformat OUTPUT_FORMAT(elf64-littleaarch64) %endif +%ifarch %{arm} +%global oformat OUTPUT_FORMAT(elf32-littlearm) +%endif + Patch0: gcc8-hack.patch Patch2: gcc8-i386-libgomp.patch Patch3: gcc8-sparc-config-detection.patch @@ -275,7 +279,10 @@ Patch7100: gcc7-htm-in-asm.patch Patch7200: gcc7-0000-infrastructure.patch Patch7201: gcc7-0022-Default-values-for-certain-field-descriptors-in-form.patch +%ifnarch %{arm} %global _gnu %{nil} +%endif + %ifarch sparcv9 %global gcc_target_platform sparc64-%{_vendor}-%{_target_os}%{?_gnu} %endif @@ -584,6 +591,10 @@ CONFIGURE_OPTS="\ %ifarch mips64 mips64el --with-arch=mips64r2 --with-abi=64 \ %endif +%ifarch armv7hl + --with-tune=cortex-a8 --with-arch=armv7-a \ + --with-float=hard --with-fpu=vfpv3-d16 --with-abi=aapcs-linux \ +%endif %ifnarch sparc sparcv9 ppc --build=%{gcc_target_platform} \ %endif