android: freedreno/ir3: add missing generated sources and rules
authorMauro Rossi <issor.oruam@gmail.com>
Sat, 20 Jun 2020 17:07:44 +0000 (19:07 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 24 Jun 2020 10:00:14 +0000 (10:00 +0000)
commit41683157e778722ccd94c7d224f4961475537dc6
treec7a6b1fb899a30dd2e82639567aa83fd35ffc9d6
parentb41828c33751d666726dc27222674b7eff08fe28
android: freedreno/ir3: add missing generated sources and rules

Changelog:
- Makefile.sources: add ir3_lexer.c and ir3_parser.{c,h} generated sources
- Android.ir3.mk: add the necessary generated sources rules
- Android.ir3.mk: add the necessary include paths
- src/gallium/drivers/freedreno/Android.gen.mk: generate only ir3_nir_{imul,trig}.c for the moment

Fixes the following building error:

target  C: libfreedreno_ir3 <= external/mesa/src/freedreno/ir3/ir3_assembler.c
FAILED: out/target/product/x86_64/obj/STATIC_LIBRARIES/libfreedreno_ir3_intermediates/ir3/ir3_assembler.o
...
external/mesa/src/freedreno/ir3/ir3_assembler.c:28:10: fatal error: 'ir3_parser.h' file not found
         ^~~~~~~~~~~~~~
1 error generated.

Fixes: 1e8808a4a0f ("freedreno/ir3: refactor out helper to compile shader from asm")
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
Acked-by: Rob Clark <robdclark@gmail.com>
Acked-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5580>
src/freedreno/Android.ir3.mk
src/freedreno/Makefile.sources
src/gallium/drivers/freedreno/Android.gen.mk