android: freedreno: Add freedreno_dev_info.[ch] to Makefile.sources
authorMarijn Suijten <marijn.suijten@somainline.org>
Mon, 2 Nov 2020 22:13:24 +0000 (23:13 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 3 Nov 2020 11:02:54 +0000 (11:02 +0000)
Addresses the following linker error when building for Android:

    ld.lld: error: undefined symbol: freedreno_dev_info_init
    >>> referenced by freedreno_screen.c:1001 (external/mesa3d/src/gallium/drivers/freedreno/freedreno_screen.c:1001)
    >>>               freedreno_screen.o:(fd_screen_create) in archive [..]/libmesa_pipe_freedreno_intermediates/libmesa_pipe_freedreno.a

These functions were introduced in a file that was not included in the
Android build yet.  Also sort the list of files alphabetically as
requested in an earlier MR.

Fixes: 4a0bdf47e43 ("freedreno: Introduce common device info struct")
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7411>

src/freedreno/Makefile.sources

index 6334b54..c2e445d 100644 (file)
@@ -1,8 +1,10 @@
 common_SOURCES := \
        common/disasm.h \
+       common/freedreno_dev_info.c \
+       common/freedreno_dev_info.h \
+       common/freedreno_guardband.h \
        common/freedreno_uuid.c \
-       common/freedreno_uuid.h \
-       common/freedreno_guardband.h
+       common/freedreno_uuid.h
 
 drm_SOURCES := \
        drm/freedreno_bo.c \