pkg: add aarch64 support
PATCH 1/2 pkg: add aarch64 support
Signed-off-by Anders Roxell <[email protected]>
--- pkg/dpdk.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
pkg/dpdk.spec +7 -1
@@ -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
PATCH 2/2 pkg: remove xen-devel for aarch64
Disable xen-devel since it just got available for aarch64 in Fedora 25.
Signed-off-by Anders Roxell <[email protected]>
--- pkg/dpdk.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
pkg/dpdk.spec +6 -1
@@ -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
2017-01-18 22:46, Anders Roxell:
Quoted 1 line
Signed-off-by Anders Roxell <[email protected]>
Series applied, thanks