summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libseccomp
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2021-04-24 15:56:34 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-04-26 14:14:42 +0100
commit241c7d2e6751bc514eafd79c2a4dab62bb7cfafe (patch)
treee3020233837e8a420685e3938c81afeb0051a98a /meta/recipes-support/libseccomp
parent4d05decb979f15acc1837ce18b6241b2930fa841 (diff)
downloadpoky-241c7d2e6751bc514eafd79c2a4dab62bb7cfafe.tar.gz
libseccomp: move recipe from meta-security to core
ptest results: Regression Test Summary tests run: 1404 tests skipped: 369 tests passed: 1402 tests failed: 2 tests errored: 154 Add feature_check so that the other recipes who can take advantage of this funtionality can enable it. (From OE-Core rev: 5b0182f5c01c8b10b4b65f8af55d682be4839947) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libseccomp')
-rw-r--r--meta/recipes-support/libseccomp/files/run-ptest4
-rw-r--r--meta/recipes-support/libseccomp/libseccomp_2.5.1.bb49
2 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-support/libseccomp/files/run-ptest b/meta/recipes-support/libseccomp/files/run-ptest
new file mode 100644
index 0000000000..54b4a63cd2
--- /dev/null
+++ b/meta/recipes-support/libseccomp/files/run-ptest
@@ -0,0 +1,4 @@
1#!/bin/sh
2
3cd tests
4./regression -a
diff --git a/meta/recipes-support/libseccomp/libseccomp_2.5.1.bb b/meta/recipes-support/libseccomp/libseccomp_2.5.1.bb
new file mode 100644
index 0000000000..667d5da824
--- /dev/null
+++ b/meta/recipes-support/libseccomp/libseccomp_2.5.1.bb
@@ -0,0 +1,49 @@
1SUMMARY = "interface to seccomp filtering mechanism"
2DESCRIPTION = "The libseccomp library provides and easy to use, platform independent,interface to the Linux Kernel's syscall filtering mechanism: seccomp."
3SECTION = "security"
4LICENSE = "LGPL-2.1"
5LIC_FILES_CHKSUM = "file://LICENSE;beginline=0;endline=1;md5=8eac08d22113880357ceb8e7c37f989f"
6
7DEPENDS += "gperf-native"
8
9SRCREV = "4bf70431a339a2886ab8c82e9a45378f30c6e6c7"
10
11SRC_URI = "git://github.com/seccomp/libseccomp.git;branch=release-2.5 \
12 file://run-ptest \
13 "
14
15COMPATIBLE_HOST_riscv32 = "null"
16
17S = "${WORKDIR}/git"
18
19inherit autotools-brokensep pkgconfig ptest features_check
20
21REQUIRED_DISTRO_FEATURES = "seccomp"
22
23PACKAGECONFIG ??= ""
24PACKAGECONFIG[python] = "--enable-python, --disable-python, python3"
25
26DISABLE_STATIC = ""
27
28do_compile_ptest() {
29 oe_runmake -C tests check-build
30}
31
32do_install_ptest() {
33 install -d ${D}${PTEST_PATH}/tests
34 install -d ${D}${PTEST_PATH}/tools
35 for file in $(find tests/* -executable -type f); do
36 install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tests
37 done
38 for file in $(find tests/*.tests -type f); do
39 install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tests
40 done
41 for file in $(find tools/* -executable -type f); do
42 install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tools
43 done
44}
45
46FILES_${PN} = "${bindir} ${libdir}/${BPN}.so*"
47FILES_${PN}-dbg += "${libdir}/${PN}/tests/.debug/* ${libdir}/${PN}/tools/.debug"
48
49RDEPENDS_${PN}-ptest = "coreutils bash"