aboutsummaryrefslogtreecommitdiff
path: root/meta-linaro/recipes-extra/odp/odp_v1.3.0.0.bb
blob: c3e51edf2413c5609b4206831deb13c765c0146a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
DESCRIPTION = "OpenDataPlane (ODP) provides a data plane application programming \
	environment that is easy to use, high performance, and portable between networking SoCs."
HOMEPAGE = "http://www.opendataplane.org"
SECTION = "console/network"

LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=4ccfa994aa96974cfcd39a59faee20a2"

DEPENDS = "openssl cunit"

SRC_URI = "git://git.linaro.org/lng/odp.git;name=odp \
	   file://run-ptest"

SRCREV_odp = "3afd410eaa2e55f47b42508ac0b86390a7b4c711"
SRCREV_FORMAT = "odp"

S = "${WORKDIR}/git"

inherit autotools ptest

PACKAGECONFIG[perf] = "--enable-test-perf,,,"

do_configure_ptest() {
	oe_runconf --enable-test-vald
}

do_compile_ptest() {
	oe_runmake -C test/validation buildtest-TESTS
}

do_install_ptest() {
	DESTDIR=${D}/${PTEST_PATH}/test/
	oe_runmake -C test/validation install-binPROGRAMS \
			BUILDDIR=${B} DESTDIR=${DESTDIR}
	find ${DESTDIR} -type f -executable -exec mv -f {} ${DESTDIR} \;
	rm -rf ${DESTDIR}/usr
}

# ODP is primarily shipped as static library plus some API test and samples/
FILES_${PN}-staticdev += "${datadir}/opendataplane/*.la"

RDEPENDS_${PN} = "bash libcrypto"
RDEPENDS_${PN}-ptest = "cunit"