From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id D720F5951 for ; Tue, 4 Feb 2014 16:53:58 +0100 (CET) Received: by mail-wg0-f52.google.com with SMTP id b13so12820682wgh.31 for ; Tue, 04 Feb 2014 07:55:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=90qj6tV2Nkg7o1H9tOz5E/f/s0dyALdBUDczWFFeenw=; b=CK7HQ1ghTFEhzdJos0OPEcc3kEOEhbAh4zn21o2Q5yIb8ooK1ZWES1JvsV/CYvkmmY oPJj6T4W4XCyZMW/8Rex5sDgiBsQ0RffHQteKDRFjwieXKDmTxmHXgf6V0NZWzPtteo5 YzurcDWYq98ExcUYZpt2mt6T7/ZmLbcpqOCjcicfXBVhnml8B3HI/sD2CU4Lg9oC5hkF lpdLKcQz5hmXaMCzDTSFR5thgDlaXagagn/F9ABc0dMDfG9IVoDEEfAvWTGLHbpR6VEO 216pCppqIKNMoe5mt3ggzv581iOmdKVXGug6SwVSxayfF+BatPGauJM2cOQOQlMRSu47 +6eA== X-Gm-Message-State: ALoCoQmHmmg8s/4tD4fdMg5fzwURWiECLZtn0SdxjRRdHrdA9aca1y1mb21i6AnMUi5eGVYaoH6K X-Received: by 10.180.164.229 with SMTP id yt5mr986359wib.49.1391529319609; Tue, 04 Feb 2014 07:55:19 -0800 (PST) Received: from angus.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id q2sm53639203wjq.0.2014.02.04.07.55.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Feb 2014 07:55:18 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org Date: Tue, 4 Feb 2014 16:54:31 +0100 Message-Id: <1391529271-24606-17-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1391529271-24606-1-git-send-email-thomas.monjalon@6wind.com> References: <1391529271-24606-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [memnic PATCH 16/16] pkg: add recipe for RPM X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Feb 2014 15:53:59 -0000 Packages can be built with: rpmbuild -ta memnic-1.1.tar.gz There are packages for kernel module and PMD versions. Signed-off-by: Thomas Monjalon --- pkg/rpm.spec | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 pkg/rpm.spec diff --git a/pkg/rpm.spec b/pkg/rpm.spec new file mode 100644 index 0000000..a5183f0 --- /dev/null +++ b/pkg/rpm.spec @@ -0,0 +1,95 @@ +# Copyright 2014 6WIND S.A. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# - Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# - Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the +# distribution. +# +# - Neither the name of 6WIND S.A. nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED +# OF THE POSSIBILITY OF SUCH DAMAGE. + +Name: memnic +Version: 1.0 +Release: 1 +Packager: packaging@6wind.com +URL: http://dpdk.org/doc/memnic-pmd +Source: http://dpdk.org/browse/memnic/snapshot/memnic-%{version}.tar.gz + +Summary: MEMNIC +Group: System Environment/Libraries +License: BSD and GPLv2 + +ExclusiveArch: i686, x86_64 +%define target %{_arch}-default-linuxapp-gcc + +%description +Dummy main package. Make only subpackages. + +%package -n dpdk-memnic +BuildRequires: dpdk-core-devel +Requires: dpdk-core-runtime +Summary: MEMNIC driver for Intel(r) Data Plane Development Kit +%description -n dpdk-memnic +MEMNIC is a paravirtualized network interface (PMD) based +on memory copy and introduced by NEC. +It has similar concepts to virtio-net, but does not use the vring framework. +Instead, it is based on a queue of mailboxed packets which are copied +in IVSHMEM between the host and the guest. + +%define datadir %{_datadir}/dpdk +%define docdir %{_docdir}/dpdk + +%package kmod +BuildRequires: kernel-devel +Summary: MEMNIC kernel driver +%description kmod +MEMNIC is a paravirtualized network interface (netdevice driver) based +on memory copy and introduced by NEC. +It has similar concepts to virtio-net, but does not use the vring framework. +Instead, it is based on a queue of mailboxed packets which are copied +in IVSHMEM between the host and the guest. + +%define modroot /lib/modules/%(uname -r) +%define kerneldir %{modroot}/build +%define moddir %{modroot}/extra + +%prep +%setup -q + +%build +make %{?_smp_mflags} -C pmd RTE_INCLUDE=%{datadir}/%{target}/include +make %{?_smp_mflags} -C %{kerneldir} M=$(pwd)/linux + +%install +rm -rf %{buildroot} +make install -C pmd DESTDIR=%{buildroot} libdir=%{_libdir} docdir=%{docdir} +make modules_install -C %{kerneldir} M=$(pwd)/linux INSTALL_MOD_PATH=%{buildroot} +rm -f %{buildroot}%{modroot}/modules.* + +%files -n dpdk-memnic +%{_libdir}/* +%doc %{docdir} + +%files kmod +%{moddir}/* -- 1.7.10.4