From 74ab50711bfcfa7947709f8ee3db9a193ff5aa06 Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Tue, 7 Mar 2017 13:59:26 +0100 Subject: Uprev the dpdk append To keep in synch with meta-intel Signed-off-by: Adrian Dudau Signed-off-by: Martin Borg --- recipes-extended/dpdk/dpdk_17.02.bbappend | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 recipes-extended/dpdk/dpdk_17.02.bbappend (limited to 'recipes-extended/dpdk/dpdk_17.02.bbappend') diff --git a/recipes-extended/dpdk/dpdk_17.02.bbappend b/recipes-extended/dpdk/dpdk_17.02.bbappend new file mode 100644 index 0000000..ca155d0 --- /dev/null +++ b/recipes-extended/dpdk/dpdk_17.02.bbappend @@ -0,0 +1,27 @@ +COMPATIBLE_MACHINE_inteld1521 = "inteld1521" +COMPATIBLE_MACHINE_qemux86-64 = "qemux86-64" + +# lspci - required by dpdk tools/scripts +RDEPENDS_${PN} += "pciutils" + +export RTE_TARGET="${@bb.utils.contains("TUNE_FEATURES", "m64", "x86_64-native-linuxapp-gcc", "i686-native-linuxapp-gcc", d)}" +export ETHTOOL_LIB_PATH = "${S}/examples/ethtool/lib/${RTE_TARGET}/lib/" + +# Overrides the default value set to DPDK_TARGET_MACH in dpdk.inc, +# with the purpose adding 'inteld1521' to 'multiarch_options' +export DPDK_TARGET_MACH = "${@get_dpdk_target(bb,d)}" + +def get_dpdk_target(bb, d): + target_arch = d.getVar('MACHINE_ARCH', True) + multiarch_options = { + "mohonpeak64":"atm", + "mohonpeak32":"atm", + "crystalforest": "ivb", + "intel_corei7_64": "hsw", + "inteld1521": "hsw", + "qemux86_64": "default", + } + + if target_arch in multiarch_options : + return multiarch_options[target_arch] + return "" -- cgit v1.2.3-54-g00ecf