GitLab will be down for maintenance this Sunday 13th June, from approx 7-11am UTC. This is for a PostgreSQL migration. See the tracker issue for more informations.

android: fix libsync dependencies (v2)

(v2) Remove include from Android.common.mk
     Avoid adding libsync shared dependency in Android.common.mk
     Add libsync shared dependency where needed, for easier tracking

(v1) Fixes the following building errors:

In file included from external/mesa/src/gallium/drivers/freedreno/a3xx/fd3_query.c:27:
In file included from external/mesa/src/gallium/drivers/freedreno/freedreno_query_hw.h:33:
In file included from external/mesa/src/gallium/drivers/freedreno/freedreno_context.h:33:
external/mesa/src/util/libsync.h:48:10: fatal error: 'android/sync.h' file not found
         ^~~~~~~~~~~~~~~~
1 error generated.

In file included from external/mesa/src/mesa/drivers/dri/i965/brw_sync.c:41:
external/mesa/src/util/libsync.h:48:10: fatal error: 'android/sync.h' file not found
         ^~~~~~~~~~~~~~~~
1 error generated.

In file included from external/mesa/src/gallium/auxiliary/util/u_tests.c:513:
external/mesa/src/util/libsync.h:48:10: fatal error: 'android/sync.h' file not found
         ^~~~~~~~~~~~~~~~
1 error generated.

FAILED: out/target/product/x86_64/obj_x86/SHARED_LIBRARIES/i965_dri_intermediates/LINKED/i965_dri.so
...
external/mesa/src/mesa/drivers/dri/i965/brw_sync.c:223: error: undefined reference to 'sync_wait'
external/mesa/src/mesa/drivers/dri/i965/brw_sync.c:287: error: undefined reference to 'sync_wait'

FAILED: out/target/product/x86_64/obj_x86/SHARED_LIBRARIES/gallium_dri_intermediates/LINKED/gallium_dri.so
...
external/mesa/src/util/libsync.h:142: error: undefined reference to 'sync_merge'
external/mesa/src/gallium/drivers/freedreno/freedreno_fence.c:94: error: undefined reference to 'sync_wait'
external/mesa/src/gallium/auxiliary/util/u_tests.c:575: error: undefined reference to 'sync_wait'

Fixes: 27b88879 ("android: Add pre-4.7 Android kernel compatibility to our libsync header.")
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
Acked-by: Rob Clark <robdclark@chromium.org>
Acked-by: Eric Anholt <eric@anholt.net>
Acked-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <!7306>
85 jobs for !7306 with android_libsync_w43 in 27 minutes and 26 seconds (queued for 7 seconds)
detached
Status Job ID Name Coverage
  Container
passed #5276666
aarch64
arm_build

00:00:19

passed #5276667
arm_test-base

00:00:12

passed #5276668
git_archive

00:00:29

passed #5276663
x86_build-base

00:00:16

passed #5276665
x86_build_old

00:00:16

passed #5276664
x86_test-base

00:00:12

 
  Container 2
passed #5276676
android_build

00:00:16

passed #5276679
arm64_test

00:00:11

passed #5276673
i386_build

00:00:17

passed #5276669
kernel+rootfs_amd64

00:00:13

passed #5276670
aarch64
kernel+rootfs_arm64

00:00:20

passed #5276671
aarch64
kernel+rootfs_armhf

00:00:18

passed #5276674
ppc64el_build

00:00:16

passed #5276675
s390x_build

00:00:17

passed #5276672
x86_build

00:00:14

passed #5276677
x86_test-gl

00:00:14

passed #5276678
x86_test-vk

00:00:11

 
  Sanity
passed #5276680
check mr

00:00:09

 
  Meson X86 64
passed #5276686
meson-clang

00:05:08

passed #5276685
meson-classic

00:02:26

passed #5276687
meson-clover

00:03:51

passed #5276682
meson-clover-testing

00:01:45

passed #5276683
meson-gallium

00:03:55

passed #5276684
meson-release

00:02:09

passed #5276681
meson-testing

00:01:47

passed #5276688
meson-vulkan

00:04:54

 
  Scons
passed #5276689
scons-win64

00:04:09

 
  Meson Misc
passed #5276690
meson-android

00:01:24

passed #5276692
aarch64
meson-arm64

00:02:41

passed #5276693
aarch64
meson-arm64-build-test

00:01:11

passed #5276691
aarch64
meson-armhf

00:03:27

passed #5276694
meson-i386

00:03:22

passed #5276697
meson-mingw32-x86_64

00:04:15

passed #5276696
kvm
meson-ppc64el

00:04:11

passed #5276695
kvm
meson-s390x

00:04:52

 
  Llvmpipe
passed #5276702
llvmpipe-gles2

00:02:11

passed #5276703
llvmpipe-traces

00:03:01

passed #5276698
piglit-cl

00:05:53

passed #5276700
piglit-glslparser

00:02:42

passed #5276699
piglit-quick_gl

00:06:23

passed #5276701
piglit-quick_shader

00:03:24

 
  Softpipe
passed #5276708
softpipe-gl

00:01:02

passed #5276704
softpipe-gles2

00:01:52

passed #5276705
softpipe-gles3

00:02:59

passed #5276706
softpipe-gles31 1/2

00:05:34

passed #5276707
softpipe-gles31 2/2

00:04:34

 
  Freedreno
passed #5276721
google-freedreno-db410c
arm64_a306_gles2

00:07:03

passed #5276722
google-freedreno-db410c
arm64_a306_gles3

00:07:19

passed #5276723
google-freedreno-db410c
arm64_a306_gles3_options

00:04:57

passed #5276724
google-freedreno-db820c
arm64_a530_gles2 1/2

00:08:35

passed #5276725
google-freedreno-db820c
arm64_a530_gles2 2/2

00:08:19

passed #5276726
google-freedreno-db820c
arm64_a530_gles3

00:04:49

passed #5276727
google-freedreno-db820c
arm64_a530_gles31

00:05:11

passed #5276713
google-freedreno-cheza
arm64_a630_bypass

00:03:07

passed #5276716
google-freedreno-cheza
arm64_a630_gl

00:02:01

passed #5276709
google-freedreno-cheza
arm64_a630_gles2

00:03:01

passed #5276711
google-freedreno-cheza
arm64_a630_gles3

00:07:45

passed #5276710
google-freedreno-cheza
arm64_a630_gles31

00:06:15

passed #5276718
google-freedreno-cheza
arm64_a630_gles31_565nozs

00:02:03

passed #5276717
google-freedreno-cheza
arm64_a630_gles3_565nozs

00:02:19

passed #5276715
google-freedreno-cheza
arm64_a630_gmem

00:02:59

passed #5276712
google-freedreno-cheza
arm64_a630_noubo

00:02:51

passed #5276714
google-freedreno-cheza
arm64_a630_traces

00:05:37

passed #5276719
google-freedreno-cheza
arm64_a630_vk

00:04:42

passed #5276720
google-freedreno-cheza
arm64_a630_vk_sysmem

00:02:35

 
  Panfrost
passed #5276734
mesa-ci-aarch64-lava-collabora
panfrost-g52-gles2:arm64

00:02:30

passed #5276728
mesa-ci-aarch64-lava-collabora
panfrost-t720-gles2:arm64

00:07:31

passed #5276729
mesa-ci-aarch64-lava-collabora
panfrost-t760-gles2:armhf

00:17:08

passed #5276730
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles2:arm64

00:12:11

passed #5276731
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles3:arm64 1/2

00:13:05

passed #5276732
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles3:arm64 2/2

00:19:25

passed #5276733
mesa-ci-aarch64-lava-collabora
panfrost-t860-traces:arm64

00:11:17

 
  Radv
passed #5276735
radv-fossils

00:08:22

 
  Virgl
passed #5276740
virgl-gl30-on-gl

00:00:32

passed #5276741
virgl-gl31-on-gl

00:01:07

passed #5276742
virgl-gl32-on-gl

00:01:31

passed #5276736
virgl-gles2-on-gl

00:02:14

passed #5276738
virgl-gles31-on-gl 1/2

00:04:17

passed #5276739
virgl-gles31-on-gl 2/2

00:04:20

passed #5276737
virgl-gles3-on-gl

00:04:46

passed #5276743
virgl-traces

00:00:57

 
  Radeonsi
passed #5276744
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-gles2:amd64

00:19:30

passed #5276746
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-gles31:amd64

00:20:40

passed #5276745
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-gles3:amd64

00:17:19

passed #5276747
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-traces:amd64

00:24:41