summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-03-27 17:21:16 +0800
committerGitHub <noreply@github.com>2020-03-27 10:21:16 +0100
commite1238bae9053d3c283c1721f85af78f3539f473d (patch)
treef724a8fd44b0abf838a9d6f325948edc320ada8a
parent6a33c269bddda4cdce941930aa834aad05770d62 (diff)
downloadspack-e1238bae9053d3c283c1721f85af78f3539f473d.tar.gz
spack-e1238bae9053d3c283c1721f85af78f3539f473d.tar.bz2
spack-e1238bae9053d3c283c1721f85af78f3539f473d.tar.xz
spack-e1238bae9053d3c283c1721f85af78f3539f473d.zip
dpdk: added new package at v20.02 (#15635)
-rw-r--r--var/spack/repos/builtin/packages/dpdk/package.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/dpdk/package.py b/var/spack/repos/builtin/packages/dpdk/package.py
new file mode 100644
index 0000000000..c25b32c8d7
--- /dev/null
+++ b/var/spack/repos/builtin/packages/dpdk/package.py
@@ -0,0 +1,29 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Dpdk(MakefilePackage):
+ """DPDK is a set of libraries and drivers for fast packet processing.
+ It supports many processor architectures and both FreeBSD and Linux."""
+
+ homepage = "https://github.com/DPDK/dpdk"
+ url = "https://github.com/DPDK/dpdk/archive/v19.11.tar.gz"
+
+ version('20.02', sha256='29e56ea8e47e30110ecb881fa5a37125a865dd2d45b61f68e93e334caaab16b7')
+ version('19.11', sha256='ce1befb20a5e5c5399b326a39cfa23314a5229c0ced2553f53b09b1ae630706b')
+ version('19.08', sha256='1ceff1a6f4f8d5f6f62c1682097249227ac5225ccd9638e0af09f5411c681038')
+ version('19.05', sha256='5fea95cb726e6adaa506dab330e79563ccd4dacf03f126c826aabdced605d32b')
+ version('19.02', sha256='04885d32c86fff5aefcfffdb8257fed405233602dbcd22f8298be13c2e285a50')
+
+ depends_on('numactl')
+
+ def build(self, spec, prefix):
+ make('defconfig')
+ make()
+
+ def install(self, spec, prefix):
+ install_tree('.', prefix)