[Mesa-dev] [PATCH 2/2] mesa: Add ir3/ir3_nir_imul.c generation to Android.mk
Rob Clark
robdclark at gmail.com
Wed Jul 3 23:19:26 UTC 2019
On Wed, Jul 3, 2019 at 4:10 PM John Stultz <john.stultz at linaro.org> wrote:
>
> With current master we're seeing build failures with AOSP:
> error: undefined symbol: ir3_nir_lower_imul
>
> This is due to the ir3_nir_imul.c file not being generated
> in the Android.mk files.
>
> This patch simply adds it to the Android build, after which
> thigns build and boot ok on db410c.
>
> Cc: Rob Clark <robdclark at chromium.org>
> Cc: Emil Velikov <emil.l.velikov at gmail.com>
> Cc: Amit Pundir <amit.pundir at linaro.org>
> Cc: Sumit Semwal <sumit.semwal at linaro.org>
> Cc: Alistair Strachan <astrachan at google.com>
> Cc: Greg Hartman <ghartman at google.com>
> Cc: Tapani Pälli <tapani.palli at intel.com>
> Signed-off-by: John Stultz <john.stultz at linaro.org>
Reviewed-by: Rob Clark <robdclark at gmail.com>
> ---
> src/freedreno/Makefile.sources | 3 ++-
> src/gallium/drivers/freedreno/Android.gen.mk | 7 +++++++
> 2 files changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/src/freedreno/Makefile.sources b/src/freedreno/Makefile.sources
> index d8aaf2caecc..75ec361663b 100644
> --- a/src/freedreno/Makefile.sources
> +++ b/src/freedreno/Makefile.sources
> @@ -48,7 +48,8 @@ ir3_SOURCES := \
> ir3/ir3_sun.c
>
> ir3_GENERATED_FILES := \
> - ir3/ir3_nir_trig.c
> + ir3/ir3_nir_trig.c \
> + ir3/ir3_nir_imul.c
>
> registers_FILES := \
> registers/a2xx.xml.h \
> diff --git a/src/gallium/drivers/freedreno/Android.gen.mk b/src/gallium/drivers/freedreno/Android.gen.mk
> index d29ba159d5c..1d3ee5ff856 100644
> --- a/src/gallium/drivers/freedreno/Android.gen.mk
> +++ b/src/gallium/drivers/freedreno/Android.gen.mk
> @@ -28,11 +28,18 @@ ir3_nir_trig_deps := \
> $(MESA_TOP)/src/freedreno/ir3/ir3_nir_trig.py \
> $(MESA_TOP)/src/compiler/nir/nir_algebraic.py
>
> +ir3_nir_imul_deps := \
> + $(MESA_TOP)/src/freedreno/ir3/ir3_nir_imul.py
> +
> intermediates := $(call local-generated-sources-dir)
>
> $(intermediates)/ir3/ir3_nir_trig.c: $(ir3_nir_trig_deps)
> @mkdir -p $(dir $@)
> $(hide) $(MESA_PYTHON2) $< -p $(MESA_TOP)/src/compiler/nir > $@
>
> +$(intermediates)/ir3/ir3_nir_imul.c: $(ir3_nir_imul_deps)
> + @mkdir -p $(dir $@)
> + $(hide) $(MESA_PYTHON2) $< -p $(MESA_TOP)/src/compiler/nir > $@
> +
> LOCAL_GENERATED_SOURCES += $(addprefix $(intermediates)/, \
> $(ir3_GENERATED_FILES))
> --
> 2.17.1
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
More information about the mesa-dev
mailing list