[Mesa-dev] [PATCH] android: re-generate git_sha1.h if git HEAD updated
Emil Velikov
emil.l.velikov at gmail.com
Fri Feb 26 13:32:39 UTC 2016
On 26 February 2016 at 07:09, Chih-Wei Huang <cwhuang at android-x86.org> wrote:
> The git_sha1.h has to depend on the git HEAD
> otherwise it will never be updated.
>
> Signed-off-by: Chih-Wei Huang <cwhuang at linux.org.tw>
> ---
> src/mesa/Android.gen.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/Android.gen.mk b/src/mesa/Android.gen.mk
> index a985f0a..e567102 100644
> --- a/src/mesa/Android.gen.mk
> +++ b/src/mesa/Android.gen.mk
> @@ -69,7 +69,7 @@ define es-gen
> $(hide) $(PRIVATE_SCRIPT) $(1) $(PRIVATE_XML) > $@
> endef
>
> -$(intermediates)/main/git_sha1.h:
> +$(intermediates)/main/git_sha1.h: $(wildcard $(MESA_TOP)/.git/HEAD)
I'd suggest porting over the autotools approach (via a temporary file)
or even moving the hunk to Makefile.gen (or Makefile.common) and using
it in both builds.
Related: wondering about moving the includes/cflags - although with
the aosp build changes, things might be problematic. Do you foresee
(from Android POV) any issues with doing that ?
Thanks
Emil
More information about the mesa-dev
mailing list