Fix build on armv6, unbreak on aarch64

PR:		228042
Submitted by:	mikael.urankar
Approved by:	maintainer timeout
This commit is contained in:
Mark Linimon 2018-06-13 04:12:58 +00:00
parent 1377dcaf29
commit bcb54d3123
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=472282
2 changed files with 16 additions and 3 deletions

View File

@ -11,9 +11,6 @@ COMMENT= FIO - flexible IO tester
LICENSE= GPLv2
BROKEN_armv6= Fails to compile: unsupported ARM architecture
BROKEN_armv7= Fails to compile: unsupported ARM architecture
USES= gmake tar:bzip2
OPTIONS_DEFINE= GNUPLOT EXAMPLES

View File

@ -0,0 +1,16 @@
--- benchmarks/fio/files/patch-arch_arch-arm.h (nonexistent)
+++ benchmarks/fio/files/patch-arch_arch-arm.h (working copy)
@@ -0,0 +1,12 @@
+--- arch/arch-arm.h.orig 2018-05-07 14:59:32 UTC
++++ arch/arch-arm.h
+@@ -6,7 +6,8 @@
+ #if defined (__ARM_ARCH_4__) || defined (__ARM_ARCH_4T__) \
+ || defined (__ARM_ARCH_5__) || defined (__ARM_ARCH_5T__) || defined (__ARM_ARCH_5E__)\
+ || defined (__ARM_ARCH_5TE__) || defined (__ARM_ARCH_5TEJ__) \
+- || defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__)
++ || defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__) \
++ || defined(__ARM_ARCH_6KZ__)
+ #define nop __asm__ __volatile__("mov\tr0,r0\t@ nop\n\t")
+ #define read_barrier() __asm__ __volatile__ ("" : : : "memory")
+ #define write_barrier() __asm__ __volatile__ ("" : : : "memory")