Reinhard Russinger 7 rokov pred
rodič
commit
0a6058297b

+ 514 - 0
GfA-buildroot-qt57_on_Kernel_4_4_104_part2.patch

@@ -0,0 +1,514 @@
+diff --git a/package/qt5/qt53d/qt53d.hash b/package/qt5/qt53d/qt53d.hash
+new file mode 100644
+index 0000000000..f59a671437
+--- /dev/null
++++ b/package/qt5/qt53d/qt53d.hash
+@@ -0,0 +1 @@
++sha256	a8248a1779b561ea450e92345e8187bacac359df0e92ad61a1ad7652bb233e29	qt3d-opensource-src-5.7.0.tar.xz
+diff --git a/package/qt5/qt5base/0001-Disable-c-standard-compiler-flags-for-the-host-build.__patch b/package/qt5/qt5base/0001-Disable-c-standard-compiler-flags-for-the-host-build.__patch
+new file mode 100644
+index 0000000000..54e4db8e67
+--- /dev/null
++++ b/package/qt5/qt5base/0001-Disable-c-standard-compiler-flags-for-the-host-build.__patch
+@@ -0,0 +1,44 @@
++From e69e69519661954716d59bfa5bbd0626515cfda9 Mon Sep 17 00:00:00 2001
++From: Peter Seiderer <ps.report@gmx.net>
++Date: Thu, 3 Mar 2016 15:17:31 +0100
++Subject: [PATCH] Disable c++ standard compiler flags for the host build
++MIME-Version: 1.0
++Content-Type: text/plain; charset=UTF-8
++Content-Transfer-Encoding: 8bit
++
++There is no test for c++ standard support for the host build
++(only for the target compiler/build) which leads to trouble
++in some cross compiling environments (old host compiler, new
++cross compiler):
++
++  g++: error: unrecognized command line option ‘-std=c++1z’
++
++So disable c++ standard compiler flags unconditionally for host builds.
++
++Task-number: QTBUG-51644
++Change-Id: Ifb3042e125fe199a7e081740d1171d26ccacf0c5
++Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
++Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
++---
++ mkspecs/features/default_post.prf | 5 ++++-
++ 1 file changed, 4 insertions(+), 1 deletion(-)
++
++diff --git a/mkspecs/features/default_post.prf b/mkspecs/features/default_post.prf
++index cd8d885..561c8f4 100644
++--- a/mkspecs/features/default_post.prf
+++++ b/mkspecs/features/default_post.prf
++@@ -95,7 +95,10 @@ breakpad {
++     !isEmpty(QMAKE_STRIP):QMAKE_POST_LINK = $$QMAKE_POST_LINK$$escape_expand(\\n\\t)$$quote($$QMAKE_STRIP $$DEBUGFILENAME)
++ }
++ 
++-c++11|c++14|c++1z {
+++# Disable special compiler flags for host builds (needs to be changed for 5.7
+++# to fall back to c++11 because since 5.7 c++11 is required everywhere,
+++# including host builds).
+++if(!host_build|!cross_compile):if(c++11|c++14|c++1z) {
++     c++1z:       cxxstd = CXX1Z
++     else: c++14: cxxstd = CXX14
++     else:        cxxstd = CXX11
++-- 
++2.1.4
++
+diff --git a/package/qt5/qt5base/0006-eglfs-rasp-pi-header-inclusion.patch b/package/qt5/qt5base/0006-eglfs-rasp-pi-header-inclusion.patch
+new file mode 100644
+index 0000000000..f1f6d9b0b7
+--- /dev/null
++++ b/package/qt5/qt5base/0006-eglfs-rasp-pi-header-inclusion.patch
+@@ -0,0 +1,45 @@
++From 91c3b111e45dd476aba057836b1b618eacf90f3f Mon Sep 17 00:00:00 2001
++From: Julien Corjon <corjon.j@ecagroup.com>
++Date: Tue, 21 Jul 2015 09:58:14 +0200
++Subject: [PATCH] eglfs - fix rasp-pi header inclusion
++
++eglplateform.h include headers for low level instruction and fail on brcm
++headers inclusion
++  For the brcm presence test we use egl pkg-config file
++  For the eglfs-plugin compilation we use the egl configuration
++
++Upstream-Status: https://bugreports.qt.io/browse/QTBUG-47339
++Signed-off-by: Julien Corjon <corjon.j@ecagroup.com>
++---
++ config.tests/qpa/eglfs-brcm/eglfs-brcm.pro   | 2 ++
++ src/plugins/platforms/eglfs/eglfs-plugin.pro | 1 +
++ 2 files changed, 3 insertions(+)
++
++diff --git a/config.tests/qpa/eglfs-brcm/eglfs-brcm.pro b/config.tests/qpa/eglfs-brcm/eglfs-brcm.pro
++index ce16a3a..192a8ad 100644
++--- a/config.tests/qpa/eglfs-brcm/eglfs-brcm.pro
+++++ b/config.tests/qpa/eglfs-brcm/eglfs-brcm.pro
++@@ -1,6 +1,8 @@
++ SOURCES = eglfs-brcm.cpp
++ 
++ CONFIG -= qt
+++CONFIG += link_pkgconfig
+++PKGCONFIG += egl
++ 
++ INCLUDEPATH += $$QMAKE_INCDIR_EGL
++ 
++diff --git a/src/plugins/platforms/eglfs/eglfs-plugin.pro b/src/plugins/platforms/eglfs/eglfs-plugin.pro
++index 0f493fd..8479496 100644
++--- a/src/plugins/platforms/eglfs/eglfs-plugin.pro
+++++ b/src/plugins/platforms/eglfs/eglfs-plugin.pro
++@@ -6,6 +6,7 @@ PLUGIN_CLASS_NAME = QEglFSIntegrationPlugin
++ load(qt_plugin)
++ 
++ QT += platformsupport-private eglfs_device_lib-private
+++CONFIG += egl
++ 
++ SOURCES += $$PWD/qeglfsmain.cpp
++ 
++-- 
++2.1.0
++
+diff --git a/package/qt5/qt5base/0007-eglfs-fix-eglfs_mali-compile-for-odroid-mali.patch b/package/qt5/qt5base/0007-eglfs-fix-eglfs_mali-compile-for-odroid-mali.patch
+new file mode 100644
+index 0000000000..cbafb397bb
+--- /dev/null
++++ b/package/qt5/qt5base/0007-eglfs-fix-eglfs_mali-compile-for-odroid-mali.patch
+@@ -0,0 +1,53 @@
++From b6c602e4264021f98ec2c72316e2a2000bf35e82 Mon Sep 17 00:00:00 2001
++From: Peter Seiderer <ps.report@gmx.net>
++Date: Mon, 14 Nov 2016 23:42:25 +0100
++Subject: [PATCH] eglfs: fix eglfs_mali compile for odroid-mali
++
++Avoid duplicated struct fbdev_window definition (introduced by [1]) by
++renaming struct fbdev_window to shadow_fbdev_window.
++
++Fixes the following buildroot compile failure ([2]):
++
++qeglfsmaliintegration.cpp:45:8: error: redefinition of 'struct fbdev_window'
++ struct fbdev_window {
++        ^
++In file included from /accts/mlweber1/rc-buildroot-test/scripts/instance-0/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/EGL/eglplatform.h:28:0,
++                 from /accts/mlweber1/rc-buildroot-test/scripts/instance-0/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/EGL/egl.h:36,
++                 from ../../../eglfs/qeglfsglobal.h:45,
++                 from ../../../eglfs/qeglfsdeviceintegration.h:48,
++                 from qeglfsmaliintegration.h:37,
++                 from qeglfsmaliintegration.cpp:34:
++
++[1] https://code.qt.io/cgit/qt/qtbase.git/commit/?h=dev&id=58bed4cda98e8e25db8adc61c7db73b6853077dc
++[2] http://autobuild.buildroot.net/results/48c/48c458c035162169e8ca7c34ae65e9064822f25a
++
++Signed-off-by: Peter Seiderer <ps.report@gmx.net>
++---
++ .../eglfs/deviceintegration/eglfs_mali/qeglfsmaliintegration.cpp      | 4 ++--
++ 1 file changed, 2 insertions(+), 2 deletions(-)
++
++diff --git a/src/plugins/platforms/eglfs/deviceintegration/eglfs_mali/qeglfsmaliintegration.cpp b/src/plugins/platforms/eglfs/deviceintegration/eglfs_mali/qeglfsmaliintegration.cpp
++index 43decdf..aeba83f 100644
++--- a/src/plugins/platforms/eglfs/deviceintegration/eglfs_mali/qeglfsmaliintegration.cpp
+++++ b/src/plugins/platforms/eglfs/deviceintegration/eglfs_mali/qeglfsmaliintegration.cpp
++@@ -42,7 +42,7 @@
++ 
++ QT_BEGIN_NAMESPACE
++ 
++-struct fbdev_window {
+++struct shadow_fbdev_window {
++     unsigned short width;
++     unsigned short height;
++ };
++@@ -85,7 +85,7 @@ EGLNativeWindowType QEglFSMaliIntegration::createNativeWindow(QPlatformWindow *w
++     Q_UNUSED(window);
++     Q_UNUSED(format);
++ 
++-    fbdev_window *fbwin = reinterpret_cast<fbdev_window *>(malloc(sizeof(fbdev_window)));
+++    shadow_fbdev_window *fbwin = reinterpret_cast<shadow_fbdev_window *>(malloc(sizeof(shadow_fbdev_window)));
++     if (NULL == fbwin)
++         return 0;
++ 
++-- 
++2.8.1
++
+diff --git a/package/qt5/qt5base/qt5base.hash b/package/qt5/qt5base/qt5base.hash
+new file mode 100644
+index 0000000000..6795b60308
+--- /dev/null
++++ b/package/qt5/qt5base/qt5base.hash
+@@ -0,0 +1 @@
++sha256	3e7b6d123cab23a587ccbc45173296b33786faa409dba0494e4658fda3ede646	qtbase-opensource-src-5.7.0.tar.xz
+diff --git a/package/qt5/qt5canvas3d/qt5canvas3d.hash b/package/qt5/qt5canvas3d/qt5canvas3d.hash
+new file mode 100644
+index 0000000000..2d13e400f2
+--- /dev/null
++++ b/package/qt5/qt5canvas3d/qt5canvas3d.hash
+@@ -0,0 +1 @@
++sha256	7871b3fd4c1a561c5b3eb57746e8504bc5d8fa626f9df578e619f9e823e3bd97	qtcanvas3d-opensource-src-5.7.0.tar.xz
+diff --git a/package/qt5/qt5connectivity/qt5connectivity.hash b/package/qt5/qt5connectivity/qt5connectivity.hash
+new file mode 100644
+index 0000000000..00b7c2086c
+--- /dev/null
++++ b/package/qt5/qt5connectivity/qt5connectivity.hash
+@@ -0,0 +1 @@
++sha256	9844ca7ec5be187a77dfd7e95051fb267006f6c77157ecb0b8ceeac103a32703	qtconnectivity-opensource-src-5.7.0.tar.xz
+diff --git a/package/qt5/qt5datavis3d/Config.in b/package/qt5/qt5datavis3d/Config.in
+new file mode 100644
+index 0000000000..c7aca95281
+--- /dev/null
++++ b/package/qt5/qt5datavis3d/Config.in
+@@ -0,0 +1,17 @@
++config BR2_PACKAGE_QT5DATAVIS3D
++	bool "qt5datavis3d"
++	select BR2_PACKAGE_QT5DECLARATIVE
++	select BR2_PACKAGE_QT5DECLARATIVE_QUICK
++	depends on BR2_PACKAGE_QT5_GL_AVAILABLE
++	depends on BR2_PACKAGE_QT5_JSCORE_AVAILABLE
++	help
++	  Qt is a cross-platform application and UI framework for
++	  developers using C++.
++
++	  This package corresponds to the qt5datavis3d module.
++
++	  http://qt.io
++
++comment "qt5canvas3d needs an OpenGL-capable backend"
++	depends on !BR2_PACKAGE_QT5_GL_AVAILABLE
++	depends on BR2_PACKAGE_QT5_JSCORE_AVAILABLE
+diff --git a/package/qt5/qt5datavis3d/qt5datavis3d.mk b/package/qt5/qt5datavis3d/qt5datavis3d.mk
+new file mode 100644
+index 0000000000..9101148c80
+--- /dev/null
++++ b/package/qt5/qt5datavis3d/qt5datavis3d.mk
+@@ -0,0 +1,39 @@
++################################################################################
++#
++# qt5datavis3d
++#
++################################################################################
++
++QT5DATAVIS3D_VERSION = $(QT5_VERSION)
++QT5DATAVIS3D_SITE = $(QT5_SITE)
++QT5DATAVIS3D_SOURCE = qtdatavis3d-opensource-src-$(QT5DATAVIS3D_VERSION).tar.xz
++QT5DATAVIS3D_DEPENDENCIES = qt5base qt5declarative
++QT5DATAVIS3D_INSTALL_STAGING = YES
++
++ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED),y)
++QT5DATAVIS3D_LICENSE = GPLv3
++QT5DATAVIS3D_LICENSE_FILES = LICENSE.GPL3
++else
++QT5DATAVIS3D_LICENSE = Commercial license
++QT5DATAVIS3D_REDISTRIBUTE = NO
++endif
++
++define QT5DATAVIS3D_CONFIGURE_CMDS
++	(cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
++endef
++
++define QT5DATAVIS3D_BUILD_CMDS
++	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
++endef
++
++define QT5DATAVIS3D_INSTALL_STAGING_CMDS
++	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
++	$(QT5_LA_PRL_FILES_FIXUP)
++endef
++
++define QT5DATAVIS3D_INSTALL_TARGET_CMDS
++	cp -dpfr $(STAGING_DIR)/usr/lib/libQt5DataVisualization.so.* $(TARGET_DIR)/usr/lib
++        cp -dpfr $(STAGING_DIR)/usr/qml/QtDataVisualization $(TARGET_DIR)/usr/qml/
++endef
++
++$(eval $(generic-package))
+diff --git a/package/qt5/qt5declarative/qt5declarative.hash b/package/qt5/qt5declarative/qt5declarative.hash
+new file mode 100644
+index 0000000000..677966967e
+--- /dev/null
++++ b/package/qt5/qt5declarative/qt5declarative.hash
+@@ -0,0 +1 @@
++sha256	86de6239f3aee2e5f561c16ad7b6e47d8f341c293d4ed11c85acbc21888cf9f4	qtdeclarative-opensource-src-5.7.0.tar.xz
+diff --git a/package/qt5/qt5enginio/qt5enginio.hash b/package/qt5/qt5enginio/qt5enginio.hash
+new file mode 100644
+index 0000000000..95f507cf58
+--- /dev/null
++++ b/package/qt5/qt5enginio/qt5enginio.hash
+@@ -0,0 +1 @@
++sha256	627ddcfbbfc3ec1a83c9dbb5f24287b5cd6cb5d3b9d09af4d1c444c6ac147f0c	qtenginio-opensource-src-1.6.0.tar.xz
+diff --git a/package/qt5/qt5graphicaleffects/qt5graphicaleffects.hash b/package/qt5/qt5graphicaleffects/qt5graphicaleffects.hash
+new file mode 100644
+index 0000000000..7c79a99845
+--- /dev/null
++++ b/package/qt5/qt5graphicaleffects/qt5graphicaleffects.hash
+@@ -0,0 +1 @@
++sha256	c816539ce345e502425a94c624332df78f53aeebc460d76b53b79b59cb938de7	qtgraphicaleffects-opensource-src-5.7.0.tar.xz
+diff --git a/package/qt5/qt5imageformats/qt5imageformats.hash b/package/qt5/qt5imageformats/qt5imageformats.hash
+new file mode 100644
+index 0000000000..b65be404bb
+--- /dev/null
++++ b/package/qt5/qt5imageformats/qt5imageformats.hash
+@@ -0,0 +1 @@
++sha256	ef3344a44194d1414be585f8c8a652ffe217c663a22b6e26d3bb5e114f3f62e5	qtimageformats-opensource-src-5.7.0.tar.xz
+diff --git a/package/qt5/qt5location/qt5location.hash b/package/qt5/qt5location/qt5location.hash
+new file mode 100644
+index 0000000000..074168e03a
+--- /dev/null
++++ b/package/qt5/qt5location/qt5location.hash
+@@ -0,0 +1 @@
++sha256	70273367342493a77c050f033a92d96e79925aa70308746e9681d8661f4aa865	qtlocation-opensource-src-5.7.0.tar.xz
+diff --git a/package/qt5/qt5multimedia/qt5multimedia.hash b/package/qt5/qt5multimedia/qt5multimedia.hash
+new file mode 100644
+index 0000000000..1a85f9500b
+--- /dev/null
++++ b/package/qt5/qt5multimedia/qt5multimedia.hash
+@@ -0,0 +1 @@
++sha256	05ae705bda224a600b06e390aa7b1448c4a6a52d2d37842d2121fb4a5d84b559	qtmultimedia-opensource-src-5.7.0.tar.xz
+diff --git a/package/qt5/qt5quickcontrols/qt5quickcontrols.hash b/package/qt5/qt5quickcontrols/qt5quickcontrols.hash
+new file mode 100644
+index 0000000000..cf438f84ac
+--- /dev/null
++++ b/package/qt5/qt5quickcontrols/qt5quickcontrols.hash
+@@ -0,0 +1 @@
++sha256	d8e19a77100fff109585ccc62116e63dd11ce9486056a8eb5b64159b7ecdec32	qtquickcontrols-opensource-src-5.7.0.tar.xz
+diff --git a/package/qt5/qt5quickcontrols2/qt5quickcontrols2.hash b/package/qt5/qt5quickcontrols2/qt5quickcontrols2.hash
+new file mode 100644
+index 0000000000..c43afd7fbd
+--- /dev/null
++++ b/package/qt5/qt5quickcontrols2/qt5quickcontrols2.hash
+@@ -0,0 +1 @@
++sha256	63f5b0777992c32bd602b88de657e202cd6d5e8ba0371c6d5da16fb8c7481045	qtquickcontrols2-opensource-src-5.7.0.tar.xz
+diff --git a/package/qt5/qt5script/qt5script.hash b/package/qt5/qt5script/qt5script.hash
+new file mode 100644
+index 0000000000..c8ecb75eb0
+--- /dev/null
++++ b/package/qt5/qt5script/qt5script.hash
+@@ -0,0 +1,2 @@
++# Hash from: http://download.qt.io/official_releases/qt/5.6/5.6.2/submodules/qtscript-opensource-src-5.6.2.tar.xz.mirrorlist
++sha256 e06ef6b271cae2187b57cd4ffdd6759428fd47f94a060e2ed2af024a8c14110e qtscript-opensource-src-5.6.2.tar.xz
+diff --git a/package/qt5/qt5sensors/qt5sensors.hash b/package/qt5/qt5sensors/qt5sensors.hash
+new file mode 100644
+index 0000000000..ec62e3ba86
+--- /dev/null
++++ b/package/qt5/qt5sensors/qt5sensors.hash
+@@ -0,0 +1 @@
++sha256	283dcc66a24c4367e865fa8301b6ea04d0cb78bd0f166fd09a6bb42e1e3731be	qtsensors-opensource-src-5.7.0.tar.xz
+diff --git a/package/qt5/qt5serialbus/qt5serialbus.hash b/package/qt5/qt5serialbus/qt5serialbus.hash
+new file mode 100644
+index 0000000000..05972195bb
+--- /dev/null
++++ b/package/qt5/qt5serialbus/qt5serialbus.hash
+@@ -0,0 +1 @@
++sha256	2c437ace393e9dcf170990b519cec59c5cbcfc3c830e46116abb52549dc15d38	qtserialbus-opensource-src-5.7.0.tar.xz
+diff --git a/package/qt5/qt5serialport/qt5serialport.hash b/package/qt5/qt5serialport/qt5serialport.hash
+new file mode 100644
+index 0000000000..7751d64118
+--- /dev/null
++++ b/package/qt5/qt5serialport/qt5serialport.hash
+@@ -0,0 +1 @@
++sha256	5ce150d843a243854736489d4a71205a8ca8dc8f93626ec29d1aa7a249a08265	qtserialport-opensource-src-5.7.0.tar.xz
+diff --git a/package/qt5/qt5svg/qt5svg.hash b/package/qt5/qt5svg/qt5svg.hash
+new file mode 100644
+index 0000000000..0c3a9ffaea
+--- /dev/null
++++ b/package/qt5/qt5svg/qt5svg.hash
+@@ -0,0 +1 @@
++sha256	a1f89f035aed48bf8843ff1880c4b54dc2e3a5160dbd743aec03e13831cdd881	qtsvg-opensource-src-5.7.0.tar.xz
+diff --git a/package/qt5/qt5tools/0001-Disable-qdoc-needs-qtdeclarative.patch b/package/qt5/qt5tools/0001-Disable-qdoc-needs-qtdeclarative.patch
+new file mode 100644
+index 0000000000..61cbdfe6a1
+--- /dev/null
++++ b/package/qt5/qt5tools/0001-Disable-qdoc-needs-qtdeclarative.patch
+@@ -0,0 +1,30 @@
++From acdb24783322bb6e69df61cf04df2b2e47a06ad2 Mon Sep 17 00:00:00 2001
++From: Peter Seiderer <ps.report@gmx.net>
++Date: Tue, 29 Mar 2016 13:37:09 +0200
++Subject: [PATCH] Disable qdoc (needs qtdeclarative).
++
++Fixes:
++
++  Project ERROR: Unknown module(s) in QT: qmldevtools-private
++  Makefile:63: recipe for target 'sub-qdoc-qmake_all' failed
++
++Signed-off-by: Peter Seiderer <ps.report@gmx.net>
++---
++ src/src.pro | 1 -
++ 1 file changed, 1 deletion(-)
++
++diff --git a/src/src.pro b/src/src.pro
++index 387d54f..494898f 100644
++--- a/src/src.pro
+++++ b/src/src.pro
++@@ -14,7 +14,6 @@ qtHaveModule(widgets) {
++ }
++ 
++ SUBDIRS += linguist \
++-    qdoc \
++     qtplugininfo
++ if(!android|android_app):!ios: SUBDIRS += qtpaths
++ 
++-- 
++2.1.4
++
+diff --git a/package/qt5/qt5tools/qt5tools.hash__ b/package/qt5/qt5tools/qt5tools.hash__
+new file mode 100644
+index 0000000000..cc11b2845f
+--- /dev/null
++++ b/package/qt5/qt5tools/qt5tools.hash__
+@@ -0,0 +1,2 @@
++# Hash from: http://download.qt.io/official_releases/qt/5.6/5.6.2/submodules/qttools-opensource-src-5.6.2.tar.xz.mirrorlist
++sha256 db2bb4318786257a47172c377d9c456d5d5ec760d5d69240a4693dc87989e1b7 qttools-opensource-src-5.6.2.tar.xz
+diff --git a/package/qt5/qt5webchannel/qt5webchannel.hash b/package/qt5/qt5webchannel/qt5webchannel.hash
+new file mode 100644
+index 0000000000..c4fc230815
+--- /dev/null
++++ b/package/qt5/qt5webchannel/qt5webchannel.hash
+@@ -0,0 +1 @@
++sha256	3ab4cd177cc742ee5015f2b7f943c16ce13380b840f824436b5005485b749816	qtwebchannel-opensource-src-5.7.0.tar.xz
+diff --git a/package/qt5/qt5webengine/001-chromium-glibc-2.24-issue.patch b/package/qt5/qt5webengine/001-chromium-glibc-2.24-issue.patch
+new file mode 100644
+index 0000000000..f3d5bdaf7d
+--- /dev/null
++++ b/package/qt5/qt5webengine/001-chromium-glibc-2.24-issue.patch
+@@ -0,0 +1,14 @@
++--- a/src/3rdparty/chromium/third_party/WebKit/Source/wtf/PageAllocator.cpp	2016-05-26 15:53:47.000000000 +0200
+++++ b/src/3rdparty/chromium/third_party/WebKit/Source/wtf/PageAllocator.cpp	2016-11-19 00:19:49.894527354 +0100
++@@ -39,6 +39,11 @@
++ 
++ #include <sys/mman.h>
++ 
+++#if OS(LINUX) && defined(MADV_FREE)
+++// glibc 2.24 issues in qtwebengine
+++#undef MADV_FREE
+++#endif
+++
++ #ifndef MADV_FREE
++ #define MADV_FREE MADV_DONTNEED
++ #endif
+diff --git a/package/qt5/qt5webengine/001-delegate_frame_node_fence_sync.patch b/package/qt5/qt5webengine/001-delegate_frame_node_fence_sync.patch
+new file mode 100644
+index 0000000000..c7bdcffe71
+--- /dev/null
++++ b/package/qt5/qt5webengine/001-delegate_frame_node_fence_sync.patch
+@@ -0,0 +1,20 @@
++--- a/src/core/delegated_frame_node.cpp	2016-03-03 17:02:28.000000000 +0100
+++++ b/src/core/delegated_frame_node.cpp	2016-04-09 21:01:03.502390661 +0200
++@@ -194,7 +194,7 @@
++     case gfx::TransferableFence::NoSync:
++         break;
++     case gfx::TransferableFence::EglSync:
++-#ifdef EGL_KHR_reusable_sync
+++#ifdef EGL_KHR_fence_sync
++     {
++         static bool resolved = false;
++         static PFNEGLCLIENTWAITSYNCKHRPROC eglClientWaitSyncKHR = 0;
++@@ -235,7 +235,7 @@
++     case gfx::TransferableFence::NoSync:
++         break;
++     case gfx::TransferableFence::EglSync:
++-#ifdef EGL_KHR_reusable_sync
+++#ifdef EGL_KHR_fence_sync
++     {
++         static bool resolved = false;
++         static PFNEGLDESTROYSYNCKHRPROC eglDestroySyncKHR = 0;
+diff --git a/package/qt5/qt5webkit/0004-Fix-linking-with-libpthread.patch b/package/qt5/qt5webkit/0004-Fix-linking-with-libpthread.patch
+new file mode 100644
+index 0000000000..b7b6791ab7
+--- /dev/null
++++ b/package/qt5/qt5webkit/0004-Fix-linking-with-libpthread.patch
+@@ -0,0 +1,34 @@
++From 5dd4bb67cfce812fd7686e43616e2069f354a7df Mon Sep 17 00:00:00 2001
++From: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
++Date: Mon, 22 Feb 2016 10:57:32 +0100
++Subject: [PATCH] Fix linking with libpthread
++
++WebKit use libpthread directly but is depending on other qt modules
++causing it to be linked against, which might break unless -lpthread
++is last. Instead just add it explicitly after the static libraries.
++
++Upstream-Status: Backport from 5.7 branch
++
++Change-Id: I2b95cff2c96373f8dce6f95052c4fccbe1982b33
++Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
++Signed-off-by: Jonathan Liu <net147@gmail.com>
++Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
++---
++ Tools/qmake/mkspecs/features/default_post.prf | 1 +
++ 1 file changed, 1 insertion(+)
++
++diff --git a/Tools/qmake/mkspecs/features/default_post.prf b/Tools/qmake/mkspecs/features/default_post.prf
++index 67276b7..39bb3f7 100644
++--- a/Tools/qmake/mkspecs/features/default_post.prf
+++++ b/Tools/qmake/mkspecs/features/default_post.prf
++@@ -201,6 +201,7 @@ needToLink() {
++         linkAgainstLibrary($$library, $$eval(WEBKIT.$${library_identifier}.root_source_dir))
++         LIBS += $$eval(WEBKIT.$${library_identifier}.dependent_libs)
++     }
+++    posix:!darwin: LIBS += -lpthread
++ }
++ 
++ creating_module {
++-- 
++2.7.1
++
+diff --git a/package/qt5/qt5webkit/qt5webkit.hash b/package/qt5/qt5webkit/qt5webkit.hash
+new file mode 100644
+index 0000000000..47e93c0d1a
+--- /dev/null
++++ b/package/qt5/qt5webkit/qt5webkit.hash
+@@ -0,0 +1 @@
++sha256	1c79843ef32313312290d4fe0b87256a9129dc44d62b01789a692981edf4d8ab	qt5webkit-d2ff5a085572b1ee24dcb42ae107063f3142d14e.tar.gz
+diff --git a/package/qt5/qt5websockets/qt5websockets.hash b/package/qt5/qt5websockets/qt5websockets.hash
+new file mode 100644
+index 0000000000..067bd6ffd3
+--- /dev/null
++++ b/package/qt5/qt5websockets/qt5websockets.hash
+@@ -0,0 +1 @@
++sha256	741be11a907f82807a786e6a53ae7316c0b3864491b692e8719c381e0f158b43	qtwebsockets-opensource-src-5.7.0.tar.xz
+diff --git a/package/qt5/qt5x11extras/qt5x11extras.hash b/package/qt5/qt5x11extras/qt5x11extras.hash
+new file mode 100644
+index 0000000000..297c578b87
+--- /dev/null
++++ b/package/qt5/qt5x11extras/qt5x11extras.hash
+@@ -0,0 +1,2 @@
++# Hash from: http://download.qt.io/official_releases/qt/5.6/5.6.2/submodules/qtx11extras-opensource-src-5.6.2.tar.xz.mirrorlist
++sha256 71ffde1cfaeec310677b69ecd16cb5992e8885cf3e73b4cec7d6e7a115b40ced qtx11extras-opensource-src-5.6.2.tar.xz
+diff --git a/package/qt5/qt5xmlpatterns/qt5xmlpatterns.hash b/package/qt5/qt5xmlpatterns/qt5xmlpatterns.hash
+new file mode 100644
+index 0000000000..f0f369d6ce
+--- /dev/null
++++ b/package/qt5/qt5xmlpatterns/qt5xmlpatterns.hash
+@@ -0,0 +1 @@
++sha256	38882a4ea5d711be07d10695759359045f7f9d64727a65e1d5e6515d55c7e20b	qtxmlpatterns-opensource-src-5.7.0.tar.xz

+ 27 - 0
GfA-buildroot-update-change-excludes.patch

@@ -0,0 +1,27 @@
+diff --git a/UpdateRootfs.sh.in b/UpdateRootfs.sh.in
+index 76a75fb9b8..42b1ddc8f1 100644
+--- a/UpdateRootfs.sh.in
++++ b/UpdateRootfs.sh.in
+@@ -53,7 +53,7 @@ cp $TMP_PATH/uImage /mnt
+ cp $TMP_PATH/*.dtb /mnt
+ 
+ #rootfs auspacken
+-tar -C / --exclude=./tmp \
++tar -C / --exclude=./opt --exclude=./tmp --exclude=./etc/inittab \
+ 	--exclude=./etc/network/interfaces \
+ 	--exclude=./etc/hosts --exclude=./etc/hostname \
+ 	--exclude=./etc/passwd --exclude=./etc/shadow \
+@@ -170,11 +170,11 @@ fi
+ 
+ if [ "$XRES" == "1920" -a "$YRES" == "1080" ]; then
+ if [ "$BASEBOARD" == "DISPLAY002_DI4" ]; then
+-  echo "10 Inch Display 2"
++  echo "15 Inch Display 2"
+   sh /root/Display2To_15inch.sh
+   DONE=1
+ else
+-  echo "10 Inch"
++  echo "15 Inch"
+   sh /root/DisplayTo_15inch.sh
+   DONE=1
+ fi

+ 2 - 0
Make-bb-kernel_Qt5.7.sh

@@ -46,6 +46,8 @@ patch -p1 < ../GfA/GfA-buildroot-MakeDTSupdate.patch
 patch -p1 < ../GfA/GfA-buildroot_fontconfig_mtime_always_ok.patch
 patch -p1 < ../GfA/GfA-buildroot_make_image_update.patch
 patch -p1 < ../GfA/GfA-buildroot-qt57_on_Kernel_4_4_104.patch
+patch -p1 < ../GfA/GfA-buildroot-qt57_on_Kernel_4_4_104_part2.patch
+patch -p1 < ../GfA/GfA-buildroot-update-change-excludes.patch
 #
 chmod a+x *.sh
 cp ../GfA/configs/* ./configs

+ 1 - 1
board/GfA/Display001/BUILD

@@ -1 +1 @@
-473
+600

+ 1 - 4
board/GfA/Display001/rootfs/etc/inittab

@@ -28,11 +28,9 @@ ttyO0::respawn:/sbin/getty -L  ttyO0 115200 linux # GENERIC_SERIAL
 #tty1::respawn:/root/startapp.sh
 tty2::respawn:/sbin/getty -L  tty2 115200 linux
 tty3::respawn:/sbin/getty -L  tty3 115200 linux
-#tty4::respawn:/opt/WGET_di-soric_001/bin/WGET_di-soric_001
-#tty5::respawn:/opt/MAIN_di-soric_001/bin/MAIN_di-soric_001
 
 #tty6::respawn:/root/startbrowser.sh
-#tty8::respawn:/var/GfA/Display_GSM 
+tty8::respawn:/var/GfA/Display_GSM 
 # Stuff to do for the 3-finger salute
 ::ctrlaltdel:/sbin/reboot
 
@@ -40,4 +38,3 @@ tty3::respawn:/sbin/getty -L  tty3 115200 linux
 null::shutdown:/etc/init.d/rcK
 null::shutdown:/bin/umount -a -r
 null::shutdown:/sbin/swapoff -a
-

BIN
board/GfA/Display001/rootfs/var/GfA/Display_GSM