summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/eglinfo/files
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/eglinfo/files')
-rw-r--r--meta/recipes-graphics/eglinfo/files/0001-Check-for-libegl-using-pkg-config.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-graphics/eglinfo/files/0001-Check-for-libegl-using-pkg-config.patch b/meta/recipes-graphics/eglinfo/files/0001-Check-for-libegl-using-pkg-config.patch
new file mode 100644
index 0000000000..0289ac228c
--- /dev/null
+++ b/meta/recipes-graphics/eglinfo/files/0001-Check-for-libegl-using-pkg-config.patch
@@ -0,0 +1,31 @@
1From 58d51d941d3f4dfa38be18282d3e285d76d9020d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 13 Aug 2018 15:46:53 -0700
4Subject: [PATCH] Check for libegl using pkg-config
5
6Upstream-Status: Pending
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9 wscript | 1 +
10 1 file changed, 1 insertion(+)
11
12Index: git/wscript
13===================================================================
14--- git.orig/wscript
15+++ git/wscript
16@@ -160,14 +160,9 @@ def configure_raspberrypi_device(conf, p
17 conf.env['PLATFORM_USELIBS'] += ["X11"]
18 elif platform == "fb":
19 conf.env['PLATFORM_SOURCE'] = ['src/platform_fb_raspberrypi.cpp']
20- conf.check_cxx(mandatory = 1, lib = ['GLESv2', 'EGL', 'bcm_host'], uselib_store = 'EGL')
21+ conf.check_cfg(package='egl', args='--libs --cflags')
22 import os
23 sysroot = conf.options.sysroot + conf.options.prefix
24- std_include_path = os.path.join(sysroot, 'include')
25- vcos_pthread_path = os.path.join(sysroot, 'include/interface/vcos/pthreads')
26- vcms_host_path = os.path.join(sysroot, 'include/interface/vmcs_host/linux')
27- if not conf.check_cxx(mandatory = 0, header_name = ['vcos_platform_types.h', 'EGL/egl.h', 'bcm_host.h'], includes = [vcos_pthread_path, vcms_host_path, std_include_path], uselib_store = 'EGL'):
28- conf.fatal('Check if --prefix and --sysroot are set correctly.')
29 conf.env['WITH_APIS'] = []
30 if check_gles2(conf):
31 conf.env['WITH_APIS'] += ['GLES1', 'GLES2']