blob: 32e3107239bc925982cd4e973b567434c46131d0 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
require odp.inc
inherit autotools-brokensep
PACKAGE_ARCH = "${MACHINE_ARCH}"
DEPENDS = "openssl cunit libxml2"
RDEPENDS_${PN} = "bash libcrypto libssl odp-module odp-counters"
ODP_SOC ?= ""
ODP_SOC_ls1043ardb = "LS1043"
ODP_SOC_ls1046ardb = "LS1046"
ODP_PLATFORM ?= "linux-dpaa2"
ODP_PLATFORM_ls1043ardb = "linux-dpaa1"
ODP_PLATFORM_ls1046ardb = "linux-dpaa1"
ODP_BUILD_TYPE ?= "ls2088"
ODP_BUILD_TYPE_ls1043ardb = "ls1043"
ODP_BUILD_TYPE_ls1046ardb = "ls1046"
ODP_BUILD_TYPE_ls2080ardb = "ls2080"
EXTRA_OECONF = "--with-platform=${ODP_PLATFORM} \
--with-sdk-install-path=${STAGING_DIR_TARGET} \
--enable-build-type=${ODP_BUILD_TYPE} \
--enable-test-vald \
--enable-test-perf \
--enable-test-cpp \
"
EXTRA_OEMAKE = "CROSS_COMPILE="${TARGET_PREFIX}" \
SYSROOT="${STAGING_DIR_TARGET}" \
"
PACKAGECONFIG[perf] = "--enable-test-perf,,,"
do_configure_prepend () {
export SOC=${ODP_SOC}
${S}/bootstrap
}
do_compile_prepend () {
export SOC=${ODP_SOC}
export ARCH=${TUNE_ARCH}
}
do_install_append () {
install -d ${D}${includedir}/odp/kni
install -d ${D}${includedir}/odp/kern
install -d ${D}${includedir}/odp/flib/mc
install -d ${D}${includedir}/odp/flib/qbman/include/drivers
cp -rf ${S}/platform/linux-dpaa2/include/* ${D}${includedir}/odp/
cp -rf ${S}/platform/linux-dpaa2/kni/*.h ${D}${includedir}/odp/kni/
cp -rf ${S}/kern/*.h ${D}${includedir}/odp/kern/
cp -rf ${S}/platform/linux-dpaa2/flib/mc/*.h ${D}${includedir}/odp/flib/mc/
cp -rf ${S}/platform/linux-dpaa2/flib/qbman/include/drivers/*.h ${D}${includedir}/odp/flib/qbman/include/drivers
sed -i -e 's#platform/linux-dpaa2/##g' ${D}${includedir}/odp/kern/*.h
}
FILES_${PN}-staticdev += "${datadir}/opendataplane/*.la"
FILES_${PN} += "/usr/odp/bin /usr/odp/scripts /usr/odp/debug /usr/odp/test/validation /usr/odp/test/performance /usr/odp/test/miscellaneous /usr/odp/test/api_test"
FILES_${PN}-dbg += "/usr/odp/bin/.debug /usr/odp/debug/.debug /usr/odp/test/validation/.debug /usr/odp/test/performance/.debug /usr/odp/test/miscellaneous/.debug /usr/odp/test/api_test/.debug"
|