packaging: Enforce fpu for armv7hl build 78/253478/2 submit/tizen_5.5_base/20210214.174840
authorSlava Barinov <v.barinov@samsung.com>
Thu, 11 Feb 2021 09:03:23 +0000 (12:03 +0300)
committerSlava Barinov <v.barinov@samsung.com>
Thu, 11 Feb 2021 09:44:10 +0000 (12:44 +0300)
Change-Id: I1bf603e61626c76c2861423d2d73c53c49f1e9cd
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
packaging/gcc-aarch64.spec
packaging/gcc-armv7hl.spec
packaging/gcc-armv7l.spec
packaging/linaro-gcc.spec

index f3da508..87f09bb 100644 (file)
@@ -766,6 +766,11 @@ fi
 %undefine gcc_profiledbootstrap
 %endif
 
+%ifarch armv7hl
+# Required for correct libgcc and crt* build
+RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mfpu=neon"
+%endif
+
 %{!?gcc_skip_configure:
 %{?gcc_dump_configure:patch_configure.pl ..}   # Add debug prints into configure
 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \
@@ -807,6 +812,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
 %ifarch armv7hl
        --with-arch=armv7-a \
        --with-tune=cortex-a8 \
+       --with-fpu=neon \
        --disable-sjlj-exceptions \
        --with-float=hard \
 %endif
@@ -835,6 +841,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
 %{?armv7hl: \
        --with-arch=armv7-a \
        --with-tune=cortex-a8 \
+       --with-fpu=neon \
        --disable-sjlj-exceptions \
        --with-float=hard \
 } \
index 1212199..05a3973 100644 (file)
@@ -766,6 +766,11 @@ fi
 %undefine gcc_profiledbootstrap
 %endif
 
+%ifarch armv7hl
+# Required for correct libgcc and crt* build
+RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mfpu=neon"
+%endif
+
 %{!?gcc_skip_configure:
 %{?gcc_dump_configure:patch_configure.pl ..}   # Add debug prints into configure
 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \
@@ -807,6 +812,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
 %ifarch armv7hl
        --with-arch=armv7-a \
        --with-tune=cortex-a8 \
+       --with-fpu=neon \
        --disable-sjlj-exceptions \
        --with-float=hard \
 %endif
@@ -835,6 +841,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
 %{?armv7hl: \
        --with-arch=armv7-a \
        --with-tune=cortex-a8 \
+       --with-fpu=neon \
        --disable-sjlj-exceptions \
        --with-float=hard \
 } \
index a01cf67..2b6768a 100644 (file)
@@ -766,6 +766,11 @@ fi
 %undefine gcc_profiledbootstrap
 %endif
 
+%ifarch armv7hl
+# Required for correct libgcc and crt* build
+RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mfpu=neon"
+%endif
+
 %{!?gcc_skip_configure:
 %{?gcc_dump_configure:patch_configure.pl ..}   # Add debug prints into configure
 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \
@@ -807,6 +812,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
 %ifarch armv7hl
        --with-arch=armv7-a \
        --with-tune=cortex-a8 \
+       --with-fpu=neon \
        --disable-sjlj-exceptions \
        --with-float=hard \
 %endif
@@ -835,6 +841,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
 %{?armv7hl: \
        --with-arch=armv7-a \
        --with-tune=cortex-a8 \
+       --with-fpu=neon \
        --disable-sjlj-exceptions \
        --with-float=hard \
 } \
index fcb1640..243c18b 100644 (file)
@@ -763,6 +763,11 @@ fi
 %undefine gcc_profiledbootstrap
 %endif
 
+%ifarch armv7hl
+# Required for correct libgcc and crt* build
+RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mfpu=neon"
+%endif
+
 %{!?gcc_skip_configure:
 %{?gcc_dump_configure:patch_configure.pl ..}   # Add debug prints into configure
 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \
@@ -804,6 +809,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
 %ifarch armv7hl
        --with-arch=armv7-a \
        --with-tune=cortex-a8 \
+       --with-fpu=neon \
        --disable-sjlj-exceptions \
        --with-float=hard \
 %endif
@@ -832,6 +838,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
 %{?armv7hl: \
        --with-arch=armv7-a \
        --with-tune=cortex-a8 \
+       --with-fpu=neon \
        --disable-sjlj-exceptions \
        --with-float=hard \
 } \