[dpdk-dev,1/2] pkg: add aarch64 support

Message ID 20170118214604.32498-1-anders.roxell@linaro.org (mailing list archive)
State Accepted, archived
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel compilation success Compilation OK

Commit Message

Anders Roxell Jan. 18, 2017, 9:46 p.m. UTC
  Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 pkg/dpdk.spec | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
  

Comments

Thomas Monjalon Feb. 7, 2017, 5:13 p.m. UTC | #1
2017-01-18 22:46, Anders Roxell:
> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>

Series applied, thanks
  

Patch

diff --git a/pkg/dpdk.spec b/pkg/dpdk.spec
index 189cb2f2..a27bdd3b 100644
--- a/pkg/dpdk.spec
+++ b/pkg/dpdk.spec
@@ -40,10 +40,16 @@  Summary: Data Plane Development Kit core
 Group: System Environment/Libraries
 License: BSD and LGPLv2 and GPLv2
 
-ExclusiveArch: i686, x86_64
+ExclusiveArch: i686 x86_64 aarch64
+%ifarch aarch64
+%global machine armv8a
+%global target arm64-%{machine}-linuxapp-gcc
+%global config arm64-%{machine}-linuxapp-gcc
+%else
 %global machine default
 %global target %{_arch}-%{machine}-linuxapp-gcc
 %global config %{_arch}-native-linuxapp-gcc
+%endif
 
 BuildRequires: kernel-devel, kernel-headers, libpcap-devel, xen-devel
 BuildRequires: doxygen, python-sphinx, inkscape