aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-extended
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-07-13 23:23:15 -0700
committerOtavio Salvador <otavio@ossystems.com.br>2019-07-15 07:29:39 -0300
commit3980b9113952c5a6910005cfaf17eaa9fb8196b5 (patch)
treee9b03276e35eb44ad1199d37c337a935152cb4b1 /recipes-extended
parent467b5754f0606bb0e1c85551f1ed3ee745e626fe (diff)
downloadmeta-freescale-3980b9113952c5a6910005cfaf17eaa9fb8196b5.tar.gz
meta-freescale-3980b9113952c5a6910005cfaf17eaa9fb8196b5.tar.bz2
meta-freescale-3980b9113952c5a6910005cfaf17eaa9fb8196b5.zip
dpdk,dpdkvpp: Limit to x86/arm
Other architectures are not supported and musl is not either Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-extended')
-rw-r--r--recipes-extended/dpdk/dpdk.inc9
-rw-r--r--recipes-extended/vpp-core/dpdkvpp.bb9
2 files changed, 16 insertions, 2 deletions
diff --git a/recipes-extended/dpdk/dpdk.inc b/recipes-extended/dpdk/dpdk.inc
index 9004acc7..4fd2fa04 100644
--- a/recipes-extended/dpdk/dpdk.inc
+++ b/recipes-extended/dpdk/dpdk.inc
@@ -17,7 +17,14 @@ do_configure[depends] += "virtual/kernel:do_shared_workdir"
inherit module
-export RTE_TARGET = "${ARCH}-dpaa-linuxapp-gcc"
+COMPATIBLE_HOST = '(aarch64|arm|i.86|x86_64).*-linux'
+COMPATIBLE_HOST_libc-musl = 'null'
+
+DPDK_RTE_TARGET_x86-64 = "x86_64-native-linuxapp-gcc"
+DPDK_RTE_TARGET_x86 = "i686-native-linuxapp-gcc"
+DPDK_RTE_TARGET ?= "${ARCH}-dpaa-linuxapp-gcc"
+
+export RTE_TARGET = "${DPDK_RTE_TARGET}"
export RTE_OUTPUT = "${S}/${RTE_TARGET}"
export MODULE_DIR = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/net"
diff --git a/recipes-extended/vpp-core/dpdkvpp.bb b/recipes-extended/vpp-core/dpdkvpp.bb
index 09e913e8..1770ce43 100644
--- a/recipes-extended/vpp-core/dpdkvpp.bb
+++ b/recipes-extended/vpp-core/dpdkvpp.bb
@@ -17,7 +17,14 @@ do_configure[depends] += "virtual/kernel:do_shared_workdir"
inherit module
-export RTE_TARGET = "${ARCH}-dpaa-linuxapp-gcc"
+COMPATIBLE_HOST = '(aarch64|arm|i.86|x86_64).*-linux'
+COMPATIBLE_HOST_libc-musl = 'null'
+
+DPDK_RTE_TARGET_x86-64 = "x86_64-native-linuxapp-gcc"
+DPDK_RTE_TARGET_x86 = "i686-native-linuxapp-gcc"
+DPDK_RTE_TARGET ?= "${ARCH}-dpaa-linuxapp-gcc"
+
+export RTE_TARGET = "${DPDK_RTE_TARGET}"
export RTE_OUTPUT = "${S}/${RTE_TARGET}"
S = "${WORKDIR}/git"