From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f44.google.com (mail-lf0-f44.google.com [209.85.215.44]) by dpdk.org (Postfix) with ESMTP id 543F12A5D for ; Thu, 12 Oct 2017 08:28:32 +0200 (CEST) Received: by mail-lf0-f44.google.com with SMTP id b190so4762301lfg.9 for ; Wed, 11 Oct 2017 23:28:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=lGdQdchUl/CE4oJafyWlZBTfaHYVKge8TPeCkE02vU4=; b=E9PymWHQ0CepYLkmcUbwVqoGxaMQ2K5TzezhyTN8fe9fVG5nAtsBxBvnzhuSB5n4sp CF2S+qTJeWIwrsdklcuhJzodF0GkublCAVz6jcuky4MDOJ328FBMR11y3aVULdJ0UCey OoXayWxt1+WEcYGUSZ7b9+WFYYqrOZAqiKhGhjW+4NvV4TV/9tllT4Qfz+Y1bdKLijci jC/MdWyf4z1NoezP2W8eVRX34Pdqrv0qtRzO/+jpLisxUknavZdn20oQKxgjumrk0Lpg vJkOlWcMWGv/G1r67VG+ftpzh2RbQTFS9QHXhX7dyKkfMP/3F//0Z2P7XyGLIlwEKCoA fhMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=lGdQdchUl/CE4oJafyWlZBTfaHYVKge8TPeCkE02vU4=; b=NwOHqcF0zX4M1PgLCrzzQXSE/p3lRl0zLzVqAqLorbKWLs5KEQ3P5q75ssk2hXxM5S bgmJ0DjAdgd/br/xdOUzwuy4Yg4FPkWJ+k79hxdyqSjynABz1eP8X0AIFyI1A+aZmqm1 I7JwP7U7AW7ufqZTLJGmiuo2Nkq6lPQn2FIZHgdObr1QUi3jHMG/rWV5QE3OcaWckraU Zgv06Xg0YQxDy1uAc0RN9UmT+dRnQ4SLbGGYHCgUznjkCg49UA6RDGwjHVQrBLcqUGDM cUCMVqZQ7TxLXETggYzO5WOpJoOGU/sfjreQaZP2hx33HT1W1FiqNUDB44jrXBtFZdJK /QOw== X-Gm-Message-State: AMCzsaVRyUT9QwsZtOLUxEHO+lNyZBXfxnkOsM5oHm7o23ms7sCo44h5 bSPdJiUkNh03pUNLP2Zoi7zw9hYw6YA= X-Google-Smtp-Source: ABhQp+RBluu/YrNAAtZf3FERibMOgpq9P2fog6C93p87bT45I2aSYZSsP7djnyG5Pdr7AGILdV73fw== X-Received: by 10.25.207.71 with SMTP id f68mr478994lfg.151.1507789711851; Wed, 11 Oct 2017 23:28:31 -0700 (PDT) Received: from localhost (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id v26sm1576062ljd.15.2017.10.11.23.28.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Oct 2017 23:28:30 -0700 (PDT) Date: Thu, 12 Oct 2017 08:28:29 +0200 From: Tomasz Duszynski To: Thomas Monjalon Cc: tdu@semihalf.com, ferruh.yigit@intel.com, dev@dpdk.org Message-ID: <20171012062829.GB19106@tdu> References: <60720e51-6dd5-b7dc-5de1-a1e6b0a681c6@intel.com> <20171012023745.23998-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20171012023745.23998-1-thomas@monjalon.net> User-Agent: Mutt/1.5.23.1 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH] doc: add build steps to mrvl NIC guide X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Oct 2017 06:28:32 -0000 On Thu, Oct 12, 2017 at 04:37:45AM +0200, Thomas Monjalon wrote: > Show how to compile MUSDK and enable compilation of the mrvl PMD. > > The build test tool is also updated to support this new PMD. > > Signed-off-by: Thomas Monjalon > --- > devtools/test-build.sh | 4 ++++ > doc/guides/nics/mrvl.rst | 15 +++++++++++++++ > 2 files changed, 19 insertions(+) > > diff --git a/devtools/test-build.sh b/devtools/test-build.sh > index c6dfaf0a8..4d7eaa499 100755 > --- a/devtools/test-build.sh > +++ b/devtools/test-build.sh > @@ -47,6 +47,7 @@ default_path=3D$PATH > # - DPDK_DEP_ZLIB (y/[n]) > # - DPDK_MAKE_JOBS (int) > # - DPDK_NOTIFY (notify-send) > +# - LIBMUSDK_PATH > # - LIBSSO_SNOW3G_PATH > # - LIBSSO_KASUMI_PATH > # - LIBSSO_ZUC_PATH > @@ -129,6 +130,7 @@ reset_env () > unset DPDK_DEP_ZLIB > unset AESNI_MULTI_BUFFER_LIB_PATH > unset ARMV8_CRYPTO_LIB_PATH > + unset LIBMUSDK_PATH > unset LIBSSO_SNOW3G_PATH > unset LIBSSO_KASUMI_PATH > unset LIBSSO_ZUC_PATH > @@ -169,6 +171,8 @@ config () # > sed -ri 's,(RESOURCE_TAR=3D)n,\1y,' $1/.config > test "$DPDK_DEP_MOFED" !=3D y || \ > sed -ri 's,(MLX._PMD=3D)n,\1y,' $1/.config > + test -z "$LIBMUSDK_PATH" || \ > + sed -ri 's,(MRVL_PMD=3D)n,\1y,' $1/.config test-build.sh modifications come with crypto-mrvl patches. The only difference is that PMD_MRVL_CRYPTO is enabled instead of MRVL_PMD. Thus I don't think it will apply after applying crypto patches. > test "$DPDK_DEP_SZE" !=3D y || \ > sed -ri 's,(PMD_SZEDATA2=3D)n,\1y,' $1/.config > test "$DPDK_DEP_ZLIB" !=3D y || \ > diff --git a/doc/guides/nics/mrvl.rst b/doc/guides/nics/mrvl.rst > index 462bc0e9d..df0032bda 100644 > --- a/doc/guides/nics/mrvl.rst > +++ b/doc/guides/nics/mrvl.rst > @@ -221,9 +221,24 @@ Building DPDK > Driver needs precompiled MUSDK library during compilation. Please consult > ``doc/musdk_get_started.txt`` for the detailed build instructions. > > +.. code-block:: console > + > + export CROSS_COMPILE=3D/bin/aarch64-linux-gnu- > + ./bootstrap > + ./configure --enable-bpool-dma=3D64 > + make install I personally build MUSDK as follows: export CROSS_COMPILE=3D/home/tdu/workspace/gcc-linaro-5.4.1-2017.01-x86_64_= aarch64-linux-gnu/bin/aarch64-linux-gnu- make clean =2E/configure \ --prefix=3D$(pwd)/musdk-install-dir \ --enable-bpool-dma=3D64 \ --enable-sam \ --disable-shared make install '--enable-sam' is of course optional if you're not going to use crypto engine. MUSDK ends up in musdk-install-dir then. Otherwise you'll need extra permissions to install to /usr/local. Of course its up to you where would you like to have it installed. The reason I tend to add '--disable-shared' is that during build DPDK will suck in static libraries and then later on I don't have to install MUSDK library on the development board. > + > Before the DPDK build process the environmental variable ``LIBMUSDK_PATH= `` with > the path to the MUSDK installation directory needs to be exported. > > +.. code-block:: console > + > + export LIBMUSDK_PATH=3D/usr/local > + export CROSS=3Daarch64-linux-gnu- > + make config T=3Darm64-armv8a-linuxapp-gcc > + sed -ri 's,(MRVL_PMD=3D)n,\1y,' build/.config > + make > + > > Usage Example > ------------- > -- > 2.14.1 > Anyway patch looks good. Thanks. Acked-by: Tomasz Duszynski -- - Tomasz Duszy=C5=84ski