meson: fix dependencies of tests

If the tests are run without a full compile they will fail. For example
with the following.

> rm -rf build/
> meson setup build/
> meson test -C build/

This is because the tests rely on the devicetree tools and test
executables.

Signed-off-by: Brandon Maier <brandon.maier@collins.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
Brandon Maier 2024-03-18 16:25:33 +00:00 committed by David Gibson
parent e81900635c
commit bb51223083
3 changed files with 17 additions and 10 deletions

View file

@ -1,7 +1,7 @@
setup_py = find_program('../setup.py')
setup_py = [setup_py, '--quiet', '--top-builddir', meson.project_build_root()]
custom_target(
pylibfdt = custom_target(
'pylibfdt',
input: 'libfdt.i',
depends: libfdt,