Accepting request 590909 from home:kasimir:ToTest

- Add mstflint-armv6_arch.patch to support build on armv6l

OBS-URL: https://build.opensuse.org/request/show/590909
OBS-URL: https://build.opensuse.org/package/show/science:HPC/mstflint?expand=0&rev=22
This commit is contained in:
Nicolas Morey-Chaisemartin 2018-03-26 14:23:51 +00:00 committed by Git OBS Bridge
parent eca05beeb4
commit 9f06e7232a
3 changed files with 28 additions and 0 deletions

20
mstflint-armv6_arch.patch Normal file
View File

@ -0,0 +1,20 @@
--- tools_layouts/adb_to_c_utils.h 2018-03-25 13:00:40.447893600 +0200
+++ tools_layouts/adb_to_c_utils.h 2018-03-25 13:04:15.462427635 +0200
@@ -139,6 +139,8 @@ extern "C" {
# define ARCH_arm64
# elif defined(__ARM_ARCH_7A__)
# define ARCH_armv7
+# elif defined(__arm__)
+# define ARCH_arm6l
# elif defined(__s390x__)
# define ARCH_s390x
# elif defined(__s390__)
@@ -179,7 +181,7 @@ extern "C" {
# define U64D_FMT "%lu"
# define U64H_FMT "0x%016lx"
# define U48H_FMT "0x%012lx"
-#elif defined(ARCH_x86) || defined(ARCH_ppc) || defined(UEFI_BUILD) || defined(ARCH_s390) || defined(__ARM_ARCH_7A__)
+#elif defined(ARCH_x86) || defined(ARCH_ppc) || defined(UEFI_BUILD) || defined(ARCH_s390) || defined(__ARM_ARCH_7A__) || defined(__arm__)
# if defined(__MINGW32__) || defined(__MINGW64__)
# include <inttypes.h>
# define U64D_FMT "0x%" PRId64

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Mar 25 11:17:55 UTC 2018 - kasimir_@outlook.de
- Add mstflint-armv6_arch.patch to support build on armv6l
-------------------------------------------------------------------
Tue Mar 20 07:44:34 UTC 2018 - nmoreychaisemartin@suse.com

View File

@ -39,6 +39,8 @@ Patch3: mstflint-4.4.0-no-date-time.patch
Patch4: mstflint-armv7_arch.patch
# PATCH-FIX-UPSTREAM Ignore fallthrough for GCC7 support
Patch5: mstflint-gcc7.patch
# PATCH-FIX-UPSTREAM Add all needed defines to get it built on armv6
Patch6: mstflint-armv6_arch.patch
BuildRequires: gcc-c++
BuildRequires: infiniband-diags-devel
@ -64,6 +66,7 @@ the downloads page at the Mellanox web site.
%patch3
%patch4
%patch5
%patch6
%build
./autogen.sh