diff options
author | Ong Boon Leong <boon.leong.ong@intel.com> | 2015-07-10 21:23:49 +0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2015-07-10 08:17:08 -0700 |
commit | 90189cb6226738a9241ff98d8bcff7442efbfe5a (patch) | |
tree | ecd6e5b9c04efb3a5b43963ee96ce9842aa44efc /meta-isg/common/recipes-extended/dpdk/dpdk.inc | |
parent | 407cf5b800fd1b8cfd0e281a3a294351e2829df3 (diff) | |
download | meta-intel-90189cb6226738a9241ff98d8bcff7442efbfe5a.tar.gz |
meta-isg: dpdk: rearrange common meta-data from dpdk_1.8.0.bb into dpdk.inc
Extract out common meta-data from dpdk_1.8.0.bb into dpdk.inc for better
scalability into future dpdk.
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/recipes-extended/dpdk/dpdk.inc')
-rw-r--r-- | meta-isg/common/recipes-extended/dpdk/dpdk.inc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-isg/common/recipes-extended/dpdk/dpdk.inc b/meta-isg/common/recipes-extended/dpdk/dpdk.inc index e1670c50..41251269 100644 --- a/meta-isg/common/recipes-extended/dpdk/dpdk.inc +++ b/meta-isg/common/recipes-extended/dpdk/dpdk.inc | |||
@@ -18,6 +18,25 @@ export ICP_LIB_ROOT= "${PKG_CONFIG_SYSROOT_DIR}/usr/lib" | |||
18 | export RTE_KERNELDIR = "${STAGING_KERNEL_DIR}" | 18 | export RTE_KERNELDIR = "${STAGING_KERNEL_DIR}" |
19 | export RTE_KERNELDIR_OUT = "${STAGING_KERNEL_BUILDDIR}" | 19 | export RTE_KERNELDIR_OUT = "${STAGING_KERNEL_BUILDDIR}" |
20 | export INSTALL_PATH = "${prefix}/dpdk" | 20 | export INSTALL_PATH = "${prefix}/dpdk" |
21 | export SYSROOTPATH = "--sysroot=${STAGING_DIR_HOST}" | ||
22 | export DPDK_TARGET_MACH = "${@get_dpdk_target_mach(bb,d)}" | ||
23 | |||
24 | # The list of intel Comms platforms and their target machine | ||
25 | # process mapping. The supported target machine is listed under | ||
26 | # dpdk/mk/machine | ||
27 | def get_dpdk_target_mach(bb, d): | ||
28 | target_arch = d.getVar('MACHINE_ARCH', True) | ||
29 | multiarch_options = { | ||
30 | "mohonpeak64": "atm", | ||
31 | "mohonpeak32": "atm", | ||
32 | "crystalforest": "ivb", | ||
33 | "romley": "snd", | ||
34 | "romley-ivb": "ivb", | ||
35 | } | ||
36 | |||
37 | if target_arch in multiarch_options : | ||
38 | return multiarch_options[target_arch] | ||
39 | return "" | ||
21 | 40 | ||
22 | do_configure () { | 41 | do_configure () { |
23 | ############################################################# | 42 | ############################################################# |
@@ -38,6 +57,11 @@ do_compile () { | |||
38 | EXTRA_CFLAGS="--sysroot=${STAGING_DIR_HOST} -I${STAGING_INCDIR}" \ | 57 | EXTRA_CFLAGS="--sysroot=${STAGING_DIR_HOST} -I${STAGING_INCDIR}" \ |
39 | CROSS="${TARGET_PREFIX}" \ | 58 | CROSS="${TARGET_PREFIX}" \ |
40 | prefix="" LDFLAGS="" WERROR_FLAGS="-w" V=1 | 59 | prefix="" LDFLAGS="" WERROR_FLAGS="-w" V=1 |
60 | |||
61 | cd ${S}/examples/ | ||
62 | oe_runmake EXTRA_LDFLAGS="-L${STAGING_LIBDIR}" \ | ||
63 | EXTRA_CFLAGS="--sysroot=${STAGING_DIR_HOST} -I${STAGING_INCDIR}" \ | ||
64 | CROSS="${TARGET_PREFIX}" O="${S}/examples/$@/" | ||
41 | } | 65 | } |
42 | 66 | ||
43 | do_install () { | 67 | do_install () { |