From bb163fee8840981fce5f8c6c4a15d0adf7e77657 Mon Sep 17 00:00:00 2001 From: Ong Boon Leong Date: Fri, 10 Jul 2015 21:23:42 +0800 Subject: 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 Signed-off-by: Saul Wold --- 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 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" 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 () { -- cgit v1.2.3-54-g00ecf