Thread (37 messages) flat view 37 messages, 4 authors, 2021-03-15

Re: [dpdk-dev] [RFC PATCH v2] build: kni cross-compilation support

From: Bruce Richardson <hidden>
Date: 2021-02-05 09:42:59

On Fri, Feb 05, 2021 at 09:26:05AM +0000, Juraj Linkeš wrote:
quoted
-----Original Message-----
From: Bruce Richardson <redacted>
Sent: Thursday, February 4, 2021 6:34 PM
To: Juraj Linkeš <redacted>
Cc: thomas@monjalon.net; Ruifeng.Wang@arm.com;
Honnappa.Nagarahalli@arm.com; jerinjacobk@gmail.com;
hemant.agrawal@nxp.com; ferruh.yigit@intel.com; aboyer@pensando.io;
dev@dpdk.org
Subject: Re: [RFC PATCH v2] build: kni cross-compilation support

On Thu, Feb 04, 2021 at 10:51:41AM +0100, Juraj Linkeš wrote:
quoted
The kni linux module is using a custom target for building, which
doesn't take into account any cross compilation arguments. The
arguments in question are ARCH, CROSS_COMPILE (for gcc, clang) and CC,
LD (for clang). Get those from the cross file and pass them to the
custom target.

The user supplied path may not contain the 'build' directory, such as
when using cross-compiled headers, so only append that in the default
case (when no path is supplied in native builds) and use the
unmodified path from the user otherwise. Also modify the install path
accordingly.
quoted
Signed-off-by: Juraj Linkeš <redacted>
Some comments inline below.
Thanks, these are very helpful.
<snip>
quoted
quoted
+		install_dir = ''
+		install = false
I think these should be defined and initialized further up the file, outside the
conditional block.
Ok, I'll make the default true and set it to false in the cross compilation case.
Can you just initialize the value to !meson.is_cross_build() and leave it
at that?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help