[meta-intel] [meta-dpdk 2/3] dpdk: Add the missing return in get_dpdk_target_mach()

Kevin Hao kexin.hao at windriver.com
Thu Apr 12 22:07:00 PDT 2018


Otherwise it always return "default" no matter what we set in
"DPDK_TARGET_MACHINE".

Signed-off-by: Kevin Hao <kexin.hao at windriver.com>
---
 recipes-extended/dpdk/dpdk.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-extended/dpdk/dpdk.inc b/recipes-extended/dpdk/dpdk.inc
index aa03a67d0639..01724fbe5188 100644
--- a/recipes-extended/dpdk/dpdk.inc
+++ b/recipes-extended/dpdk/dpdk.inc
@@ -65,7 +65,7 @@ export ARCHDIR = "generic"
 def get_dpdk_target_mach(bb, d):
     target_arch = d.getVar('DPDK_TARGET_MACHINE', True)
     if target_arch:
-            target_arch
+            return target_arch
     return "default"
 
 do_configure () {
-- 
2.14.3



More information about the meta-intel mailing list