pkg: support aarch64
authorAnders Roxell <anders.roxell@linaro.org>
Wed, 18 Jan 2017 21:46:03 +0000 (22:46 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 7 Feb 2017 22:47:07 +0000 (23:47 +0100)
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
pkg/dpdk.spec

index 43ff954..a896484 100644 (file)
@@ -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