package/mesa3d: propagate missing libdrm-freedreno deps
authorJames Hilliard <james.hilliard1@gmail.com>
Tue, 26 May 2020 20:24:37 +0000 (14:24 -0600)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 26 May 2020 20:44:31 +0000 (22:44 +0200)
Libdrm freedreno depends on BR2_arm || BR2_aarch64 || BR2_aarch64_be
as such we need to propagate those dependencies to mesa's gallium
freedreno driver.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/mesa3d/Config.in

index dd512d9b764c919cf69f31afb34704b65cc0f8a5..11d04b7a3f665fff0e1270189e5d65995f59435b 100644 (file)
@@ -111,6 +111,12 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV
 
 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_FREEDRENO
        bool "Gallium freedreno driver"
+       depends on BR2_arm || BR2_aarch64 || BR2_aarch64_be # libdrm-freedreno
+       # libdrm's freedreno option depends on LIBDRM_HAS_ATOMIC. Propagating
+       # that dependency here causes a circular dependency that Kconfig
+       # can't see is just spurious. However, that dependency is about
+       # the toolchain having sync4 primitives, which is always a given
+       # for arm/aarch64.
        select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
        select BR2_PACKAGE_LIBDRM_FREEDRENO
        select BR2_PACKAGE_MESA3D_GALLIUM_KMSRO