diff options
author | Gabriel Ionescu <gabriel.ionescu@enea.com> | 2016-12-28 17:41:29 +0100 |
---|---|---|
committer | Adrian Calianu <adrian.calianu@enea.com> | 2016-12-29 12:56:19 +0100 |
commit | 1e1a39992540f5026b02819ba91c072ee16e61d3 (patch) | |
tree | 7f2ca5594ab83a8347a482b0fb0fe6de95126255 /recipes-extended/dpdk/dpdk_16.11.bbappend | |
parent | 6f25bdd8182606a6149595a80abb88e1c535702a (diff) | |
download | meta-enea-bsp-x86-1e1a39992540f5026b02819ba91c072ee16e61d3.tar.gz |
Fixed DPDK build failure for inteld1521
Signed-off-by: Gabriel Ionescu <gabriel.ionescu@enea.com>
Signed-off-by: Adrian Calianu <adrian.calianu@enea.com>
Diffstat (limited to 'recipes-extended/dpdk/dpdk_16.11.bbappend')
-rw-r--r-- | recipes-extended/dpdk/dpdk_16.11.bbappend | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes-extended/dpdk/dpdk_16.11.bbappend b/recipes-extended/dpdk/dpdk_16.11.bbappend new file mode 100644 index 0000000..f536065 --- /dev/null +++ b/recipes-extended/dpdk/dpdk_16.11.bbappend | |||
@@ -0,0 +1,19 @@ | |||
1 | COMPATIBLE_MACHINE_inteld1521 = "inteld1521" | ||
2 | |||
3 | # Overrides the default value set to DPDK_TARGET_MACH in dpdk.inc, | ||
4 | # with the purpose adding 'inteld1521' to 'multiarch_options' | ||
5 | export DPDK_TARGET_MACH = "${@get_dpdk_target(bb,d)}" | ||
6 | |||
7 | def get_dpdk_target(bb, d): | ||
8 | target_arch = d.getVar('MACHINE_ARCH', True) | ||
9 | multiarch_options = { | ||
10 | "mohonpeak64":"atm", | ||
11 | "mohonpeak32":"atm", | ||
12 | "crystalforest": "ivb", | ||
13 | "intel_corei7_64": "hsw", | ||
14 | "inteld1521": "hsw", | ||
15 | } | ||
16 | |||
17 | if target_arch in multiarch_options : | ||
18 | return multiarch_options[target_arch] | ||
19 | return "" | ||