summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorArmin Kuster <akuster@mvista.com>2017-04-01 13:06:44 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-05-12 08:51:09 +0100
commitb501f065359f8b3e437d102b9d44b3e41ca099e2 (patch)
tree6d4c91b820702ecb7a3e9d8d603fc52a9e9b771f /meta/recipes-support
parent99df0c34705006cbab9de58bf6b796728a295b7a (diff)
downloadpoky-b501f065359f8b3e437d102b9d44b3e41ca099e2.tar.gz
lz4: update to lastest 1.7.4
update SRC_URI: as of 1.7.3, repo changed. same owner Renamed recipe to reflect PV and added Epoch Added ptest, tests added v1.7.3 updated LICENSE to be more accurate. (From OE-Core rev: 962459c55406432537e10ab743cfa325b703e12a) Signed-off-by: Armin Kuster <akuster@mvista.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/lz4/files/run-ptest43
-rw-r--r--meta/recipes-support/lz4/lz4.bb21
-rw-r--r--meta/recipes-support/lz4/lz4_1.7.4.bb33
3 files changed, 76 insertions, 21 deletions
diff --git a/meta/recipes-support/lz4/files/run-ptest b/meta/recipes-support/lz4/files/run-ptest
new file mode 100644
index 0000000000..d3bfc49f1c
--- /dev/null
+++ b/meta/recipes-support/lz4/files/run-ptest
@@ -0,0 +1,43 @@
1#!/bin/sh
2cd testsuite
3
4echo -n "---- test-lz4 ----"
5make -C tests test-lz4 > /dev/null 2>&1
6
7if [ $? -eq 0 ]; then
8 echo "PASS"
9else
10 echo "FAIL"
11fi
12
13echo -n "---- test-fasttest ----"
14make -C tests test-fasttest > /dev/null 2>&1
15if [ $? -eq 0 ]; then
16 echo "PASS"
17else
18 echo "FAIL"
19fi
20
21echo -n "---- test-frametest ----"
22make -C tests test-frametest > /dev/null 2>&1
23if [ $? -eq 0 ]; then
24 echo "PASS"
25else
26 echo "FAIL"
27fi
28
29echo -n "---- test-fullbench ----"
30make -C tests test-fullbench > /dev/null 2>&1
31if [ $? -eq 0 ]; then
32 echo "PASS"
33else
34 echo "FAIL"
35fi
36
37echo -n "---- test-fuzzer ----"
38make -C tests test-fuzzer > /dev/null 2>&1
39if [ $? -eq 0 ]; then
40 echo "PASS"
41else
42 echo "FAIL"
43fi
diff --git a/meta/recipes-support/lz4/lz4.bb b/meta/recipes-support/lz4/lz4.bb
deleted file mode 100644
index 03c5a7ab39..0000000000
--- a/meta/recipes-support/lz4/lz4.bb
+++ /dev/null
@@ -1,21 +0,0 @@
1SUMMARY = "Extremely Fast Compression algorithm"
2DESCRIPTION = "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
4LICENSE = "BSD"
5LIC_FILES_CHKSUM = "file://lib/LICENSE;md5=0b0d063f37a4477b54af2459477dcafd"
6
7SRCREV = "d86dc916771c126afb797637dda9f6421c0cb998"
8
9PV = "131+git${SRCPV}"
10
11SRC_URI = "git://github.com/Cyan4973/lz4.git"
12
13S = "${WORKDIR}/git"
14
15EXTRA_OEMAKE = "PREFIX=${prefix} CC='${CC}' DESTDIR=${D} LIBDIR=${libdir} INCLUDEDIR=${includedir}"
16
17do_install() {
18 oe_runmake install
19}
20
21BBCLASSEXTEND = "native nativesdk"
diff --git a/meta/recipes-support/lz4/lz4_1.7.4.bb b/meta/recipes-support/lz4/lz4_1.7.4.bb
new file mode 100644
index 0000000000..5ddffd54b9
--- /dev/null
+++ b/meta/recipes-support/lz4/lz4_1.7.4.bb
@@ -0,0 +1,33 @@
1SUMMARY = "Extremely Fast Compression algorithm"
2DESCRIPTION = "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
4LICENSE = "BSD | BSD-2-Clause | GPL-2.0"
5LIC_FILES_CHKSUM = "file://lib/LICENSE;md5=ebc2ea4814a64de7708f1571904b32cc\
6 file://programs/COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
7 file://LICENSE;md5=7f2857d58beff6d04137bf9b09e5ffb6"
8
9PE = "1"
10
11SRCREV = "7bb64ff2b69a9f8367de9ab483cdadf42b4c1b65"
12
13SRC_URI = "git://github.com/lz4/lz4.git \
14 file://run-ptest \
15"
16
17S = "${WORKDIR}/git"
18inherit ptest
19
20EXTRA_OEMAKE = "PREFIX=${prefix} CC='${CC}' DESTDIR=${D} LIBDIR=${libdir} INCLUDEDIR=${includedir}"
21
22do_install() {
23 oe_runmake install
24}
25
26do_install_ptest () {
27 install -d ${D}${PTEST_PATH}/testsuite
28 cp -rf ${S}/* ${D}${PTEST_PATH}/testsuite
29}
30
31RDEPENDS_${PN}-ptest += "make python3"
32
33BBCLASSEXTEND = "native nativesdk"