DPDK patches and discussions
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas@monjalon.net>
To: Ferruh Yigit <ferruh.yigit@intel.com>
Cc: dev@dpdk.org, david.marchand@redhat.com,
	bruce.richardson@intel.com, stable@dpdk.org,
	Luca Boccassi <bluca@debian.org>
Subject: Re: [dpdk-dev] [PATCH 1/1] devtools: fix build test config inheritance from env
Date: Tue, 10 Nov 2020 18:55:35 +0100	[thread overview]
Message-ID: <3123620.zLnPt8Nx3Z@thomas> (raw)
In-Reply-To: <ae0bedfd-06d9-10d3-54f9-df288dc6807a@intel.com>

10/11/2020 18:18, Ferruh Yigit:
> On 11/9/2020 9:00 PM, Thomas Monjalon wrote:
> > PKG_CONFIG_PATH is specific to each target, so it must be empty
> > before configuring each build from the file according to DPDK_TARGET.
> > Inheriting a default PKG_CONFIG_PATH for all targets does not make sense
> > and is prone to confusion.
[...]
> In same run both 64bit and 32bit builds are done,

Multiple targets can be built yes.

> At least for my environment,
> for 64bit, PKG_CONFIG_PATH should be '/usr/local/lib64/pkgconfig/'
> for 32bit, PKG_CONFIG_PATH should be '/usr/lib/pkgconfig/'

Not sure you need to set these values in PKG_CONFIG_PATH.
At least /usr/lib/pkgconfig/ is already set in PKG_CONFIG_LIBDIR.

Let me rephrase the man page of pkg-config:
PKG_CONFIG_LIBDIR is the primary paths list
PKG_CONFIG_PATH is the secondary paths list

> What should I set in the config file to support both?

The standard paths for your 64-bit machine should be built-in
in your pkg-config.
The standard path for 32-bit is already set automatically
in devtools/test-meson-builds.sh.
Only additional specific paths should be set in a config file.

What is a config file? It is loaded by devtools/load-devel-config:
	- /etc/dpdk/devel.config (system-wide)
	- or ~/.config/dpdk/devel.config (user config)
	- or .develconfig (project directory config)
Personally I set all my configs in ~/.config/dpdk/devel.config.
Note that the same file is used to configure multiple tools.

For each build, some variables are reset the variable DPDK_TARGET is set,
and the config file is sourced.
The typical values of DPDK_TARGET are:
	- i386-pc-linux-gnu
	- x86_64-pc-linux-gnu
	- x86_64-w64-mingw32
	- aarch64-linux-gnu
	- powerpc64le-linux-gcc

TLDR, I assume you just want to set an additional 64-bit path,
so the config file should look like:

if [ "$DPDK_TARGET" = x86_64-pc-linux-gnu ] ; then
	export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib64/pkgconfig
fi



  reply	other threads:[~2020-11-10 17:55 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-09 21:00 Thomas Monjalon
2020-11-10 10:14 ` Bruce Richardson
2020-11-10 10:45   ` Thomas Monjalon
2020-11-10 11:20     ` Bruce Richardson
2020-11-10 14:08       ` Jerin Jacob
2020-11-10 17:18 ` Ferruh Yigit
2020-11-10 17:55   ` Thomas Monjalon [this message]
2020-11-10 18:09     ` Ferruh Yigit
2020-11-11  9:18       ` Bruce Richardson
2020-11-11 10:37         ` Thomas Monjalon
2020-11-11 11:00           ` Bruce Richardson
2020-11-11 11:13             ` Ferruh Yigit
2020-11-11 11:18               ` Thomas Monjalon
2020-11-12 14:22 ` [dpdk-dev] [PATCH v2 " Thomas Monjalon
2020-11-12 14:36   ` David Marchand

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=3123620.zLnPt8Nx3Z@thomas \
    --to=thomas@monjalon.net \
    --cc=bluca@debian.org \
    --cc=bruce.richardson@intel.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=stable@dpdk.org \
    /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).