mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
net/dpdk: upgrade 18.05.1 -> 19.11
- As part of the update the build system was changed from using make to meson/ninja, which simplifies large parts of the port makefile, and will be the build system for DPDK going forward. PR: 242325 Submitted by: Bruce Richardson <bruce.richardson@intel.com> (maintainer) Relnotes: http://doc.dpdk.org/guides/rel_notes/release_19_11.html https://www.dpdk.org/blog/2019/11/29/dpdk-19-08-is-now-available-biggest-release-of-2019-2/
This commit is contained in:
parent
073ee71b93
commit
d2cfa90a66
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=518967
@ -1,7 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= dpdk
|
||||
PORTVERSION= 18.05.1
|
||||
DISTVERSION= 19.11
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://fast.dpdk.org/rel/
|
||||
|
||||
@ -13,58 +13,34 @@ LICENSE= BSD3CLAUSE
|
||||
ONLY_FOR_ARCHS= amd64
|
||||
ONLY_FOR_ARCHS_REASON= Only works on 64-bit x86 hardware
|
||||
|
||||
USES= gmake kmod shebangfix
|
||||
SHEBANG_FILES= usertools/dpdk-pmdinfo.py
|
||||
MAKEFILE= GNUmakefile
|
||||
NO_PACKAGE= ignores cflags
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-stable-${PORTVERSION}
|
||||
RTE_TARGET= x86_64-native-bsdapp-clang
|
||||
WRKBUILD= ${WRKSRC}/${RTE_TARGET}
|
||||
MAKE_ENV= V=1
|
||||
LIB_DEPENDS= libjansson.so:devel/jansson \
|
||||
libcrypto.so:security/openssl
|
||||
|
||||
ALL_TARGET= install T=${RTE_TARGET}
|
||||
USES= meson kmod shebangfix tar:xz
|
||||
MESON_ARGS= -Dmachine=default -Ddefault_library=shared
|
||||
USE_LDCONFIG= yes
|
||||
SHEBANG_FILES= usertools/dpdk-pmdinfo.py \
|
||||
usertools/dpdk-telemetry-client.py \
|
||||
usertools/dpdk-devbind.py \
|
||||
examples/ipsec-secgw/test/pkttest.py \
|
||||
examples/ipsec-secgw/test/pkttest.sh \
|
||||
examples/ipsec-secgw/test/run_test.sh \
|
||||
examples/ipsec-secgw/test/trs_ipv6opts.py \
|
||||
examples/ipsec-secgw/test/tun_null_header_reconstruct.py \
|
||||
examples/performance-thread/l3fwd-thread/test.sh \
|
||||
|
||||
OPTIONS_DEFINE= EXAMPLES DEBUG TOOLS
|
||||
OPTIONS_DEFAULT=TOOLS
|
||||
OPTIONS_SUB= yes
|
||||
DEBUG_DESC= Debugging support (unoptimized build, impacts performance)
|
||||
TOOLS_DESC= Install tool scripts
|
||||
OPTIONS_DEFINE= EXAMPLES DEBUG TOOLS TESTS
|
||||
OPTIONS_DEFAULT= TOOLS
|
||||
OPTIONS_SUB= yes
|
||||
DEBUG_DESC= Debugging support (unoptimized build, impacts performance)
|
||||
TOOLS_DESC= Install tool scripts
|
||||
TESTS_DESC= Build the automated unit test binary
|
||||
|
||||
DEBUG_MAKE_ENV= EXTRA_CFLAGS='-O0 -g'
|
||||
EXAMPLES_MESON_ON= -Dexamples=all
|
||||
DEBUG_MESON_ON= --buildtype=debug
|
||||
DEBUG_MESON_OFF= --buildtype=release
|
||||
TESTS_MESON_TRUE= tests
|
||||
TOOLS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyelftools>=0:devel/py-pyelftools@${PY_FLAVOR}
|
||||
TOOLS_USES= python:2.7
|
||||
|
||||
# build up the list of files in the compiled directory that should be executable
|
||||
EXEC_FILES= app/testpmd
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}/${RTE_TARGET}/app \
|
||||
${STAGEDIR}${DATADIR}/${RTE_TARGET}/lib \
|
||||
${STAGEDIR}${DATADIR}/${RTE_TARGET}/include/generic
|
||||
cd ${WRKSRC} && ${COPYTREE_SHARE} mk ${STAGEDIR}${DATADIR} \
|
||||
&& ${COPYTREE_SHARE} examples ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${WRKBUILD}/.config ${STAGEDIR}${DATADIR}/${RTE_TARGET}
|
||||
for f in ${EXEC_FILES} ; do \
|
||||
${INSTALL_PROGRAM} ${WRKBUILD}/$$f ${STAGEDIR}${DATADIR}/${RTE_TARGET}/app; \
|
||||
done
|
||||
for f in ${WRKBUILD}/lib/* ; do \
|
||||
${INSTALL_DATA} $$f ${STAGEDIR}${DATADIR}/${RTE_TARGET}/lib ; \
|
||||
done
|
||||
for f in ${WRKBUILD}/include/*.h ; do \
|
||||
${INSTALL_DATA} $$f ${STAGEDIR}${DATADIR}/${RTE_TARGET}/include ; \
|
||||
done
|
||||
for f in ${WRKBUILD}/include/generic/*.h ; do \
|
||||
${INSTALL_DATA} $$f ${STAGEDIR}${DATADIR}/${RTE_TARGET}/include/generic ; \
|
||||
done
|
||||
${LN} -sf ${DATADIR}/${RTE_TARGET}/lib ${STAGEDIR}${PREFIX}/lib/dpdk
|
||||
${LN} -sf ${DATADIR}/${RTE_TARGET}/include ${STAGEDIR}${PREFIX}/include/dpdk
|
||||
${INSTALL_KLD} ${WRKBUILD}/kmod/* ${STAGEDIR}${KMODDIR}
|
||||
|
||||
do-install-EXAMPLES-on:
|
||||
${LN} -sf ${DATADIR}/examples ${STAGEDIR}${EXAMPLESDIR}
|
||||
|
||||
do-install-TOOLS-on:
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/bin/
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/usertools/dpdk-pmdinfo.py ${STAGEDIR}${PREFIX}/bin
|
||||
TOOLS_USES= python:3.5+
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1547152584
|
||||
SHA256 (dpdk-18.05.1.tar.gz) = be0da492290a303b0b09b79b8c9f6976ea7703ecf9f04d50aeead021c82b94b0
|
||||
SIZE (dpdk-18.05.1.tar.gz) = 13919248
|
||||
TIMESTAMP = 1575029584
|
||||
SHA256 (dpdk-19.11.tar.xz) = 467133968843677bb1c276bb74a3458aa7c002cc21e295c51e3bd65497b112ab
|
||||
SIZE (dpdk-19.11.tar.xz) = 12380984
|
||||
|
@ -1,15 +0,0 @@
|
||||
--- kernel/freebsd/contigmem/contigmem.c.orig 2018-09-05 14:29:02 UTC
|
||||
+++ kernel/freebsd/contigmem/contigmem.c
|
||||
@@ -9,9 +9,12 @@
|
||||
#include <sys/bio.h>
|
||||
#include <sys/bus.h>
|
||||
#include <sys/conf.h>
|
||||
+#include <sys/eventhandler.h>
|
||||
#include <sys/kernel.h>
|
||||
+#include <sys/lock.h>
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/module.h>
|
||||
+#include <sys/mutex.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/rwlock.h>
|
||||
#include <sys/systm.h>
|
@ -1,10 +0,0 @@
|
||||
--- kernel/freebsd/nic_uio/nic_uio.c.orig 2018-09-05 14:29:02 UTC
|
||||
+++ kernel/freebsd/nic_uio/nic_uio.c
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <sys/kernel.h> /* types used in module initialization */
|
||||
#include <sys/conf.h> /* cdevsw struct */
|
||||
#include <sys/bus.h> /* structs, prototypes for pci bus stuff and DEVMETHOD */
|
||||
+#include <sys/lock.h> /* used by vm_pager.h => MPASS() */
|
||||
#include <sys/rman.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/rwlock.h>
|
1697
net/dpdk/pkg-plist
1697
net/dpdk/pkg-plist
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user