diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-08-14 09:32:43 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-15 09:44:33 +0100 |
commit | d5ad78e5daf88aed645cdd0aa0307308e224ae54 (patch) | |
tree | 33415204950f5d912a9dcddc5bdab7a37f2a8304 /meta/recipes-graphics/eglinfo/files | |
parent | 7b5cfa730e7266656b9c78204e9b1630fe76fcb5 (diff) | |
download | poky-d5ad78e5daf88aed645cdd0aa0307308e224ae54.tar.gz |
eglinfo: Fix build with raspberrypi with userland graphics driver
Let pkgconfig figure out headers and libraries instead of manually
forcing waf to do it.
(From OE-Core rev: 283026adda7c184e213dacd7f4e42678c304866a)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/eglinfo/files')
-rw-r--r-- | meta/recipes-graphics/eglinfo/files/0001-Check-for-libegl-using-pkg-config.patch | 31 |
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 @@ | |||
1 | From 58d51d941d3f4dfa38be18282d3e285d76d9020d Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 13 Aug 2018 15:46:53 -0700 | ||
4 | Subject: [PATCH] Check for libegl using pkg-config | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- | ||
9 | wscript | 1 + | ||
10 | 1 file changed, 1 insertion(+) | ||
11 | |||
12 | Index: 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'] | ||