From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 269991D90 for ; Thu, 12 Oct 2017 10:02:36 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 854F320BD7; Thu, 12 Oct 2017 04:02:36 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Thu, 12 Oct 2017 04:02:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=t11Qapkxg1ObbnV2Chr5whuK6e Jz+Q7RoDZx6PG3JdA=; b=ikCkYgt1IlRGmX+1iBqhumng2lxlfRAKdxCWThahVg OE3BtMMPrQ3O1aEo7kC/zvHmEdYLK9a8+b5bShIEf/a8eNSTDCetgx8YcAGetPva 97OPd1PoD2e6IHw80Lxg5YS1SLKG0zU95EVxam5fKCOzQ4iACM+OuyUu2KNgYyzc A= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=t11Qap kxg1ObbnV2Chr5whuK6eJz+Q7RoDZx6PG3JdA=; b=U3AZzemaBFjOu2WxFJJk6M /DDWdi/CnhGlKhjfW+ls6pxcjiKebe0NRqL6oGgcjrvnSHRl0KUViIn27nxRi4tN 6UpYBhvqIQJ2+MSLL9HwIG4Nr3D9q1kRVEivlMKc2h0VEhZrxFoww+g9NI2KAK8Z N7puRc1DzI26sqkdgmh8+miiTTK/FLEPByNmpNzs04a/hdESYpA3JYt480JaH5Us VC+Qsb+6HO0FSuFA0wx/9YP2hUpOx5k4SPXZmpGSY//ON7NCqxGoQEGssl8aEKL2 7HP51UJTwlxlJTeqtEZIyoBP3JuRj/tg2xk534qs6VTygW73a6Gq3g4vjeP8P5zg == X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 3AD3F7F949; Thu, 12 Oct 2017 04:02:36 -0400 (EDT) From: Thomas Monjalon To: Tomasz Duszynski Cc: ferruh.yigit@intel.com, dev@dpdk.org Date: Thu, 12 Oct 2017 10:02:35 +0200 Message-ID: <1684422.NSDFmNd6YX@xps> In-Reply-To: <20171012062829.GB19106@tdu> References: <60720e51-6dd5-b7dc-5de1-a1e6b0a681c6@intel.com> <20171012023745.23998-1-thomas@monjalon.net> <20171012062829.GB19106@tdu> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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 08:02:37 -0000 12/10/2017 08:28, Tomasz Duszynski: > 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 >=20 > 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. OK I will adapt with crypto patches. > > --- 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 cons= ult > > ``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 >=20 > I personally build MUSDK as follows: >=20 > export CROSS_COMPILE=3D/home/tdu/workspace/gcc-linaro-5.4.1-2017.01-x86_6= 4_aarch64-linux-gnu/bin/aarch64-linux-gnu- >=20 > make clean > ./configure \ > --prefix=3D$(pwd)/musdk-install-dir \ > --enable-bpool-dma=3D64 \ > --enable-sam \ > --disable-shared >=20 > make install >=20 > '--enable-sam' is of course optional if you're not going to use crypto > engine. >=20 > 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. No, the default is to install in usr/local inside musdk directory. > 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. >=20 > > + > > Before the DPDK build process the environmental variable ``LIBMUSDK_PA= TH`` 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 > > + [...] >=20 > Anyway patch looks good. Thanks. > Acked-by: Tomasz Duszynski >=20 > -- > - Tomasz Duszy=C5=84ski Thanks