android: generate files by $(call es-gen)
authorChih-Wei Huang <cwhuang@android-x86.org>
Wed, 20 May 2015 03:25:33 +0000 (11:25 +0800)
committerEric Anholt <eric@anholt.net>
Tue, 9 Jun 2015 19:25:49 +0000 (12:25 -0700)
commit1e4081f54aa5c6cba566ed549389d847bf7e6799
treef52ea4f3381a0698eda082f07842cb4f2d7662f7
parentc3b5afbd4e682f76e16ea85883af571165bd24ee
android: generate files by $(call es-gen)

Use the pre-defined macro es-gen to generate new added files
instead of writing new rules manually. The handmade rules
that may generate the files before the directory is created
result in such an error:

/bin/bash: out/target/product/x86/gen/STATIC_LIBRARIES/libmesa_st_mesa_intermediates/main/format_pack.c: No such file or directory
make: *** [out/target/product/x86/gen/STATIC_LIBRARIES/libmesa_st_mesa_intermediates/main/format_pack.c] Error 1

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/Android.gen.mk