Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH V4 1/2] musl: Fix dirent struct alignment issue seen on armv5te
@ 2018-08-14 16:32 Khem Raj
  2018-08-14 16:32 ` [PATCH 2/2] eglinfo: Fix build with raspberrypi with userland graphics driver Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2018-08-14 16:32 UTC (permalink / raw)
  To: openembedded-core

- its a general problem however observed on armv5te based boards in OE
  other arches either have ways to compensate for misaligned access in hardware
  or compiler does not use 8byte alignment

- fix internal linux headers

Full logs
https://git.musl-libc.org/cgit/musl/log/?qt=range&q=9cad27a3dc1a4eb349b6591e4dc8cc89dce32277..1ad8138819ced49851e618c9c063aa0ffc86718c

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
v4:
Update to latest upstream master

 meta/recipes-core/musl/musl_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb
index b56870cb3f..c13371014a 100644
--- a/meta/recipes-core/musl/musl_git.bb
+++ b/meta/recipes-core/musl/musl_git.bb
@@ -3,7 +3,7 @@
 
 require musl.inc
 
-SRCREV = "9cad27a3dc1a4eb349b6591e4dc8cc89dce32277"
+SRCREV = "1ad8138819ced49851e618c9c063aa0ffc86718c"
 
 PV = "1.1.19+git${SRCPV}"
 
-- 
2.18.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH 2/2] eglinfo: Fix build with raspberrypi with userland graphics driver
  2018-08-14 16:32 [PATCH V4 1/2] musl: Fix dirent struct alignment issue seen on armv5te Khem Raj
@ 2018-08-14 16:32 ` Khem Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2018-08-14 16:32 UTC (permalink / raw)
  To: openembedded-core

Let pkgconfig figure out headers and libraries instead of manually
forcing waf to do it.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-graphics/eglinfo/eglinfo.inc     |  3 +-
 ...01-Check-for-libegl-using-pkg-config.patch | 31 +++++++++++++++++++
 2 files changed, 33 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-graphics/eglinfo/files/0001-Check-for-libegl-using-pkg-config.patch

diff --git a/meta/recipes-graphics/eglinfo/eglinfo.inc b/meta/recipes-graphics/eglinfo/eglinfo.inc
index 8e7d9bddda..c8f0e897bf 100644
--- a/meta/recipes-graphics/eglinfo/eglinfo.inc
+++ b/meta/recipes-graphics/eglinfo/eglinfo.inc
@@ -8,6 +8,7 @@ DEPENDS = "virtual/egl"
 
 SRC_URI = "git://github.com/dv1/eglinfo.git;branch=master \
            file://0001-Add-STAGING_INCDIR-to-searchpath-for-egl-headers.patch \
+           file://0001-Check-for-libegl-using-pkg-config.patch \
           "
 SRCREV = "4b317648ec6cf39556a9e5d8078f605bc0edd5de"
 
@@ -15,7 +16,7 @@ CVE_PRODUCT = "eglinfo"
 
 S = "${WORKDIR}/git"
 
-inherit waf distro_features_check
+inherit waf distro_features_check pkgconfig
 # depends on virtual/egl
 REQUIRED_DISTRO_FEATURES ?= "opengl"
 
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 @@
+From 58d51d941d3f4dfa38be18282d3e285d76d9020d Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Mon, 13 Aug 2018 15:46:53 -0700
+Subject: [PATCH] Check for libegl using pkg-config
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ wscript | 1 +
+ 1 file changed, 1 insertion(+)
+
+Index: git/wscript
+===================================================================
+--- git.orig/wscript
++++ git/wscript
+@@ -160,14 +160,9 @@ def configure_raspberrypi_device(conf, p
+ 		conf.env['PLATFORM_USELIBS'] += ["X11"]
+ 	elif platform == "fb":
+ 		conf.env['PLATFORM_SOURCE'] = ['src/platform_fb_raspberrypi.cpp']
+-	conf.check_cxx(mandatory = 1, lib = ['GLESv2', 'EGL', 'bcm_host'], uselib_store = 'EGL')
++	conf.check_cfg(package='egl', args='--libs --cflags')
+ 	import os
+ 	sysroot = conf.options.sysroot + conf.options.prefix
+-        std_include_path = os.path.join(sysroot, 'include')
+-	vcos_pthread_path = os.path.join(sysroot, 'include/interface/vcos/pthreads')
+-	vcms_host_path = os.path.join(sysroot, 'include/interface/vmcs_host/linux')
+-	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'):
+-		conf.fatal('Check if --prefix and --sysroot are set correctly.')
+ 	conf.env['WITH_APIS'] = []
+ 	if check_gles2(conf):
+ 		conf.env['WITH_APIS'] += ['GLES1', 'GLES2']
-- 
2.18.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-14 16:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-14 16:32 [PATCH V4 1/2] musl: Fix dirent struct alignment issue seen on armv5te Khem Raj
2018-08-14 16:32 ` [PATCH 2/2] eglinfo: Fix build with raspberrypi with userland graphics driver Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox