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,29 @@
Do not force static link, it breaks build with
# BR2_STATIC_LIBS is not set
BR2_SHARED_LIBS=y
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
diff -uNr libseccomp-2.2.0.org/tests/Makefile.am libseccomp-2.2.0/tests/Makefile.am
--- libseccomp-2.2.0.org/tests/Makefile.am 2015-02-11 21:57:11.000000000 +0100
+++ libseccomp-2.2.0/tests/Makefile.am 2015-03-29 16:03:49.668946652 +0200
@@ -16,7 +16,6 @@
# along with this library; if not, see <http://www.gnu.org/licenses>.
#
-AM_LDFLAGS = -static
LDADD = util.la ../src/libseccomp.la
check_LTLIBRARIES = util.la
diff -uNr libseccomp-2.2.0.org/tools/Makefile.am libseccomp-2.2.0/tools/Makefile.am
--- libseccomp-2.2.0.org/tools/Makefile.am 2015-02-11 21:57:11.000000000 +0100
+++ libseccomp-2.2.0/tools/Makefile.am 2015-03-29 16:03:46.164992302 +0200
@@ -33,8 +33,6 @@
scmp_bpf_sim_SOURCES = scmp_bpf_sim.c bpf.h util.h
scmp_sys_resolver_LDADD = ../src/libseccomp.la
-scmp_sys_resolver_LDFLAGS = -static
scmp_arch_detect_LDADD = ../src/libseccomp.la
-scmp_arch_detect_LDFLAGS = -static
scmp_bpf_disasm_LDADD = util.la
scmp_bpf_sim_LDADD = util.la

View File

@@ -0,0 +1,28 @@
From eb5382287cd25235e760b5da4939510b11bbf2a1 Mon Sep 17 00:00:00 2001
From: Kylie McClain <somasis@exherbo.org>
Date: Fri, 1 Jan 2016 13:12:59 -0500
Subject: [PATCH] system.h: Remove conflicting kernel header include
This fixes building on musl libc, since musl does not include kernel
headers. I've tested this as working on both glibc and musl.
Signed-off-by: Kylie McClain <somasis@exherbo.org>
[Bernd: downloaded from upstream PR:
https://github.com/seccomp/libseccomp/pull/23]
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
src/system.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/system.h b/src/system.h
index 4660679..e84b0a0 100644
--- a/src/system.h
+++ b/src/system.h
@@ -23,7 +23,6 @@
#define _SYSTEM_H
#include <linux/filter.h>
-#include <linux/prctl.h>
#include "configure.h"

View File

@@ -0,0 +1,21 @@
config BR2_PACKAGE_LIBSECCOMP
bool "libseccomp"
depends on BR2_aarch64 || BR2_mips || BR2_mipsel || BR2_mips64 || \
BR2_mips64el || BR2_i386 || BR2_x86_64
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
help
High level interface to the Linux Kernel's seccomp filter
The libseccomp library provides an easy to use, platform independent,
interface to the Linux Kernel's syscall filtering mechanism: seccomp.
The libseccomp API is designed to abstract away the underlying BPF
based syscall filter language and present a more conventional
function-call based filtering interface that should be familiar to,
and easily adopted by application developers.
https://github.com/seccomp/libseccomp
comment "libseccomp needs a toolchain w/ headers >= 3.12"
depends on BR2_aarch64 || BR2_mips || BR2_mipsel || BR2_mips64 || \
BR2_mips64el || BR2_i386 || BR2_x86_64
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12

View File

@@ -0,0 +1,20 @@
################################################################################
#
# libseccomp
#
################################################################################
LIBSECCOMP_VERSION = v2.2.3
LIBSECCOMP_SITE = $(call github,seccomp,libseccomp,$(LIBSECCOMP_VERSION))
LIBSECCOMP_LICENSE = LGPLv2.1
LIBSECCOMP_LICENSE_FILES = LICENSE
LIBSECCOMP_INSTALL_STAGING = YES
LIBSECCOMP_AUTORECONF = YES
# Needed for autoreconf to work properly, see ./autogen.sh
define LIBSECCOMP_FIXUP_M4_DIR
mkdir $(@D)/m4
endef
LIBSECCOMP_POST_EXTRACT_HOOKS += LIBSECCOMP_FIXUP_M4_DIR
$(eval $(autotools-package))