dpdk: umark broken on armv7 and explicitly set archs and machine
Signed-off-by: Nathan Owens <ndowens04@gmail.com>
This commit is contained in:
parent
e8d8793acf
commit
ecdd71e339
2 changed files with 27 additions and 8 deletions
17
srcpkgs/dpdk/patches/arm.patch
Normal file
17
srcpkgs/dpdk/patches/arm.patch
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
diff --git config/meson.build config/meson.build
|
||||||
|
index 2bafea5..6b15f13 100644
|
||||||
|
--- config/meson.build
|
||||||
|
+++ config/meson.build
|
||||||
|
@@ -50,11 +50,7 @@ meson.add_install_script('../buildtools/symlink-drivers-solibs.sh',
|
||||||
|
pmd_subdir_opt)
|
||||||
|
|
||||||
|
# set the machine type and cflags for it
|
||||||
|
-if meson.is_cross_build()
|
||||||
|
- machine = host_machine.cpu()
|
||||||
|
-else
|
||||||
|
- machine = get_option('machine')
|
||||||
|
-endif
|
||||||
|
+machine = get_option('machine')
|
||||||
|
|
||||||
|
# machine type 'default' is special, it defaults to the per arch agreed common
|
||||||
|
# minimal baseline needed for DPDK.
|
|
@ -1,11 +1,14 @@
|
||||||
# Template file for 'dpdk'
|
# Template file for 'dpdk'
|
||||||
pkgname=dpdk
|
pkgname=dpdk
|
||||||
version=19.08
|
version=19.08
|
||||||
revision=1
|
revision=2
|
||||||
|
# no musl - uses error.h, execinfo.h and argp.h
|
||||||
|
archs="x86_64 aarch64 ppc64le i686 armv7l"
|
||||||
build_style=meson
|
build_style=meson
|
||||||
configure_args="-Denable_kmods=false -Denable_docs=true -Db_lto=false"
|
configure_args="-Denable_kmods=false -Denable_docs=true -Db_lto=false"
|
||||||
hostmakedepends="doxygen python3-Sphinx pkg-config elfutils"
|
hostmakedepends="doxygen python3-Sphinx pkg-config elfutils"
|
||||||
makedepends="libnuma-devel linux-headers jansson-devel libpcap-devel zlib-devel libressl-devel libbsd-devel libelf libmnl"
|
makedepends="libnuma-devel linux-headers jansson-devel libpcap-devel
|
||||||
|
zlib-devel libressl-devel libbsd-devel libelf libmnl"
|
||||||
depends="python-pyelftools"
|
depends="python-pyelftools"
|
||||||
short_desc="Data Plane Development Kit"
|
short_desc="Data Plane Development Kit"
|
||||||
maintainer="Hans-J. Schmid <knock@myopendoor.de>"
|
maintainer="Hans-J. Schmid <knock@myopendoor.de>"
|
||||||
|
@ -14,12 +17,11 @@ homepage="https://www.dpdk.org/"
|
||||||
distfiles="https://github.com/DPDK/${pkgname}/archive/v${version}.tar.gz"
|
distfiles="https://github.com/DPDK/${pkgname}/archive/v${version}.tar.gz"
|
||||||
checksum=1ceff1a6f4f8d5f6f62c1682097249227ac5225ccd9638e0af09f5411c681038
|
checksum=1ceff1a6f4f8d5f6f62c1682097249227ac5225ccd9638e0af09f5411c681038
|
||||||
|
|
||||||
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
case "${XBPS_TARGET_MACHINE}" in
|
||||||
broken="Usage of error.h, execinfo.h and argp.h"
|
armv7l*) configure_args+=" -Dmachine=armv7-a";;
|
||||||
fi
|
aarch64*) configure_args+=" -Dmachine=armv8-a";;
|
||||||
|
ppc64le*) configure_args+=" -Dmachine=power8";;
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
*) configure_args+=" -Dmachine=default"
|
||||||
armv*) broken="Cannot get define of '__ARM_NEON'";;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue