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 178E24C57 for ; Thu, 12 Oct 2017 04:37:55 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 9CEE9209F3; Wed, 11 Oct 2017 22:37:54 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Wed, 11 Oct 2017 22:37:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=mesmtp; bh=3w2wVpsoTNK6lW MWzLpdE4BiMrkD+IykqHqvXLHgSL0=; b=kHWe/giShv+JNAjsjo3DWUWB/NF899 ZNgToYw6W4VvY40NunZBUcKrCSE1vtGZ4hgZg0PIwO+ooFbSAjn5bwHfqt1b9oKN QiycO4aBcw9L+aA87WNhDlNbgYejHxhdlFZPblYEo//yj4D6sVtTIf2shp+Lv7Hs vS3Yji3+hfvpQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=3w2wVpsoTNK6lWMWzLpdE4BiMrkD+IykqHqvXLHgSL0=; b=lAmGJcVb QZkN2meDANkg5eaqBbaA8iXtuXJ4KvYtJSaOcxob0zbhjT3uYGSyJ7mP3N28+GGV RrFG9CgvyalMXEtUVfg0blQsrvmDs055sI5l3MUSGmLwQCgZvN7yfad+cxwsslWQ 4GS5TNlRV2+dFUGqo7HTAJ3c1dsT1YMC8uw2Wj1uQKehlvD/ADYPCiMdrRBsyqWZ ZjqIVswIj1dLnUs+ggIHCBry7eTYXIIGPvb6U3tmZLrx026fRgJ0oT5kHW8PWEIt nVAYIQTJCnoYNoo9T0AP9TD0heJVQu9hayev+4jgf+5eXvumylXXuWdTvkzK8ydn xovsRlHsmWwUyw== X-ME-Sender: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id DD29F24775; Wed, 11 Oct 2017 22:37:53 -0400 (EDT) From: Thomas Monjalon To: tdu@semihalf.com Cc: ferruh.yigit@intel.com, dev@dpdk.org Date: Thu, 12 Oct 2017 04:37:45 +0200 Message-Id: <20171012023745.23998-1-thomas@monjalon.net> X-Mailer: git-send-email 2.14.1 In-Reply-To: <60720e51-6dd5-b7dc-5de1-a1e6b0a681c6@intel.com> References: <60720e51-6dd5-b7dc-5de1-a1e6b0a681c6@intel.com> Subject: [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 02:37:55 -0000 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=$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=)n,\1y,' $1/.config test "$DPDK_DEP_MOFED" != y || \ sed -ri 's,(MLX._PMD=)n,\1y,' $1/.config + test -z "$LIBMUSDK_PATH" || \ + sed -ri 's,(MRVL_PMD=)n,\1y,' $1/.config test "$DPDK_DEP_SZE" != y || \ sed -ri 's,(PMD_SZEDATA2=)n,\1y,' $1/.config test "$DPDK_DEP_ZLIB" != 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=/bin/aarch64-linux-gnu- + ./bootstrap + ./configure --enable-bpool-dma=64 + make install + 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=/usr/local + export CROSS=aarch64-linux-gnu- + make config T=arm64-armv8a-linuxapp-gcc + sed -ri 's,(MRVL_PMD=)n,\1y,' build/.config + make + Usage Example ------------- -- 2.14.1