DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] config/arm: fix warning for native build with meson >= 0.55
@ 2024-10-28 13:10 David Marchand
  2024-10-28 13:12 ` Robin Jarry
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: David Marchand @ 2024-10-28 13:10 UTC (permalink / raw)
  To: dev
  Cc: Wathsala Vithanage, Bruce Richardson, Pavan Nikhilesh,
	Jerin Jacob, Chengwen Feng, Robin Jarry

Caught in UNH logs for native compilation on ARM:

Program /...../dpdk/config/arm/armv8_machine.py found: YES
	(/...../dpdk/config/arm/armv8_machine.py)
WARNING: Project targeting '>= 0.57' but tried to use feature deprecated
	since '0.55.0': ExternalProgram.path. use ExternalProgram.full_path()
	instead

There is nothing to search, nor a reason to call the script with an
absolute path.
The script can be directly pointed at with files().

Fixes: 200b88cbe0e6 ("build: detect micro-arch on ARM")
Fixes: 6f3dbd306de0 ("build: increase minimum meson version to 0.57")

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
 config/arm/meson.build | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/config/arm/meson.build b/config/arm/meson.build
index 55be7c8711..95500c8ed3 100644
--- a/config/arm/meson.build
+++ b/config/arm/meson.build
@@ -784,9 +784,8 @@ else
             # native build
             # The script returns ['Implementer', 'Variant', 'Architecture',
             # 'Primary Part number', 'Revision']
-            detect_vendor = find_program(join_paths(meson.current_source_dir(),
-                                                    'armv8_machine.py'))
-            cmd = run_command(detect_vendor.path(), check: false)
+            detect_vendor = py3 + files('armv8_machine.py')
+            cmd = run_command(detect_vendor, check: false)
             if cmd.returncode() == 0
                 cmd_output = cmd.stdout().to_lower().strip().split(' ')
                 implementer_id = cmd_output[0]
-- 
2.46.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] config/arm: fix warning for native build with meson >= 0.55
  2024-10-28 13:10 [PATCH] config/arm: fix warning for native build with meson >= 0.55 David Marchand
@ 2024-10-28 13:12 ` Robin Jarry
  2024-10-29  0:12 ` fengchengwen
  2024-10-30  8:23 ` David Marchand
  2 siblings, 0 replies; 4+ messages in thread
From: Robin Jarry @ 2024-10-28 13:12 UTC (permalink / raw)
  To: David Marchand, dev
  Cc: Wathsala Vithanage, Bruce Richardson, Pavan Nikhilesh,
	Jerin Jacob, Chengwen Feng

David Marchand, Oct 28, 2024 at 14:10:
> Caught in UNH logs for native compilation on ARM:
>
> Program /...../dpdk/config/arm/armv8_machine.py found: YES
> 	(/...../dpdk/config/arm/armv8_machine.py)
> WARNING: Project targeting '>= 0.57' but tried to use feature deprecated
> 	since '0.55.0': ExternalProgram.path. use ExternalProgram.full_path()
> 	instead
>
> There is nothing to search, nor a reason to call the script with an
> absolute path.
> The script can be directly pointed at with files().
>
> Fixes: 200b88cbe0e6 ("build: detect micro-arch on ARM")
> Fixes: 6f3dbd306de0 ("build: increase minimum meson version to 0.57")
>
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---

Reviewed-by: Robin Jarry <rjarry@redhat.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] config/arm: fix warning for native build with meson >= 0.55
  2024-10-28 13:10 [PATCH] config/arm: fix warning for native build with meson >= 0.55 David Marchand
  2024-10-28 13:12 ` Robin Jarry
@ 2024-10-29  0:12 ` fengchengwen
  2024-10-30  8:23 ` David Marchand
  2 siblings, 0 replies; 4+ messages in thread
From: fengchengwen @ 2024-10-29  0:12 UTC (permalink / raw)
  To: David Marchand, dev
  Cc: Wathsala Vithanage, Bruce Richardson, Pavan Nikhilesh,
	Jerin Jacob, Robin Jarry

Acked-by: Chengwen Feng <fengchengwen@huawei.com>

On 2024/10/28 21:10, David Marchand wrote:
> Caught in UNH logs for native compilation on ARM:
> 
> Program /...../dpdk/config/arm/armv8_machine.py found: YES
> 	(/...../dpdk/config/arm/armv8_machine.py)
> WARNING: Project targeting '>= 0.57' but tried to use feature deprecated
> 	since '0.55.0': ExternalProgram.path. use ExternalProgram.full_path()
> 	instead
> 
> There is nothing to search, nor a reason to call the script with an
> absolute path.
> The script can be directly pointed at with files().
> 
> Fixes: 200b88cbe0e6 ("build: detect micro-arch on ARM")
> Fixes: 6f3dbd306de0 ("build: increase minimum meson version to 0.57")
> 
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---
>  config/arm/meson.build | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/config/arm/meson.build b/config/arm/meson.build
> index 55be7c8711..95500c8ed3 100644
> --- a/config/arm/meson.build
> +++ b/config/arm/meson.build
> @@ -784,9 +784,8 @@ else
>              # native build
>              # The script returns ['Implementer', 'Variant', 'Architecture',
>              # 'Primary Part number', 'Revision']
> -            detect_vendor = find_program(join_paths(meson.current_source_dir(),
> -                                                    'armv8_machine.py'))
> -            cmd = run_command(detect_vendor.path(), check: false)
> +            detect_vendor = py3 + files('armv8_machine.py')
> +            cmd = run_command(detect_vendor, check: false)
>              if cmd.returncode() == 0
>                  cmd_output = cmd.stdout().to_lower().strip().split(' ')
>                  implementer_id = cmd_output[0]


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] config/arm: fix warning for native build with meson >= 0.55
  2024-10-28 13:10 [PATCH] config/arm: fix warning for native build with meson >= 0.55 David Marchand
  2024-10-28 13:12 ` Robin Jarry
  2024-10-29  0:12 ` fengchengwen
@ 2024-10-30  8:23 ` David Marchand
  2 siblings, 0 replies; 4+ messages in thread
From: David Marchand @ 2024-10-30  8:23 UTC (permalink / raw)
  To: David Marchand
  Cc: dev, Wathsala Vithanage, Bruce Richardson, Pavan Nikhilesh,
	Jerin Jacob, Chengwen Feng, Robin Jarry

On Mon, Oct 28, 2024 at 2:11 PM David Marchand
<david.marchand@redhat.com> wrote:
>
> Caught in UNH logs for native compilation on ARM:
>
> Program /...../dpdk/config/arm/armv8_machine.py found: YES
>         (/...../dpdk/config/arm/armv8_machine.py)
> WARNING: Project targeting '>= 0.57' but tried to use feature deprecated
>         since '0.55.0': ExternalProgram.path. use ExternalProgram.full_path()
>         instead
>
> There is nothing to search, nor a reason to call the script with an
> absolute path.
> The script can be directly pointed at with files().
>
> Fixes: 200b88cbe0e6 ("build: detect micro-arch on ARM")
> Fixes: 6f3dbd306de0 ("build: increase minimum meson version to 0.57")
>
> Signed-off-by: David Marchand <david.marchand@redhat.com>

Applied, thanks.


-- 
David Marchand


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-10-30  8:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-28 13:10 [PATCH] config/arm: fix warning for native build with meson >= 0.55 David Marchand
2024-10-28 13:12 ` Robin Jarry
2024-10-29  0:12 ` fengchengwen
2024-10-30  8:23 ` David Marchand

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).