diff options
author | Jussi Kukkonen <jussi.kukkonen@intel.com> | 2017-03-08 15:21:52 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-10 10:15:44 +0000 |
commit | ce0acee244cdae287fa0d3b048d371627a69a030 (patch) | |
tree | 20d599659284fc1dacdc14ac205058dad102bf51 /meta/recipes-graphics/vulkan/vulkan/0001-Use-getenv-if-secure_getenv-does-not-exist.patch | |
parent | 33c8918d41dda8218fd28d667182d71029ab22d5 (diff) | |
download | openembedded-core-contrib-ce0acee244cdae287fa0d3b048d371627a69a030.tar.gz |
vulkan: Add recipe for Vulkan common loader
Add a recipe for vulkan loader library and the vulkaninfo binary.
Vulkan can be built to support X11 or wayland or both. There is
currently no support for building tests, validation layers or even
the demos as that would require a bunch of otherwise unnecessary
dependencies.
Fix the build on musl by defaulting to getenv() if secure_getenv()
is not available.
Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-graphics/vulkan/vulkan/0001-Use-getenv-if-secure_getenv-does-not-exist.patch')
-rw-r--r-- | meta/recipes-graphics/vulkan/vulkan/0001-Use-getenv-if-secure_getenv-does-not-exist.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-graphics/vulkan/vulkan/0001-Use-getenv-if-secure_getenv-does-not-exist.patch b/meta/recipes-graphics/vulkan/vulkan/0001-Use-getenv-if-secure_getenv-does-not-exist.patch new file mode 100644 index 0000000000..694922cd1c --- /dev/null +++ b/meta/recipes-graphics/vulkan/vulkan/0001-Use-getenv-if-secure_getenv-does-not-exist.patch @@ -0,0 +1,34 @@ +From 20525add1df8e1fb13fef90ac068f982def8b958 Mon Sep 17 00:00:00 2001 +From: Jussi Kukkonen <jussi.kukkonen@intel.com> +Date: Wed, 8 Mar 2017 13:23:58 +0200 +Subject: [PATCH] Use getenv() if secure_getenv() does not exist + +musl does not implement secure version: default to getenv() in that +case. + +https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/1538 + +Upstream-Status: Pending +Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> +--- + loader/loader.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/loader/loader.c b/loader/loader.c +index 24758f4..bff79c1 100644 +--- a/loader/loader.c ++++ b/loader/loader.c +@@ -54,6 +54,10 @@ + #endif + #endif + ++#if !defined(__secure_getenv) ++#define __secure_getenv getenv ++#endif ++ + struct loader_struct loader = {0}; + // TLS for instance for alloc/free callbacks + THREAD_LOCAL_DECL struct loader_instance *tls_instance; +-- +2.1.4 + |