mesa: freedreno: Android.registers.mk: Fix up register xml.h file generation
authorJohn Stultz <john.stultz@linaro.org>
Wed, 24 Jul 2019 23:32:54 +0000 (23:32 +0000)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 7 Aug 2019 02:18:38 +0000 (02:18 +0000)
commitfcfa2d1447b7b9362065f5ea086b72d9bf7b84b3
tree0a3b7805488e55e77c6b647d1f9b393dc3647c7a
parent96baf052b2001bb9adf8d7eced411cd124060384
mesa: freedreno: Android.registers.mk: Fix up register xml.h file generation

The current Androdi.registers.mk file causes build failures that
look like:
 FAILED:
 external/mesa3d/src/freedreno/Android.registers.mk:49: error: implicit rules are obsolete: out/target/product/linaro_db845c/gen/STATIC_LIBRARIES/libfreedreno_registers_intermediates/registers/%.xml.h

Caused by the following Android build rule change:
https://android.googlesource.com/platform/build/+/HEAD/Changes.md#implicit_rules

I tried to replace this with something similar to the static
pattern suggested in the URL above, but ended up getting all the
xml.h files generated using only the first a2xx.xml source file.

So I've fallen back to explicitly defining the make rules for
each.

Additionally, we needed to provide the proper
LOCAL_EXPORT_C_INCLUDE_DIRS and add the defined static library
to the components that depend on the register headers.

Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: John Stultz <john.stultz@linaro.org>
src/freedreno/Android.registers.mk
src/gallium/drivers/freedreno/Android.mk
src/gallium/winsys/freedreno/drm/Android.mk