diff options
author | Ong Boon Leong <boon.leong.ong@intel.com> | 2015-07-10 21:23:42 +0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2015-07-10 08:16:04 -0700 |
commit | b98a5d0d6c163b92b9460d65836756875d4b6fda (patch) | |
tree | e21574267c85e71922bee1b0adeb89a9e8713bd8 /meta-isg/common | |
parent | c36d3bffd15923ba89137e9d4bed2caed9d6c016 (diff) | |
download | meta-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.inc | 3 |
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" | |||
4 | LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=751419260aa954499f7abaabaa882bbe" | 4 | LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=751419260aa954499f7abaabaa882bbe" |
5 | 5 | ||
6 | RDEPENDS_${PN} += "python-subprocess" | 6 | RDEPENDS_${PN} += "python-subprocess" |
7 | DEPENDS = "virtual/kernel" | ||
8 | do_configure[depends] += "virtual/kernel:do_shared_workdir" | ||
7 | 9 | ||
8 | inherit module | 10 | inherit module |
9 | 11 | ||
@@ -14,6 +16,7 @@ export RTE_TARGET="${@bb.utils.contains("TUNE_FEATURES", "corei7", "x86_64-ivshm | |||
14 | export ICP_ROOT = "${PKG_CONFIG_SYSROOT_DIR}/usr/include" | 16 | export ICP_ROOT = "${PKG_CONFIG_SYSROOT_DIR}/usr/include" |
15 | export ICP_LIB_ROOT= "${PKG_CONFIG_SYSROOT_DIR}/usr/lib" | 17 | export ICP_LIB_ROOT= "${PKG_CONFIG_SYSROOT_DIR}/usr/lib" |
16 | export RTE_KERNELDIR = "${STAGING_KERNEL_DIR}" | 18 | export RTE_KERNELDIR = "${STAGING_KERNEL_DIR}" |
19 | export RTE_KERNELDIR_OUT = "${STAGING_KERNEL_BUILDDIR}" | ||
17 | export INSTALL_PATH = "${prefix}/dpdk" | 20 | export INSTALL_PATH = "${prefix}/dpdk" |
18 | 21 | ||
19 | do_configure () { | 22 | do_configure () { |