buildtools/cmdline: fix meson error when used as a subproject
Checks
Commit Message
Fix the following error when using dpdk as a subproject:
subprojects/dpdk/buildtools/subproject/meson.build:28:56:
ERROR: Unknown function "file".
This was obviously never tested in its submitted form.
Cc: stable@dpdk.org
Fixes: 7d8c608faa7f ("buildtools/cmdline: allow using script in subproject")
Signed-off-by: Robin Jarry <rjarry@redhat.com>
---
buildtools/subproject/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Thu, Aug 01, 2024 at 12:01:54PM +0200, Robin Jarry wrote:
> Fix the following error when using dpdk as a subproject:
>
> subprojects/dpdk/buildtools/subproject/meson.build:28:56:
> ERROR: Unknown function "file".
>
> This was obviously never tested in its submitted form.
>
> Cc: stable@dpdk.org
> Fixes: 7d8c608faa7f ("buildtools/cmdline: allow using script in subproject")
>
> Signed-off-by: Robin Jarry <rjarry@redhat.com>
> ---
Good catch, and easy fix, thanks.
Interestingly, even without testing the build, vscode meson extension
flags this issue in the "problems" tab of vscode: "Unknown function `file`"
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
@@ -25,4 +25,4 @@ endif
libdpdk_dep = dpdk_dep
-meson.override_find_program('dpdk-cmdline-gen.py', file('../dpdk-cmdline-gen.py'))
+meson.override_find_program('dpdk-cmdline-gen.py', files('../dpdk-cmdline-gen.py'))