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
  0 siblings, 1 reply; 2+ 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] 2+ messages in thread

end of thread, other threads:[~2024-10-28 13:12 UTC | newest]

Thread overview: 2+ 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

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