diff --git a/mstflint-armv6_arch.patch b/mstflint-armv6_arch.patch new file mode 100644 index 0000000..3c2ebda --- /dev/null +++ b/mstflint-armv6_arch.patch @@ -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 + # define U64D_FMT "0x%" PRId64 diff --git a/mstflint.changes b/mstflint.changes index 99153a6..f907bcb 100644 --- a/mstflint.changes +++ b/mstflint.changes @@ -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 diff --git a/mstflint.spec b/mstflint.spec index 59b535a..1602f4a 100644 --- a/mstflint.spec +++ b/mstflint.spec @@ -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