[meta-intel] [master & fido][PATCH 05/16] meta-isg: dpdk: add external kernel module build handling for tmp/work-shared

Ong Boon Leong boon.leong.ong at intel.com
Fri Jul 10 06:23:42 PDT 2015


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 at intel.com>
---
 meta-isg/common/recipes-extended/dpdk/dpdk.inc |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-isg/common/recipes-extended/dpdk/dpdk.inc b/meta-isg/common/recipes-extended/dpdk/dpdk.inc
index 1d985ff..61b3259 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"
 LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=751419260aa954499f7abaabaa882bbe"
 
 RDEPENDS_${PN} += "python-subprocess"
+DEPENDS = "virtual/kernel"
+do_configure[depends] += "virtual/kernel:do_shared_workdir"
 
 inherit module
 
@@ -14,6 +16,7 @@ export RTE_TARGET="${@bb.utils.contains("TUNE_FEATURES", "corei7", "x86_64-ivshm
 export ICP_ROOT = "${PKG_CONFIG_SYSROOT_DIR}/usr/include"
 export ICP_LIB_ROOT= "${PKG_CONFIG_SYSROOT_DIR}/usr/lib"
 export RTE_KERNELDIR = "${STAGING_KERNEL_DIR}"
+export RTE_KERNELDIR_OUT = "${STAGING_KERNEL_BUILDDIR}"
 export INSTALL_PATH = "${prefix}/dpdk"
 
 do_configure () {
-- 
1.7.9.5



More information about the meta-intel mailing list