diff options
Diffstat (limited to 'recipes-extended/ovs-dpdk/ovs-dpdk_2.11.bb')
-rw-r--r-- | recipes-extended/ovs-dpdk/ovs-dpdk_2.11.bb | 49 |
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 @@ | |||
1 | DESCRIPTION = "OVS DPDK" | ||
2 | LICENSE = "BSD" | ||
3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1ce5d23a6429dff345518758f13aaeab" | ||
4 | |||
5 | DEPENDS = "dpdk python-six-native coreutils-native" | ||
6 | RDEPENDS_${PN} = "bash libcrypto libssl python" | ||
7 | |||
8 | inherit pythonnative | ||
9 | |||
10 | SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/ovs-dpdk;nobranch=1 \ | ||
11 | " | ||
12 | SRCREV = "abc80ef87a8786050f27afb2a797cadd14e2a6bd" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | DPAA_VER ?= "dpaa" | ||
17 | export RTE_TARGET = "${ARCH}-${DPAA_VER}-linuxapp-gcc" | ||
18 | |||
19 | EXTRA_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 | |||
25 | do_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 | |||
31 | do_compile() { | ||
32 | oe_runmake O="${RTE_TARGET}" T="${RTE_TARGET}" | ||
33 | } | ||
34 | |||
35 | do_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 | |||
46 | ALLOW_EMPTY_${PN} = "1" | ||
47 | INHIBIT_PACKAGE_STRIP = "1" | ||
48 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
49 | COMPATIBLE_MACHINE = "(qoriq-arm64)" | ||