diff options
author | Andrei Dinu <andrei.adrianx.dinu@intel.com> | 2013-07-01 16:45:26 +0300 |
---|---|---|
committer | Andrei Dinu <andrei.adrianx.dinu@intel.com> | 2013-07-01 16:45:26 +0300 |
commit | f359c35ab250c09e858d88b8b1aa872bb7d2cddd (patch) | |
tree | d535d9f471223e5bcd9cb4a0858a0dcaa06e41b7 /recipes-security/libseccomp | |
parent | 60d90b25631471e8193b3069c6a520ccf7c82008 (diff) | |
download | meta-security-f359c35ab250c09e858d88b8b1aa872bb7d2cddd.tar.gz |
security layer updated work
Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Diffstat (limited to 'recipes-security/libseccomp')
-rw-r--r-- | recipes-security/libseccomp/files/compiler.patch | 32 | ||||
-rw-r--r-- | recipes-security/libseccomp/libseccomp_2.1.0.bb | 19 |
2 files changed, 51 insertions, 0 deletions
diff --git a/recipes-security/libseccomp/files/compiler.patch b/recipes-security/libseccomp/files/compiler.patch new file mode 100644 index 0000000..c7f2fbb --- /dev/null +++ b/recipes-security/libseccomp/files/compiler.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From fb3e84f6212333949ee3e410bb468bb06c289a1e Mon Sep 17 00:00:00 2001 | ||
2 | From: Andrei Dinu <andrei.adrianx.dinu@intel.com> | ||
3 | Date: Fri, 28 Jun 2013 15:55:13 +0300 | ||
4 | Subject: [PATCH] libseccomp always used host compiler | ||
5 | |||
6 | passing $CC at do_install() doesn't seem to have | ||
7 | effect on the compiler used by libseccomp. Modified | ||
8 | the compiler manually. | ||
9 | |||
10 | Upstream Status: Inapropriate | ||
11 | |||
12 | Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com> | ||
13 | --- | ||
14 | macros.mk | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/macros.mk b/macros.mk | ||
18 | index 9c62fa7..e219be6 100644 | ||
19 | --- a/macros.mk | ||
20 | +++ b/macros.mk | ||
21 | @@ -66,7 +66,7 @@ AWK ?= awk | ||
22 | PYTHON ?= /usr/bin/env python | ||
23 | |||
24 | # we require gcc specific functionality | ||
25 | -GCC ?= gcc | ||
26 | +GCC ?= $(CC) | ||
27 | |||
28 | INSTALL ?= install | ||
29 | |||
30 | -- | ||
31 | 1.7.9.5 | ||
32 | |||
diff --git a/recipes-security/libseccomp/libseccomp_2.1.0.bb b/recipes-security/libseccomp/libseccomp_2.1.0.bb new file mode 100644 index 0000000..f909c62 --- /dev/null +++ b/recipes-security/libseccomp/libseccomp_2.1.0.bb | |||
@@ -0,0 +1,19 @@ | |||
1 | SUMMARY = "interface to seccomp filtering mechanism" | ||
2 | DESCRIPTION = "The libseccomp library provides and easy to use, platform independent,interface to the Linux Kernel's syscall filtering mechanism: seccomp." | ||
3 | SECTION = "security" | ||
4 | LICENSE = "GPL-2.0" | ||
5 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" | ||
6 | |||
7 | SRC_URI = "http://sourceforge.net/projects/libseccomp/files/${PN}-${PV}.tar.gz \ | ||
8 | file://compiler.patch" | ||
9 | |||
10 | SRC_URI[md5sum] = "3961103c1234c13a810f6a12e60c797f" | ||
11 | SRC_URI[sha256sum] = "b0d6e4f0984e6632a04f0cf33c6babdb011674ba15ff208e196f037e0e09905e" | ||
12 | |||
13 | do_configure() { | ||
14 | ${S}/configure --prefix=${prefix} --libdir=${libdir} | ||
15 | } | ||
16 | |||
17 | do_install() { | ||
18 | oe_runmake DESTDIR=${D} install | ||
19 | } | ||