summaryrefslogtreecommitdiffstats
path: root/meta-isg/common
diff options
context:
space:
mode:
authorOng Boon Leong <boon.leong.ong@intel.com>2015-07-10 21:23:42 +0800
committerSaul Wold <sgw@linux.intel.com>2015-07-10 08:16:04 -0700
commitb98a5d0d6c163b92b9460d65836756875d4b6fda (patch)
treee21574267c85e71922bee1b0adeb89a9e8713bd8 /meta-isg/common
parentc36d3bffd15923ba89137e9d4bed2caed9d6c016 (diff)
downloadmeta-intel-b98a5d0d6c163b92b9460d65836756875d4b6fda.tar.gz
meta-isg: dpdk: add external kernel module build handling for tmp/work-shared
DPDK software builds external kernel modules igb_uio.ko, rte_kni.ko & etc that depend on the availability of kernel source. With splitting of kernel source and artifacts into separate fodlers under tmp/work-shared, we need to handle this by introducing do_configure[depends] += "virtual/kernel:do_shared_workdir" to ensure build dependency is satisfied. Refer to poky 46cdaf1 kernel: move source and build output to work-shared This patch also introduces RTE_KERNELDIR_OUT variable to be used to setup the kernel build artifact path. RTE_KERNELDIR remains as the kernel source path. Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta-isg/common')
-rw-r--r--meta-isg/common/recipes-extended/dpdk/dpdk.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-isg/common/recipes-extended/dpdk/dpdk.inc b/meta-isg/common/recipes-extended/dpdk/dpdk.inc
index 1d985ff7..61b32592 100644
--- a/meta-isg/common/recipes-extended/dpdk/dpdk.inc
+++ b/meta-isg/common/recipes-extended/dpdk/dpdk.inc
@@ -4,6 +4,8 @@ LICENSE = "BSD & LGPLv2 & GPLv2"
4LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=751419260aa954499f7abaabaa882bbe" 4LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=751419260aa954499f7abaabaa882bbe"
5 5
6RDEPENDS_${PN} += "python-subprocess" 6RDEPENDS_${PN} += "python-subprocess"
7DEPENDS = "virtual/kernel"
8do_configure[depends] += "virtual/kernel:do_shared_workdir"
7 9
8inherit module 10inherit module
9 11
@@ -14,6 +16,7 @@ export RTE_TARGET="${@bb.utils.contains("TUNE_FEATURES", "corei7", "x86_64-ivshm
14export ICP_ROOT = "${PKG_CONFIG_SYSROOT_DIR}/usr/include" 16export ICP_ROOT = "${PKG_CONFIG_SYSROOT_DIR}/usr/include"
15export ICP_LIB_ROOT= "${PKG_CONFIG_SYSROOT_DIR}/usr/lib" 17export ICP_LIB_ROOT= "${PKG_CONFIG_SYSROOT_DIR}/usr/lib"
16export RTE_KERNELDIR = "${STAGING_KERNEL_DIR}" 18export RTE_KERNELDIR = "${STAGING_KERNEL_DIR}"
19export RTE_KERNELDIR_OUT = "${STAGING_KERNEL_BUILDDIR}"
17export INSTALL_PATH = "${prefix}/dpdk" 20export INSTALL_PATH = "${prefix}/dpdk"
18 21
19do_configure () { 22do_configure () {