diff options
author | Tim Orling <timothy.t.orling@linux.intel.com> | 2019-07-09 10:03:34 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-10 09:56:22 +0100 |
commit | e8131220eccce28dfa57287a43cf366bcdfb6677 (patch) | |
tree | 1a6591f755e587ea7dd116d393b19cf4fc08e840 /meta | |
parent | 257f47803c77787994d9fd22344e508d08ed8cef (diff) | |
download | poky-e8131220eccce28dfa57287a43cf366bcdfb6677.tar.gz |
vulkan-loader: add recipe
Khronos official Vulkan ICD desktop loader for Windows, Linux, and MacOS.
Adapted from vulkan recipe with the changes done to remove obsolete options.
Needs either of X11 or Wayland to be enabled.
(From OE-Core rev: 4d9b993bd1706a8c29b45f58d513347a3d9f26d6)
Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/conf/distro/include/maintainers.inc | 1 | ||||
-rw-r--r-- | meta/recipes-graphics/vulkan/vulkan-loader_1.1.108.bb | 37 |
2 files changed, 38 insertions, 0 deletions
diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 0a62d5ffd4..2b96b277d1 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc | |||
@@ -720,6 +720,7 @@ RECIPE_MAINTAINER_pn-vte = "Anuj Mittal <anuj.mittal@intel.com>" | |||
720 | RECIPE_MAINTAINER_pn-vulkan = "Ross Burton <ross.burton@intel.com>" | 720 | RECIPE_MAINTAINER_pn-vulkan = "Ross Burton <ross.burton@intel.com>" |
721 | RECIPE_MAINTAINER_pn-vulkan-demos = "Ross Burton <ross.burton@intel.com>" | 721 | RECIPE_MAINTAINER_pn-vulkan-demos = "Ross Burton <ross.burton@intel.com>" |
722 | RECIPE_MAINTAINER_pn-vulkan-headers = "Anuj Mittal <anuj.mittal@intel.com>" | 722 | RECIPE_MAINTAINER_pn-vulkan-headers = "Anuj Mittal <anuj.mittal@intel.com>" |
723 | RECIPE_MAINTAINER_pn-vulkan-loader = "Anuj Mittal <anuj.mittal@intel.com>" | ||
723 | RECIPE_MAINTAINER_pn-waffle = "Ross Burton <ross.burton@intel.com>" | 724 | RECIPE_MAINTAINER_pn-waffle = "Ross Burton <ross.burton@intel.com>" |
724 | RECIPE_MAINTAINER_pn-watchdog = "Alexander Kanavin <alex.kanavin@gmail.com>" | 725 | RECIPE_MAINTAINER_pn-watchdog = "Alexander Kanavin <alex.kanavin@gmail.com>" |
725 | RECIPE_MAINTAINER_pn-watchdog-config = "Alexander Kanavin <alex.kanavin@gmail.com>" | 726 | RECIPE_MAINTAINER_pn-watchdog-config = "Alexander Kanavin <alex.kanavin@gmail.com>" |
diff --git a/meta/recipes-graphics/vulkan/vulkan-loader_1.1.108.bb b/meta/recipes-graphics/vulkan/vulkan-loader_1.1.108.bb new file mode 100644 index 0000000000..2fd6c44480 --- /dev/null +++ b/meta/recipes-graphics/vulkan/vulkan-loader_1.1.108.bb | |||
@@ -0,0 +1,37 @@ | |||
1 | SUMMARY = "3D graphics and compute API common loader" | ||
2 | DESCRIPTION = "Vulkan is a new generation graphics and compute API \ | ||
3 | that provides efficient access to modern GPUs. These packages \ | ||
4 | provide only the common vendor-agnostic library loader, headers and \ | ||
5 | the vulkaninfo utility." | ||
6 | HOMEPAGE = "https://www.khronos.org/vulkan/" | ||
7 | BUGTRACKER = "https://github.com/KhronosGroup/Vulkan-Loader" | ||
8 | SECTION = "libs" | ||
9 | |||
10 | LICENSE = "Apache-2.0" | ||
11 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=7dbefed23242760aa3475ee42801c5ac" | ||
12 | SRC_URI = "git://github.com/KhronosGroup/Vulkan-Loader.git;branch=sdk-${PV}" | ||
13 | SRCREV = "ecb0b1e69fb2f4d3cae262e6da24c170ce62ae13" | ||
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | REQUIRED_DISTRO_FEATURES = "vulkan" | ||
18 | |||
19 | inherit cmake distro_features_check | ||
20 | ANY_OF_DISTRO_FEATURES = "x11 wayland" | ||
21 | |||
22 | DEPENDS += "vulkan-headers" | ||
23 | |||
24 | EXTRA_OECMAKE = "\ | ||
25 | -DBUILD_TESTS=OFF \ | ||
26 | -DPYTHON_EXECUTABLE=${HOSTTOOLS_DIR}/python3 \ | ||
27 | " | ||
28 | |||
29 | # must choose x11 or wayland or both | ||
30 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11', d)}" | ||
31 | |||
32 | PACKAGECONFIG[x11] = "-DBUILD_WSI_XLIB_SUPPORT=ON -DBUILD_WSI_XCB_SUPPORT=ON, -DBUILD_WSI_XLIB_SUPPORT=OFF -DBUILD_WSI_XCB_SUPPORT=OFF, libxcb libx11 libxrandr" | ||
33 | PACKAGECONFIG[wayland] = "-DBUILD_WSI_WAYLAND_SUPPORT=ON, -DBUILD_WSI_WAYLAND_SUPPORT=OFF, wayland" | ||
34 | |||
35 | RRECOMMENDS_${PN} = "mesa-vulkan-drivers" | ||
36 | |||
37 | UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)" | ||