freedreno: android: fix build failure on android due to python version
authorMartin Fuzzey <martin.fuzzey@flowbird.group>
Thu, 6 Feb 2020 18:08:10 +0000 (19:08 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 7 Feb 2020 16:34:49 +0000 (16:34 +0000)
commitcad400a59e47461f4965cfd19882c680cc111d94
treee77bf34ce0c1863e69d28150803d9f049d5c8c74
parentff8265b64ff19380170b50b7016191c9d53fbd1e
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 <martin.fuzzey@flowbird.group>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3736>
Android.mk
src/freedreno/Android.registers.mk