diff options
author | Martin Fuzzey <[email protected]> | 2020-02-06 19:08:10 +0100 |
---|---|---|
committer | John Stultz <[email protected]> | 2020-03-11 20:15:10 +0000 |
commit | b26ac839aa6380785b82d6daa953a421f3374492 (patch) | |
tree | 2dc18e948cd9569ebac12290bec7101199625835 /Android.mk | |
parent | 155a550c60e9fc65154f546dfc8f0315a52c7f05 (diff) |
freedreno: android: fix build failure on android due to python version
The freedreno gen_header.py script now only works under python3.
It contains a "print()" call which prints a blank line under python3
but prints "()" under python2.7.
However the Android build currently uses python2.
This leads to incorrect code generation and a later build error.
.../STATIC_LIBRARIES/libfreedreno_registers_intermediates/registers/adreno_common.xml.h:163:2: error: expected identifier or '('
()
Fix this by adding MESA_PYTHON3 and using it for the freedreno scripts.
Signed-off-by: Martin Fuzzey <[email protected]>
(cherry picked from commit cad400a59e47461f4965cfd19882c680cc111d94)
Signed-off-by: John Stultz <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4151>
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk index 59d345b8af4..c15c2b78bac 100644 --- a/Android.mk +++ b/Android.mk @@ -43,6 +43,7 @@ MESA_DRI_LDFLAGS := -Wl,--build-id=sha1 MESA_COMMON_MK := $(MESA_TOP)/Android.common.mk MESA_PYTHON2 := python +MESA_PYTHON3 := python3 # Lists to convert driver names to boolean variables # in form of <driver name>.<boolean make variable> |