diff options
Diffstat (limited to 'meta/recipes-support/lz4')
-rw-r--r-- | meta/recipes-support/lz4/files/run-ptest | 46 | ||||
-rw-r--r-- | meta/recipes-support/lz4/lz4_1.9.3.bb | 30 | ||||
-rw-r--r-- | meta/recipes-support/lz4/lz4_1.9.4.bb | 46 |
3 files changed, 56 insertions, 66 deletions
diff --git a/meta/recipes-support/lz4/files/run-ptest b/meta/recipes-support/lz4/files/run-ptest index d3bfc49f1c..f4a46a4f2c 100644 --- a/meta/recipes-support/lz4/files/run-ptest +++ b/meta/recipes-support/lz4/files/run-ptest | |||
@@ -1,43 +1,17 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | cd testsuite | ||
3 | 2 | ||
4 | echo -n "---- test-lz4 ----" | 3 | # Define test work dir |
5 | make -C tests test-lz4 > /dev/null 2>&1 | 4 | WORKDIR=@PTEST_PATH@/tests/ |
6 | 5 | ||
7 | if [ $? -eq 0 ]; then | 6 | # Run test |
8 | echo "PASS" | 7 | cd ${WORKDIR} |
9 | else | ||
10 | echo "FAIL" | ||
11 | fi | ||
12 | |||
13 | echo -n "---- test-fasttest ----" | ||
14 | make -C tests test-fasttest > /dev/null 2>&1 | ||
15 | if [ $? -eq 0 ]; then | ||
16 | echo "PASS" | ||
17 | else | ||
18 | echo "FAIL" | ||
19 | fi | ||
20 | 8 | ||
21 | echo -n "---- test-frametest ----" | 9 | case_name="test_frame" |
22 | make -C tests test-frametest > /dev/null 2>&1 | 10 | ./frametest |
23 | if [ $? -eq 0 ]; then | 11 | ret=$? |
24 | echo "PASS" | 12 | if [[ ${ret} == "0" ]]; then |
13 | echo "PASS: lz4/$case_name" | ||
25 | else | 14 | else |
26 | echo "FAIL" | 15 | echo "FAIL: lz4/$case_name" |
27 | fi | 16 | fi |
28 | 17 | ||
29 | echo -n "---- test-fullbench ----" | ||
30 | make -C tests test-fullbench > /dev/null 2>&1 | ||
31 | if [ $? -eq 0 ]; then | ||
32 | echo "PASS" | ||
33 | else | ||
34 | echo "FAIL" | ||
35 | fi | ||
36 | |||
37 | echo -n "---- test-fuzzer ----" | ||
38 | make -C tests test-fuzzer > /dev/null 2>&1 | ||
39 | if [ $? -eq 0 ]; then | ||
40 | echo "PASS" | ||
41 | else | ||
42 | echo "FAIL" | ||
43 | fi | ||
diff --git a/meta/recipes-support/lz4/lz4_1.9.3.bb b/meta/recipes-support/lz4/lz4_1.9.3.bb deleted file mode 100644 index 00f2dd32fe..0000000000 --- a/meta/recipes-support/lz4/lz4_1.9.3.bb +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | SUMMARY = "Extremely Fast Compression algorithm" | ||
2 | DESCRIPTION = "LZ4 is a very fast lossless compression algorithm, providing compression speed at 400 MB/s per core, scalable with multi-cores CPU. It also features an extremely fast decoder, with speed in multiple GB/s per core, typically reaching RAM speed limits on multi-core systems." | ||
3 | |||
4 | LICENSE = "BSD | BSD-2-Clause | GPL-2.0" | ||
5 | LIC_FILES_CHKSUM = "file://lib/LICENSE;md5=ebc2ea4814a64de7708f1571904b32cc \ | ||
6 | file://programs/COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
7 | file://LICENSE;md5=d57c0d21cb917fb4e0af2454aa48b956 \ | ||
8 | " | ||
9 | |||
10 | PE = "1" | ||
11 | |||
12 | SRCREV = "d44371841a2f1728a3f36839fd4b7e872d0927d3" | ||
13 | |||
14 | SRC_URI = "git://github.com/lz4/lz4.git;branch=release \ | ||
15 | file://run-ptest \ | ||
16 | " | ||
17 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>.*)" | ||
18 | |||
19 | S = "${WORKDIR}/git" | ||
20 | |||
21 | # Fixed in r118, which is larger than the current version. | ||
22 | CVE_CHECK_WHITELIST += "CVE-2014-4715" | ||
23 | |||
24 | EXTRA_OEMAKE = "PREFIX=${prefix} CC='${CC}' DESTDIR=${D} LIBDIR=${libdir} INCLUDEDIR=${includedir} BUILD_STATIC=no" | ||
25 | |||
26 | do_install() { | ||
27 | oe_runmake install | ||
28 | } | ||
29 | |||
30 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-support/lz4/lz4_1.9.4.bb b/meta/recipes-support/lz4/lz4_1.9.4.bb new file mode 100644 index 0000000000..51a854d44a --- /dev/null +++ b/meta/recipes-support/lz4/lz4_1.9.4.bb | |||
@@ -0,0 +1,46 @@ | |||
1 | SUMMARY = "Extremely Fast Compression algorithm" | ||
2 | DESCRIPTION = "LZ4 is a very fast lossless compression algorithm, providing compression speed at 400 MB/s per core, scalable with multi-cores CPU. It also features an extremely fast decoder, with speed in multiple GB/s per core, typically reaching RAM speed limits on multi-core systems." | ||
3 | HOMEPAGE = "https://github.com/lz4/lz4" | ||
4 | |||
5 | LICENSE = "BSD-2-Clause | GPL-2.0-only" | ||
6 | LIC_FILES_CHKSUM = "file://lib/LICENSE;md5=5cd5f851b52ec832b10eedb3f01f885a \ | ||
7 | file://programs/COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
8 | file://LICENSE;md5=c5cc3cd6f9274b4d32988096df9c3ec3 \ | ||
9 | " | ||
10 | |||
11 | PE = "1" | ||
12 | |||
13 | SRCREV = "5ff839680134437dbf4678f3d0c7b371d84f4964" | ||
14 | |||
15 | SRC_URI = "git://github.com/lz4/lz4.git;branch=release;protocol=https \ | ||
16 | file://run-ptest \ | ||
17 | " | ||
18 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>.*)" | ||
19 | |||
20 | S = "${WORKDIR}/git" | ||
21 | |||
22 | inherit ptest | ||
23 | |||
24 | CVE_STATUS[CVE-2014-4715] = "fixed-version: Fixed in r118, which is larger than the current version." | ||
25 | |||
26 | EXTRA_OEMAKE = "PREFIX=${prefix} CC='${CC}' CFLAGS='${CFLAGS}' DESTDIR=${D} LIBDIR=${libdir} INCLUDEDIR=${includedir} BUILD_STATIC=no" | ||
27 | |||
28 | do_install() { | ||
29 | oe_runmake install | ||
30 | } | ||
31 | |||
32 | BBCLASSEXTEND = "native nativesdk" | ||
33 | |||
34 | RDEPENDS:${PN}-ptest += "bash" | ||
35 | |||
36 | do_compile_ptest() { | ||
37 | oe_runmake -C ${B}/tests/ | ||
38 | } | ||
39 | |||
40 | do_install_ptest() { | ||
41 | install -d ${D}${PTEST_PATH}/tests/ | ||
42 | install --mode=755 ${B}/tests/frametest ${D}${PTEST_PATH}/tests/ | ||
43 | sed -i "s#@PTEST_PATH@#${PTEST_PATH}#g" ${D}${PTEST_PATH}/run-ptest | ||
44 | |||
45 | } | ||
46 | |||