aboutsummaryrefslogtreecommitdiffstats
path: root/debian/rules
AgeCommit message (Collapse)AuthorFilesLines
2019-07-04debian/rules: clean doc filesChristian Ehrhardt1-0/+7
Change-Id: I416ec720f738ceed3228c5a2f6f038fbca490e10 Signed-off-by: Santiago Ruano Rincón <santiagorr@riseup.net> Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
2019-01-22binary module build: use kernel headers from highest versionLuca Boccassi1-1/+1
Instead of uname -a, which might return a kernel version for which there are no headers installed (eg: chroot build), use the highest version of kernel headers actually available Change-Id: I8f188e89c71a37e5da828bb79df84b676a771bab Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2019-01-10Dynamically link applications and testsLuca Boccassi1-0/+1
Change-Id: I38a2c93e8e75317facd24eeaab7285e61d3df00f Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2018-11-16Add dpdk_config_options list to DEB_BUILD_OPTIONSLuca Boccassi1-1/+10
Allow users to pass a comma-separated list of meson configure options via DEB_BUILD_OPTIONS Change-Id: I1738428fef207d1e27a2059b07c80425a1609b50 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2018-11-15d/rules: d/control: drop the majority of PMDs to suggest and select only a ↵Christian Ehrhardt1-1/+1
common subset for Recommends Change-Id: I1c88c888206196c727a1902f7ec8008af6b6dee1 Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
2018-11-15set RTE_MACHINE after potential external overrideChristian Ehrhardt1-3/+3
Change-Id: I4bfa59886592511af7ebe6c6d78014675d0a3173 Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
2018-11-15d/rules: select baseline RTE_MACHINE=defaultChristian Ehrhardt1-17/+3
Change-Id: Ic08f51b9d8aa8d76b34a1d9dd35972109253e7dd Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
2018-11-14d/rules: armhf has no default machine, set old default machineChristian Ehrhardt1-1/+1
Change-Id: I066e3b548f23764910113310c578cdf7c6404d81 Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
2018-11-13Restore RTE_MACHINE DEB_BUILD_OPTIONSLuca Boccassi1-1/+24
Pass it to meson, and set reasonable defaults Change-Id: Id2a8a89e9af2dc733c9f486a7bc219adc332f6fc Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2018-11-13Enable PIE hardeningLuca Boccassi1-1/+1
Change-Id: I9e8e8becf32de18defe9c27a904c6cffb1706ad3 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2018-11-13Drop libdpdk-dbgsym - not really used and broken in sidLuca Boccassi1-16/+1
debhelper tools got stricter on acting on packages missing from debian/control, so the generation of libdpdk-dbgsym is broken. It was always a hack anyway since dbgsym are not supposed to be created manually Change-Id: I423e7006049a48085686dfea5c3dc106ec86217a Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2018-11-13Drop dpdk-dev SDKLuca Boccassi1-3/+0
Make dpdk-dev a transitional dummy package, as with pkgconfig upstream support it's no longer necessary for third parties to use the dpdk specific SDK. Change-Id: Ib3710d1c806d0017759599615884da3c133612ae Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2018-11-13Use dh-missingLuca Boccassi1-0/+2
In order to catch new libraries being added, use dh-missing so that installed but unpackaged files cause the build to fail. Add an ignore for custom.css which is always installed even when not building the documentation due to a Meson quirk. Change-Id: I52afa5e6c091ddd6ec9f9d40d1892263b26f191f Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2018-11-13Switch to MesonLuca Boccassi1-257/+37
Switch build system from the legacy makefiles to Meson. Add build dependencies on Meson and pkg-config, update package names to match the shared library files and their symbols files, use dh_install instead of manually copying files, delete pkg-config file as it's provided upstream. Change-Id: I43271c311736f94a96e55b72b0a056ac45d8eb62 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2018-11-12Bump debhelper compat to 10Luca Boccassi1-2/+2
Change-Id: Ia97e2b695735d707b2da500db349de4f8388e6f9 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2018-08-27Implemente terse DEB_BUILD_OPTIONSLuca Boccassi1-4/+5
Change-Id: I05ce1e54095ea7f8256ca7840951252b0105d1cb Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2018-08-24Enable building DPDK for armhfDmitry Eremin-Solenikov1-2/+12
Change-Id: I3f82b8c7a86e822a79a3e406b4877b4d2a58751d Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2018-08-06Enable Intel AES PMDLuca Boccassi1-0/+6
Change-Id: I4cb261e42c349a9140ab910ef5ca963c9db05e8e Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2018-06-05d/rules: handle IFCVF as callback driverChristian Ehrhardt1-0/+5
Change-Id: I24222cd2ba333842063dc0f590c31e38cd7be051 Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
2018-06-05d/rules: adapt to move of kernel modules directories in 18.05Christian Ehrhardt1-2/+2
Change-Id: Ie3e5c1faa8a8d3f1cabf32b1025fd3af5b05a45b Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
2018-03-13Add package and build-dependency MLX4 and MLX5 PMDs.Christian Ehrhardt1-0/+2
Change-Id: I144c22af88bac0ccc7e33e2e6709265f0741b284 Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
2018-02-21Add openssl PMD for 886150Luca Boccassi1-0/+1
Change-Id: Id24c32a8e595d55a5890caf638df509f5e4dbf4b Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2018-01-05dpdk[-doc]: convert all scripts to python3Luca Boccassi1-0/+5
Use dh_python3 to change the shebang of all scripts to python3, and remove the python2 dependency from dpdk. Change-Id: I7baa53e1c0c9261e67fe99cd22f274417593495b Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2018-01-04d/rules: make auto-loaded drivers dir versionedChristian Ehrhardt1-8/+9
The dir registered as CONFIG_RTE_EAL_PMD_PATH= will be loaded by EAL. But that is an issue if multiple versions of DPDK are co-installed. Version A of EAL might load drivers of version B or vice versa. Since this isn't the normal linker loads, but loads from a dir we must version it to avoid issues of these cross-version loads. Fixes: https://bugs.launchpad.net/ubuntu/+source/dpdk/+bug/1741244 Change-Id: I4e97f077f531f7fcb746a2c5b2ffec60d140a4a1 Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
2017-11-09Fix DPDK_ABI parsing when using ~ for RCsLuca Boccassi1-1/+1
Change-Id: I484f7331390c8fb0226becbaeba9e8ff6a50304a Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2017-11-09Drop Xen support and packages, removed upstreamLuca Boccassi1-5/+0
Change-Id: Id1fbdf349cedfc4e479af24e4d53dd24b2ea3a41 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2017-11-09Revert "d/rules: use new dh option names"Luca Boccassi1-2/+2
Ubuntu 16.04 does not ship a debhelper version new enough to support the new option, which breaks the CI. Temporarily revert until we can switch the CI image to 18.04. This reverts commit c7873313a7fe60ac1bc229df2617153cca4318d7. Change-Id: Id29ec8c454094952eaa49b5af071b819e5393b66 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com> (cherry picked from commit b0215431e14505a59e78c436d8fa014378402912) Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2017-11-08Switch dependencies to python3Luca Boccassi1-2/+2
Since the switch to Python 3 Sphynx the dependencies can change too. Change-Id: Iabec22c9ad89c55fdd62a9644bcdadccdea7252d Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2017-11-08Fix DPDK_ABI parsing in d/rules to account for -rcXLuca Boccassi1-1/+1
Change-Id: I3704004c8f0595414cc1ddec62c5884e4a1791b1 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2017-10-23d/rules: use new dh option namesChristian Ehrhardt1-2/+2
From man pages: Note that the --no-restart-on-upgrade alias is deprecated and will be removed in compat 11. This is to avoid confusion with the --no-restart-after-upgrade option. The --no-stop-on-upgrade variant was introduced in debhelper 10.2 (included in Debian stretch). Follow that to be ready for compat 11 in that regard. Change-Id: I7362a90e867bf4fefae66a4f690992b7053eb593 Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
2017-10-23d/rules: properly enable dpdk systemd serviceChristian Ehrhardt1-2/+2
Since ca40d310 "Convert debian/rules to new style DH targets" the installed service is by default disabled which is not intended. Add --with=systemd to dh, to issue the right sequence and be safe against future changes in that regard. Change-Id: I3d8be98397e59a3cc295368bf99fdf343d38419d Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
2017-08-23Use dpkg's DEB_HOST* instead of manually parsingLuca Boccassi1-3/+0
Change-Id: I69663f204ae93da5d77a874af172aa59c831b813 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2017-08-23Use dpkg's DEB_VERSION_UPSTREAM instead of manually parsingLuca Boccassi1-9/+8
Change-Id: I738a14688ba98c61023dc0155a680265d8c572b7 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2017-08-18fix packaging of dpdk-devbindChristian Ehrhardt1-1/+1
17.05 moved all the tools to /usr/share/dpdk/usertools and those that got installed by the makefiles are adapted like dpdk-pmdinfo. But others that we decided to include like dpdk-devbind are missing. So currently this is a broken symlink: /sbin/dpdk-devbind -> /usr/share/dpdk/tools/dpdk-devbind.py And intstead it is at: /usr/share/dpdk/usertools/dpdk-devbind.py Fix by adapting d/rules to link from the right path Change-Id: I89ba54b3df81f5d2170e8a231674a6592935a033 Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
2017-08-03Copy full headers directory into SDKLuca Boccassi1-0/+10
The dpdk-dev SDK package is arch-dependent, as it ships a number of binary executables. Also using RTE_SDK does not support the multiple level of headers, so instead of symlinking into /usr/include/dpdk copy the full set of headers into /usr/share/dpdk/TARGET/include Given dpkg cannot replace a symlink with a directory automatically also generate a preinst file to handle it manually on upgrade. Change-Id: I1fb8fbe424b8ef015c04062f2cffe9f2b9ffe02f Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2017-08-03Use arch-dependent include directory in DKMS confsLuca Boccassi1-0/+4
Generate them at build time to substitute the right directory per architecture to fix the build. Change-Id: Ib6ba0820a27a4cc38d5e11dc94d35f1adece1453 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2017-07-28Fix upstream version parsingLuca Boccassi1-1/+1
The sed regex is greedy, so 17.08-rc2-0vyatta1 returns 17.08-rc2. Match everything until the separator instead. Also use dpkg-parsechangelog --show-field Version to simplify it further. It's available since dpkg-dev 17.0 which is in both Ubuntu 14.04 and Debian 8. Change-Id: Ie3ef44b5573d6ee586e8cf291f307c0539976ead Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2017-07-06Backward compatibility: symlink x86_64 headersLuca Boccassi1-0/+7
To avoid breaking compatibility, at least for the x86_64 users which are the vast majority, symlink arch-specific headers in the general include directory. Change-Id: I684115c9196d7926e15734221e9ad8e1061af432 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2017-06-30Install arch-specific headers in /usr/include/ARCHLuca Boccassi1-4/+15
Fix multiarch compatibility by installing architecture specific headers into the multiarch subdirectory. Change-Id: I877432a659628c15bd68ab48d950d3ee795044f8 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2017-06-20debian/rules: adapt new location and build of testsChristian Ehrhardt1-3/+4
Build test tools which is now split from default build. We want those as we already provided a few of them together with the dpdk-dev package as helpers. Since we want only those from the shared (not the static) build we only add the shared ones. Also along that some paths changed which had to be adapted. This will add testacl and testpipeline tools and unify them with the already provided test and testpmd tools in one directory. Due to that testpmd will no more be in path, but that is correct given that it is a test/dev tool more than a normal end user binary. Change-Id: Ice383b5a70fe26fcd12864a0a86eebe114272108 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com> Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
2017-06-19Adjust install path for UTs and check config firstLuca Boccassi1-5/+7
Do not try to copy the unit test binaries if the config is not enabled. Change-Id: I339eac3b5bfae351085aebb69adbacac99790c03 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2017-06-19Set +x on debian/rulesLuca Boccassi1-0/+0
Change-Id: I932232250c4f7ced707914bc3484b66849db43f1 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2017-06-19Always change ABI in the config regardless of custom filesLuca Boccassi1-1/+2
Packaging is tuned toward having ABI-named packages, so change custom config files too, not only the default ones Change-Id: I8deae49d2b7d589d69e72da407e397ca430752af Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2017-06-19Rename libraries following ABI version rather than library versionLuca Boccassi1-2/+2
Change-Id: I73e00edf4d7135e92d084d5748330ee7b3ab212d Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2017-06-19Merge branch '16.11.x' into 17.05.xLuca Boccassi1-29/+67
Conflicts: app/test-pmd/parameters.c app/test-pmd/testpmd.c debian/changelog debian/control debian/patches/fix-vhost-user-socket-permission.patch debian/rules doc/guides/cryptodevs/qat.rst doc/guides/nics/thunderx.rst doc/guides/rel_notes/release_16_11.rst drivers/net/i40e/i40e_rxtx_vec_neon.c drivers/net/ixgbe/ixgbe_rxtx.c drivers/net/mlx5/mlx5_rxtx.c drivers/net/nfp/nfp_net.c drivers/net/qede/qede_ethdev.c drivers/net/thunderx/nicvf_struct.h drivers/net/virtio/virtio_ethdev.c drivers/net/virtio/virtio_pci.c drivers/net/virtio/virtio_pci.h drivers/net/virtio/virtio_user/virtio_user_dev.c drivers/net/virtio/virtio_user/virtio_user_dev.h drivers/net/virtio/virtio_user_ethdev.c examples/dpdk_qat/main.c examples/performance-thread/l3fwd-thread/main.c examples/quota_watermark/qw/init.c lib/librte_eal/bsdapp/eal/eal_pci.c lib/librte_eal/common/include/rte_version.h lib/librte_vhost/socket.c lib/librte_vhost/vhost.c lib/librte_vhost/vhost.h pkg/dpdk.spec test/test/test_mempool.c Change-Id: I04809b1bcf4ecee4c171c5acb60a8a8aac8cc4a8 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2017-06-14Pass -g via EXTRA_CFLAGSCharles (Chas) Williams1-0/+1
Change-Id: Ieddf137bcb8ed68417b61ac7f66969d20231b4ed Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2017-06-13Remove old compatibility transitional packagesLuca Boccassi1-15/+0
Change-Id: I64ea0708cacbb657895ba2548bd3b02fac9a0c0c Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2017-06-12Generate libdpdk-dev dependencies and dpdk recommendsLuca Boccassi1-0/+7
There are many, many binary packages in DPDK, and they constantly change. To avoid having to manually maintain the list of dependencies of libdpdk-dev and recommends of dpdk, generate them at build time depending on what is actually built for each architecture. Change-Id: I19f5f037c41dc4b1d61fb5b2c00e0f005431d8f0 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2017-06-12Hide dbgsym metapackage behind DEB_BUILD_OPTIONSLuca Boccassi1-11/+23
dbgsym packages go in the -debug section of the archive, and various DDs and FTP Masters have strongly recommended to avoid uploading any such metapackage to Main for this reason. It can be still very useful for users and rebuilders, so leave it disabled behind a dbgsym_meta DEB_BUILD_OPTIONS flag. Change-Id: I112f3195755cc6bafef3167b39d3d47273572377 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
2017-06-12Add dbgsym meta-packageJan Blunck1-0/+6
This adds a meta-package to install all generated -dbgsym packages. Change-Id: If2d802317628d5858ce2a60add445da39ab980e8 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>