mirror of
https://github.com/dgibson/dtc.git
synced 2025-12-07 05:35:07 -05:00
meson: do not assume python is installed, skip tests
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20201207130055.462734-3-marcandre.lureau@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
30a56bce4f
commit
f8b4609882
1 changed files with 6 additions and 6 deletions
|
|
@ -108,14 +108,14 @@ endforeach
|
||||||
|
|
||||||
run_tests = find_program('run_tests.sh')
|
run_tests = find_program('run_tests.sh')
|
||||||
|
|
||||||
|
env = []
|
||||||
env = [
|
|
||||||
'PYTHON=' + py.path(),
|
|
||||||
'PYTHONPATH=' + meson.source_root() / 'pylibfdt',
|
|
||||||
]
|
|
||||||
|
|
||||||
if not py.found()
|
if not py.found()
|
||||||
env += 'NO_PYTHON=1'
|
env += 'NO_PYTHON=1'
|
||||||
|
else
|
||||||
|
env += [
|
||||||
|
'PYTHON=' + py.path(),
|
||||||
|
'PYTHONPATH=' + meson.source_root() / 'pylibfdt',
|
||||||
|
]
|
||||||
endif
|
endif
|
||||||
if not yaml.found()
|
if not yaml.found()
|
||||||
env += 'NO_YAML=1'
|
env += 'NO_YAML=1'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue