summaryrefslogtreecommitdiffstats
path: root/recipes-extended/ovs-dpdk/ovs-dpdk_2.11.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-extended/ovs-dpdk/ovs-dpdk_2.11.bb')
-rw-r--r--recipes-extended/ovs-dpdk/ovs-dpdk_2.11.bb49
1 files changed, 49 insertions, 0 deletions
diff --git a/recipes-extended/ovs-dpdk/ovs-dpdk_2.11.bb b/recipes-extended/ovs-dpdk/ovs-dpdk_2.11.bb
new file mode 100644
index 00000000..fd9d3a61
--- /dev/null
+++ b/recipes-extended/ovs-dpdk/ovs-dpdk_2.11.bb
@@ -0,0 +1,49 @@
1DESCRIPTION = "OVS DPDK"
2LICENSE = "BSD"
3LIC_FILES_CHKSUM = "file://LICENSE;md5=1ce5d23a6429dff345518758f13aaeab"
4
5DEPENDS = "dpdk python-six-native coreutils-native"
6RDEPENDS_${PN} = "bash libcrypto libssl python"
7
8inherit pythonnative
9
10SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/ovs-dpdk;nobranch=1 \
11"
12SRCREV = "abc80ef87a8786050f27afb2a797cadd14e2a6bd"
13
14S = "${WORKDIR}/git"
15
16DPAA_VER ?= "dpaa"
17export RTE_TARGET = "${ARCH}-${DPAA_VER}-linuxapp-gcc"
18
19EXTRA_OEMAKE += 'ARCH="${ARCH}" CROSS="${TARGET_PREFIX}" \
20 CPU_CFLAGS="--sysroot=${STAGING_DIR_HOST}" RTE_SDK="${S}" \
21 OPENSSL_PATH="${STAGING_DIR_HOST}" RTE_KERNELDIR="${STAGING_KERNEL_DIR}" \
22 RTE_KERNELDIR_OUT="${STAGING_KERNEL_BUILDDIR}" \
23'
24
25do_configure() {
26 export SYSROOT_DPDK=${PKG_CONFIG_SYSROOT_DIR}
27 ${S}/boot.sh
28 ${S}/configure --host aarch64-fsl-linux --with-dpdk=${SYSROOT_DPDK}/usr/share/${RTE_TARGET} --with-openssl=${SYSROOT_DPDK}/usr CFLAGS="-g -Wno-cast-align -Ofast"
29}
30
31do_compile() {
32 oe_runmake O="${RTE_TARGET}" T="${RTE_TARGET}"
33}
34
35do_install() {
36 install -d ${D}${bindir}/ovs-dpdk
37 cp -rf ${S}/ovsdb/ovsdb-tool ${D}${bindir}/ovs-dpdk
38 cp -rf ${S}/ovsdb/ovsdb-server ${D}${bindir}/ovs-dpdk
39 cp -rf ${S}/vswitchd/vswitch.ovsschema ${D}${bindir}/ovs-dpdk
40 cp -rf ${S}/vswitchd/ovs-vswitchd ${D}${bindir}/ovs-dpdk
41 cp -rf ${S}/utilities/ovs-vsctl ${D}${bindir}/ovs-dpdk
42 cp -rf ${S}/utilities/ovs-ofctl ${D}${bindir}/ovs-dpdk
43 chmod 777 -R ${D}${bindir}/ovs-dpdk/*
44}
45
46ALLOW_EMPTY_${PN} = "1"
47INHIBIT_PACKAGE_STRIP = "1"
48PACKAGE_ARCH = "${MACHINE_ARCH}"
49COMPATIBLE_MACHINE = "(qoriq-arm64)"