diff options
author | Armin Kuster <akuster808@gmail.com> | 2021-04-24 15:56:34 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-04-26 14:14:42 +0100 |
commit | 241c7d2e6751bc514eafd79c2a4dab62bb7cfafe (patch) | |
tree | e3020233837e8a420685e3938c81afeb0051a98a /meta/recipes-support/libseccomp | |
parent | 4d05decb979f15acc1837ce18b6241b2930fa841 (diff) | |
download | poky-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-ptest | 4 | ||||
-rw-r--r-- | meta/recipes-support/libseccomp/libseccomp_2.5.1.bb | 49 |
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 | |||
3 | cd 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 @@ | |||
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 = "LGPL-2.1" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE;beginline=0;endline=1;md5=8eac08d22113880357ceb8e7c37f989f" | ||
6 | |||
7 | DEPENDS += "gperf-native" | ||
8 | |||
9 | SRCREV = "4bf70431a339a2886ab8c82e9a45378f30c6e6c7" | ||
10 | |||
11 | SRC_URI = "git://github.com/seccomp/libseccomp.git;branch=release-2.5 \ | ||
12 | file://run-ptest \ | ||
13 | " | ||
14 | |||
15 | COMPATIBLE_HOST_riscv32 = "null" | ||
16 | |||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | inherit autotools-brokensep pkgconfig ptest features_check | ||
20 | |||
21 | REQUIRED_DISTRO_FEATURES = "seccomp" | ||
22 | |||
23 | PACKAGECONFIG ??= "" | ||
24 | PACKAGECONFIG[python] = "--enable-python, --disable-python, python3" | ||
25 | |||
26 | DISABLE_STATIC = "" | ||
27 | |||
28 | do_compile_ptest() { | ||
29 | oe_runmake -C tests check-build | ||
30 | } | ||
31 | |||
32 | do_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 | |||
46 | FILES_${PN} = "${bindir} ${libdir}/${BPN}.so*" | ||
47 | FILES_${PN}-dbg += "${libdir}/${PN}/tests/.debug/* ${libdir}/${PN}/tools/.debug" | ||
48 | |||
49 | RDEPENDS_${PN}-ptest = "coreutils bash" | ||