Import buildroot 2016.02.01
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
Use __GLIBC_PREREQ only when __GLIBC__ is defined
|
||||
|
||||
The way __GLIBC_PREREQ() is currently used means that it's evaluated
|
||||
even if __GLIBC__ is not defined. But obviously, __GLIBC_PREREQ will
|
||||
not exist if __GLIBC__ is not defined, causing build failures on C
|
||||
libraries not defining __GLIBC__ such as the musl C library.
|
||||
|
||||
Patch originally taken from:
|
||||
https://github.com/voidlinux/void-packages/blob/master/srcpkgs/numactl/patches/musl.patch
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
[Thomas: improve patch description.]
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
--- a/syscall.c.orig 2014-10-20 16:12:53.000000000 +0200
|
||||
+++ b/syscall.c 2015-06-22 08:13:22.729034702 +0200
|
||||
@@ -115,14 +115,16 @@
|
||||
|
||||
#endif
|
||||
|
||||
-#if defined(__GLIBC__) && __GLIBC_PREREQ(2, 11)
|
||||
+#if defined(__GLIBC__)
|
||||
+# if __GLIBC_PREREQ(2,11)
|
||||
|
||||
/* glibc 2.11 seems to have working 6 argument sycall. Use the
|
||||
glibc supplied syscall in this case.
|
||||
The version cut-off is rather arbitary and could be probably
|
||||
earlier. */
|
||||
|
||||
-#define syscall6 syscall
|
||||
+# define syscall6 syscall
|
||||
+#endif
|
||||
#elif defined(__x86_64__)
|
||||
/* 6 argument calls on x86-64 are often buggy in both glibc and
|
||||
asm/unistd.h. Add a working version here. */
|
||||
12
firmware/buildroot/package/numactl/Config.in
Normal file
12
firmware/buildroot/package/numactl/Config.in
Normal file
@@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_NUMACTL
|
||||
bool "numactl"
|
||||
# numactl uses some system calls that are not available on all
|
||||
# architectures.
|
||||
depends on BR2_i386 || BR2_mips || BR2_mipsel || \
|
||||
BR2_mips64 || BR2_mips64el || BR2_powerpc || BR2_x86_64
|
||||
help
|
||||
numactl allows you to run your application on specific cpus
|
||||
and memory nodes. It does this by supplying a NUMA memory
|
||||
policy to the operating system before running your program.
|
||||
|
||||
http://oss.sgi.com/projects/libnuma/
|
||||
2
firmware/buildroot/package/numactl/numactl.hash
Normal file
2
firmware/buildroot/package/numactl/numactl.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 450c091235f891ee874a8651b179c30f57a1391ca5c4673354740ba65e527861 numactl-2.0.11.tar.gz
|
||||
13
firmware/buildroot/package/numactl/numactl.mk
Normal file
13
firmware/buildroot/package/numactl/numactl.mk
Normal file
@@ -0,0 +1,13 @@
|
||||
################################################################################
|
||||
#
|
||||
# numactl
|
||||
#
|
||||
################################################################################
|
||||
|
||||
NUMACTL_VERSION = 2.0.11
|
||||
NUMACTL_SITE = ftp://oss.sgi.com/www/projects/libnuma/download
|
||||
NUMACTL_LICENSE = LGPLv2.1 (libnuma), GPLv2 (programs)
|
||||
NUMACTL_LICENSE_FILES = README
|
||||
NUMACTL_INSTALL_STAGING = YES
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user