Skip to contentSkip to conversation

pkg: add aarch64 support

PATCH In review Anders Roxell 2 participants 3 messages Jan 18, 2017 – Feb 7, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 pkg: add aarch64 support

---
 pkg/dpdk.spec | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
pkg/dpdk.spec +7 -1
index 189cb2f2..a27bdd3b 100644
@@ -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
Signature · 1 line
2.11.0
#1 lore raw

PATCH 2/2 pkg: remove xen-devel for aarch64

Disable xen-devel since it just got available for aarch64 in Fedora 25.

---
 pkg/dpdk.spec | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
pkg/dpdk.spec +6 -1
index a27bdd3b..ad30ecf8 100644
@@ -51,7 +51,10 @@ ExclusiveArch: i686 x86_64 aarch64
 %global config %{_arch}-native-linuxapp-gcc
 %endif
 
-BuildRequires: kernel-devel, kernel-headers, libpcap-devel, xen-devel
+BuildRequires: kernel-devel, kernel-headers, libpcap-devel
+%ifarch i686 x86_64
+BuildRequires: xen-devel
+%endif
 BuildRequires: doxygen, python-sphinx, inkscape
 BuildRequires: texlive-collection-latexextra
 
@@ -109,7 +112,9 @@ sed -ri 's,(RTE_BUILD_SHARED_LIB=).*,\1y,' %{target}/.config
 sed -ri 's,(RTE_NEXT_ABI=).*,\1n,'         %{target}/.config
 sed -ri 's,(LIBRTE_VHOST=).*,\1y,'         %{target}/.config
 sed -ri 's,(LIBRTE_PMD_PCAP=).*,\1y,'      %{target}/.config
+%ifarch i686 x86_64
 sed -ri 's,(LIBRTE_PMD_XENVIRT=).*,\1y,'   %{target}/.config
+%endif
 make O=%{target} %{?_smp_mflags}
 make O=%{target} doc
 
Signature · 1 line
2.11.0