diff options
-rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index d9e492e94e..e96a12c1b9 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc | |||
@@ -26,7 +26,9 @@ PROVIDES = " \ | |||
26 | 26 | ||
27 | inherit autotools pkgconfig python3native gettext distro_features_check | 27 | inherit autotools pkgconfig python3native gettext distro_features_check |
28 | 28 | ||
29 | ANY_OF_DISTRO_FEATURES = "opengl vulkan" | 29 | BBCLASSEXTEND = "native nativesdk" |
30 | |||
31 | ANY_OF_DISTRO_FEATURES_class-target = "opengl vulkan" | ||
30 | 32 | ||
31 | PLATFORMS ??= "${@bb.utils.filter('PACKAGECONFIG', 'x11 wayland', d)} \ | 33 | PLATFORMS ??= "${@bb.utils.filter('PACKAGECONFIG', 'x11 wayland', d)} \ |
32 | ${@bb.utils.contains('PACKAGECONFIG', 'gbm', 'drm', '', d)} \ | 34 | ${@bb.utils.contains('PACKAGECONFIG', 'gbm', 'drm', '', d)} \ |
@@ -42,11 +44,13 @@ EXTRA_OECONF = "--enable-shared-glapi \ | |||
42 | --with-llvm-prefix=${STAGING_LIBDIR}/llvm${MESA_LLVM_RELEASE} \ | 44 | --with-llvm-prefix=${STAGING_LIBDIR}/llvm${MESA_LLVM_RELEASE} \ |
43 | --with-platforms='${PLATFORMS}'" | 45 | --with-platforms='${PLATFORMS}'" |
44 | 46 | ||
45 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland vulkan', d)} \ | 47 | PACKAGECONFIG_class-target ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland vulkan', d)} \ |
46 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl egl gles gbm dri', '', d)} \ | 48 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl egl gles gbm dri gallium', '', d)} \ |
47 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11 dri3', '', d)} \ | 49 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11 dri3', '', d)} \ |
48 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 'dri3', '', d)} \ | 50 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 'dri3', '', d)} \ |
49 | " | 51 | " |
52 | PACKAGECONFIG_class-native ?= "gbm dri-native egl" | ||
53 | PACKAGECONFIG_class-nativesdk ?= "gbm dri-native egl" | ||
50 | 54 | ||
51 | # "gbm" requires "dri", "opengl" | 55 | # "gbm" requires "dri", "opengl" |
52 | PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm" | 56 | PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm" |
@@ -58,17 +62,19 @@ PACKAGECONFIG[xvmc] = "--enable-xvmc,--disable-xvmc,libxvmc" | |||
58 | PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols" | 62 | PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols" |
59 | 63 | ||
60 | DRIDRIVERS = "swrast" | 64 | DRIDRIVERS = "swrast" |
61 | DRIDRIVERS_append_x86 = ",radeon,r200,nouveau,i965,i915" | 65 | DRIDRIVERS_append_x86_class-target = ",radeon,r200,nouveau,i965,i915" |
62 | DRIDRIVERS_append_x86-64 = ",radeon,r200,nouveau,i965,i915" | 66 | DRIDRIVERS_append_x86-64_class-target = ",radeon,r200,nouveau,i965,i915" |
63 | # "dri" requires "opengl" | 67 | # "dri" requires "opengl" |
64 | PACKAGECONFIG[dri] = "--enable-dri --with-dri-drivers=${DRIDRIVERS}, --disable-dri, xorgproto libdrm" | 68 | PACKAGECONFIG[dri] = "--enable-dri --with-dri-drivers=${DRIDRIVERS}, --disable-dri, xorgproto libdrm" |
69 | # On the native builds we use host's dri drivers | ||
70 | PACKAGECONFIG[dri-native] = "--enable-dri, , xorgproto libdrm" | ||
65 | PACKAGECONFIG[dri3] = "--enable-dri3, --disable-dri3, xorgproto libxshmfence" | 71 | PACKAGECONFIG[dri3] = "--enable-dri3, --disable-dri3, xorgproto libxshmfence" |
66 | 72 | ||
67 | # Vulkan drivers need dri3 enabled | 73 | # Vulkan drivers need dri3 enabled |
68 | # radeon could be enabled as well but requires gallium-llvm with llvm >= 3.9 | 74 | # radeon could be enabled as well but requires gallium-llvm with llvm >= 3.9 |
69 | VULKAN_DRIVERS = "" | 75 | VULKAN_DRIVERS = "" |
70 | VULKAN_DRIVERS_append_x86 = ",intel" | 76 | VULKAN_DRIVERS_append_x86_class-target = ",intel" |
71 | VULKAN_DRIVERS_append_x86-64 = ",intel" | 77 | VULKAN_DRIVERS_append_x86-64_class-target = ",intel" |
72 | PACKAGECONFIG[vulkan] = "--with-vulkan-drivers=${VULKAN_DRIVERS}, --without-vulkan-drivers, python3-mako-native" | 78 | PACKAGECONFIG[vulkan] = "--with-vulkan-drivers=${VULKAN_DRIVERS}, --without-vulkan-drivers, python3-mako-native" |
73 | 79 | ||
74 | PACKAGECONFIG[opengl] = "--enable-opengl, --disable-opengl" | 80 | PACKAGECONFIG[opengl] = "--enable-opengl, --disable-opengl" |