DPDK patches and discussions
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas@monjalon.net>
To: Tom Barbette <barbette@kth.se>
Cc: dev@dpdk.org, Matthew Hall <mhall@mhcomputing.net>
Subject: Re: [dpdk-dev] Impossible to build external application if user build DPDK with "make config"
Date: Fri, 27 Mar 2020 11:35:47 +0100	[thread overview]
Message-ID: <1935321.K71DO8KEF6@xps> (raw)
In-Reply-To: <83f48ac2-cf68-dc19-dc6b-d775e0b3de4e@kth.se>

27/03/2020 10:14, Tom Barbette:
> CC'ing original participants as I don't see a way out of this.
> 
> Le 12/03/2020 à 13:04, Tom Barbette a écrit :
> > Hi all,
> > 
> > If the user follows the quick guide 
> > (http://core.dpdk.org/doc/quick-start/) DPDK will be compiled in the 
> > "build" folder.
> > 
> > However, external applications will always fail to build because 
> > RTE_SDK_BIN is strictly defined as $RTE_SDK/$RTE_TARGET, and 
> > mk/internal/rte.extvars.mk needs to find .config in $RTE_SDK_BIN.
> > 
> > Therefore please apply the patch at:
> > http://patchwork.dpdk.org/patch/9991/ that allows external apps to 
> > override $RTE_SDK_BIN.
> > 
> > Or (less preferable) modify the quick start guide to use something more 
> > standard that allows to build with external apps (eg use the menu or 
> > propose "make config T=x86_64-native-linuxapp-gcc 
> > O=x86_64-native-linuxapp-gcc" instead). It's much easier for external 
> > apps maintainer to refer to the DPDK tutorial for DPDK installation.

I don't understand the issue.
First of all, the external application should link an installed DPDK.
Then you should be able to set $RTE_SDK and $RTE_TARGET to fit
the installation directories.

Just checked doc/guides/linux_gsg/build_dpdk.rst
I see the whole build process with make is not correctly documented.
It should be:

1/
	make defconfig
	or
	make config T=x86_64-native-linux-gcc O=mybuild

2/	make -j4 O=mybuild

3/	make install O=mybuild DESTDIR=myinstall prefix=

4/	RTE_SDK=$(pwd)/myinstall/share/dpdk RTE_TARGET=x86_64-native-linux-gcc make -C myapp

Please can you confirm it works?



  reply	other threads:[~2020-03-27 10:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-12 12:04 Tom Barbette
2020-03-27  9:14 ` Tom Barbette
2020-03-27 10:35   ` Thomas Monjalon [this message]
2020-03-27 12:35     ` Tom Barbette
2020-03-27 13:55       ` Thomas Monjalon
2020-03-27 14:24         ` Tom Barbette
2020-03-27 15:06           ` Thomas Monjalon
2020-03-27 15:53             ` Tom Barbette
2020-03-27 22:40               ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1935321.K71DO8KEF6@xps \
    --to=thomas@monjalon.net \
    --cc=barbette@kth.se \
    --cc=dev@dpdk.org \
    --cc=mhall@mhcomputing.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).