Update buidlroot to version 2016.08.1
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
Dummy pthread_setaffinity_np() when not available
|
||||
|
||||
On uClibc configurations that do not use the NPTL thread
|
||||
implementation, pthread_setaffinity_np() is not available. This patch
|
||||
defines a dummy (empty) implementation of this function for such
|
||||
cases.
|
||||
|
||||
The only few architectures that do not provide the NPTL thread
|
||||
implementation are very likely to be non-SMP architectures, and
|
||||
therefore, setting the affinity of the thread is not doing anything
|
||||
useful, so having an empty stub for pthread_setaffinity_np() is not a
|
||||
problem.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
Index: b/src/current/iozone.c
|
||||
===================================================================
|
||||
--- a/src/current/iozone.c
|
||||
+++ b/src/current/iozone.c
|
||||
@@ -306,6 +306,17 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
+#if defined (__linux__)
|
||||
+#include <features.h>
|
||||
+#if defined (__UCLIBC__) && !defined (__UCLIBC_HAS_THREADS_NATIVE__)
|
||||
+static int pthread_setaffinity_np(pthread_t thread, size_t cpusetsize,
|
||||
+ const cpu_set_t *cpuset)
|
||||
+{
|
||||
+ return 0;
|
||||
+}
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
#if ((defined(solaris) && defined(__LP64__)) || defined(__s390x__))
|
||||
/* If we are building for 64-bit Solaris, all functions that return pointers
|
||||
* must be declared before they are used; otherwise the compiler will assume
|
||||
@@ -1,9 +1,13 @@
|
||||
config BR2_PACKAGE_IOZONE
|
||||
bool "iozone"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
help
|
||||
IOzone is a filesystem benchmark tool.
|
||||
The benchmark generates and measures a variety of file operations
|
||||
|
||||
http://www.iozone.org/
|
||||
|
||||
comment "iozone needs a toolchain w/ NPTL"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 e8388238326dc29359e5cb9f790d193f1e1bdadfbf260e010c50fa682387faed iozone3_430.tar
|
||||
sha256 bbbda98d7c052d8654ea23fb2187d831107ab4ac89842fa21509276d9a6915f0 iozone3_446.tar
|
||||
|
||||
@@ -4,18 +4,15 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
IOZONE_VERSION = 3_430
|
||||
IOZONE_VERSION = 3_446
|
||||
IOZONE_SOURCE = iozone$(IOZONE_VERSION).tar
|
||||
IOZONE_SITE = http://www.iozone.org/src/current
|
||||
IOZONE_LICENSE = IOzone license (NO DERIVED WORKS ALLOWED)
|
||||
# IOzone license details can be found at:
|
||||
# http://www.iozone.org/docs/Iozone_License.txt
|
||||
|
||||
# No threading target is non-AIO as well
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
|
||||
IOZONE_TARGET = linux-noth
|
||||
# AIO support not available on uClibc, use the linux (non-aio) target.
|
||||
else ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
||||
IOZONE_TARGET = linux-noaio
|
||||
else
|
||||
IOZONE_TARGET = linux
|
||||
|
||||
Reference in New Issue
Block a user