blob: 9c94e432b9ffdefa607eb565d91897ef777981bb (
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_BUILD_TYPE ?= "ls2088"
ODP_BUILD_TYPE:ls1043ardb = "ls1043"
ODP_BUILD_TYPE:ls1046ardb = "ls1046"
ODP_BUILD_TYPE:ls2080ardb = "ls2080"
ODP_BUILD_TYPE:ls1088ardb = "ls1088"
EXTRA_OECONF = "--with-platform=${ODP_PLATFORM} \
--enable-test-vald \
--enable-test-perf \
--enable-test-cpp \
"
EXTRA_OEMAKE = "CROSS_COMPILE="${TARGET_PREFIX}" \
SYSROOT="${STAGING_DIR_TARGET}" \
"
CFLAGS += "-Wno-format-truncation -Wno-maybe-uninitialized -Wno-implicit-fallthrough -Wno-cpp -Wno-cast-function-type \
-Wno-stringop-truncation \
"
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/
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"
|