[oe-commits] Otavio Salvador : fio: Add armv6 support

git at git.openembedded.org git at git.openembedded.org
Fri Apr 19 00:43:02 UTC 2013


Module: meta-openembedded.git
Branch: master
Commit: a7b4558ff2cfa22796c10fda45c9d6c613bd1717
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=a7b4558ff2cfa22796c10fda45c9d6c613bd1717

Author: Otavio Salvador <otavio at ossystems.com.br>
Date:   Sun Apr 14 17:08:45 2013 +0000

fio: Add armv6 support

Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 ...eric-assembly-nop-and-barrier-code-for-ar.patch |   30 ++++++++++++++++++++
 meta-oe/recipes-benchmark/fio/fio_2.0.5.bb         |    3 +-
 2 files changed, 32 insertions(+), 1 deletions(-)

diff --git a/meta-oe/recipes-benchmark/fio/fio/0001-ARM-Use-generic-assembly-nop-and-barrier-code-for-ar.patch b/meta-oe/recipes-benchmark/fio/fio/0001-ARM-Use-generic-assembly-nop-and-barrier-code-for-ar.patch
new file mode 100644
index 0000000..db97244
--- /dev/null
+++ b/meta-oe/recipes-benchmark/fio/fio/0001-ARM-Use-generic-assembly-nop-and-barrier-code-for-ar.patch
@@ -0,0 +1,30 @@
+From 152b969cd4ff5b4b7e1c65eca1f9ab243b8a30c8 Mon Sep 17 00:00:00 2001
+From: Otavio Salvador <otavio at ossystems.com.br>
+Date: Sun, 14 Apr 2013 13:53:35 -0300
+Subject: [PATCH] ARM: Use generic assembly nop and barrier code for armv6
+
+Upstream-Status: Submitted
+
+Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
+---
+ arch/arch-arm.h |    4 +++-
+ 1 files changed, 3 insertions(+), 1 deletions(-)
+
+diff --git a/arch/arch-arm.h b/arch/arch-arm.h
+index 658b688..7cd9502 100644
+--- a/arch/arch-arm.h
++++ b/arch/arch-arm.h
+@@ -18,7 +18,9 @@
+ #define __NR_sys_vmsplice	343
+ #endif
+ 
+-#if defined (__ARM_ARCH_4__) || defined (__ARM_ARCH_4T__) || defined (__ARM_ARCH_5__) || defined (__ARM_ARCH_5T__) || defined (__ARM_ARCH_5TE__) || defined (__ARM_ARCH_5TEJ__)
++#if defined (__ARM_ARCH_4__) || defined (__ARM_ARCH_4T__) \
++	|| defined (__ARM_ARCH_5__) || defined (__ARM_ARCH_5T__) || defined (__ARM_ARCH_5TE__) || defined (__ARM_ARCH_5TEJ__) \
++	|| defined(__ARM_ARCH_6__)  || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__)
+ #define nop             __asm__ __volatile__("mov\tr0,r0\t@ nop\n\t")
+ #define read_barrier()	__asm__ __volatile__ ("" : : : "memory")
+ #define write_barrier()	__asm__ __volatile__ ("" : : : "memory")
+-- 
+1.7.2.5
+
diff --git a/meta-oe/recipes-benchmark/fio/fio_2.0.5.bb b/meta-oe/recipes-benchmark/fio/fio_2.0.5.bb
index e21ab6d..8dcf637 100644
--- a/meta-oe/recipes-benchmark/fio/fio_2.0.5.bb
+++ b/meta-oe/recipes-benchmark/fio/fio_2.0.5.bb
@@ -14,7 +14,8 @@ DEPENDS = "libaio"
 
 # rev for v2.0.5
 SRCREV = "02efadeb8b05144bcf2fc7796e1da2e7db211d00"
-SRC_URI = "git://git.kernel.dk/fio.git"
+SRC_URI = "git://git.kernel.dk/fio.git \
+           file://0001-ARM-Use-generic-assembly-nop-and-barrier-code-for-ar.patch"
 
 S = "${WORKDIR}/git"
 





More information about the Openembedded-commits mailing list