From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] doc: add build steps to mrvl NIC guide Date: Thu, 12 Oct 2017 10:02:35 +0200 Message-ID: <1684422.NSDFmNd6YX@xps> References: <60720e51-6dd5-b7dc-5de1-a1e6b0a681c6@intel.com> <20171012023745.23998-1-thomas@monjalon.net> <20171012062829.GB19106@tdu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Cc: ferruh.yigit@intel.com, dev@dpdk.org To: Tomasz Duszynski 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) In-Reply-To: <20171012062829.GB19106@tdu> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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