Import buildroot 2016.02.01

This commit is contained in:
2016-02-24 22:35:39 +01:00
parent a6ee09dea4
commit 828befcf3c
7393 changed files with 390887 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
Fix compilation error with musl-based toolchain
linux_sysfs.c:751:15: error: 'PATH_MAX' undeclared (first use in this function)
char name[PATH_MAX];
Patch applied upstream:
http://cgit.freedesktop.org/xorg/lib/libpciaccess/commit/?id=8ea3af620a2d4ad5648917b4a0ef2b23ff566774
Signed-off-by: Felix Janda <felix.janda at posteo.de>
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
diff -uNr libpciaccess-0.13.3.org/src/linux_sysfs.c libpciaccess-0.13.3/src/linux_sysfs.c
--- libpciaccess-0.13.3.org/src/linux_sysfs.c 2015-02-04 00:59:14.000000000 +0100
+++ libpciaccess-0.13.3/src/linux_sysfs.c 2015-04-10 21:57:35.000000000 +0200
@@ -44,6 +44,7 @@
#include <sys/mman.h>
#include <dirent.h>
#include <errno.h>
+#include <limits.h>
#if defined(__i386__) || defined(__x86_64__) || defined(__arm__)
#include <sys/io.h>

View File

@@ -0,0 +1,20 @@
Fix musl build
Inspired by http://patchwork.openembedded.org/patch/111661/
"inb/outb are implemented for ARM on glibc but not on linux in general
therefore the conditional has to reflect that"
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
diff -uNr libpciaccess-0.13.4.org/src/linux_sysfs.c libpciaccess-0.13.4/src/linux_sysfs.c
--- libpciaccess-0.13.4.org/src/linux_sysfs.c 2015-05-01 06:44:47.000000000 +0200
+++ libpciaccess-0.13.4/src/linux_sysfs.c 2016-01-24 15:27:57.141562678 +0100
@@ -49,7 +49,7 @@
#include <dirent.h>
#include <errno.h>
-#if defined(__i386__) || defined(__x86_64__) || defined(__arm__)
+#if defined(__i386__) || defined(__x86_64__)
#include <sys/io.h>
#else
#define inb(x) -1

View File

@@ -0,0 +1,4 @@
config BR2_PACKAGE_LIBPCIACCESS
bool "libpciaccess"
help
X.Org libpciaccess

View File

@@ -0,0 +1,2 @@
# From http://lists.x.org/archives/xorg-announce/2015-April/002590.html
sha256 07f864654561e4ac8629a0ef9c8f07fbc1f8592d1b6c418431593e9ba2cf2fcf libpciaccess-0.13.4.tar.bz2

View File

@@ -0,0 +1,21 @@
################################################################################
#
# libpciaccess
#
################################################################################
LIBPCIACCESS_VERSION = 0.13.4
LIBPCIACCESS_SOURCE = libpciaccess-$(LIBPCIACCESS_VERSION).tar.bz2
LIBPCIACCESS_SITE = http://xorg.freedesktop.org/releases/individual/lib
LIBPCIACCESS_LICENSE = MIT
LIBPCIACCESS_LICENSE_FILES = COPYING
LIBPCIACCESS_INSTALL_STAGING = YES
ifeq ($(BR2_PACKAGE_ZLIB),y)
LIBPCIACCESS_CONF_OPTS += --with-zlib
LIBPCIACCESS_DEPENDENCIES += zlib
else
LIBPCIACCESS_CONF_OPTS += --without-zlib
endif
$(eval $(autotools-package))