Bump buidlroot version to 2018.02.6
This commit is contained in:
7
bsp/buildroot/package/qt5/qt5base/5.6.3/qt5base.hash
Normal file
7
bsp/buildroot/package/qt5/qt5base/5.6.3/qt5base.hash
Normal file
@@ -0,0 +1,7 @@
|
||||
# Hashes for license files:
|
||||
sha256 245248009fd0af1725d183248380e476c1283383909358a13686606352bf2a17 LICENSE.GPLv3
|
||||
sha256 66f6bb53f6d985a4d651bf1ecfe8bbcbe32b0f744708d588f047580ee85d8ec8 LICENSE.LGPLv21
|
||||
sha256 438c1f9a2b256e47dac33249f2ad6d4a9df643f1ec5312216d528a2f7ad82084 LGPL_EXCEPTION.txt
|
||||
sha256 68afaf3392f8c04218fbf29db43cc0b18bf651c1db086556aa584046de9f3e35 LICENSE.LGPLv3
|
||||
sha256 ed8742a95cb9db653a09b050e27ccff5e67ba69c14aa2c3137f2a4e1892f6c0d LICENSE.FDL
|
||||
sha256 1d05f2662f0be7544c4cc238d0957d1ed5d0edc45210e9108f905df354241a0e header.BSD
|
||||
@@ -1,34 +0,0 @@
|
||||
From 74af93f5298b54bc2327843f390bf202776f2f48 Mon Sep 17 00:00:00 2001
|
||||
From: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
|
||||
Date: Tue, 10 Jan 2017 14:18:02 +0100
|
||||
Subject: [PATCH] fix parallel builds with -qt-freetype -system-libpng
|
||||
|
||||
freetype has no dependency on gui, so it needs to pull in gui's
|
||||
configuration manually, as that's where the system libpng is found.
|
||||
|
||||
Task-number: QTBUG-58038
|
||||
Change-Id: I881495f7d2a8f7c1a45d7d4c9e7698ff1d30f2a9
|
||||
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
|
||||
Reviewed-by: Joni Poikelin <joni.poikelin@qt.io>
|
||||
|
||||
Upstream: https://code.qt.io/cgit/qt/qtbase.git/commit/?id=4dcfd90e4fd7d4c49138038dbbcbda8794a9fbff
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
---
|
||||
src/3rdparty/freetype/freetype.pro | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/3rdparty/freetype/freetype.pro b/src/3rdparty/freetype/freetype.pro
|
||||
index 5b1eb92e..390a6da7 100644
|
||||
--- a/src/3rdparty/freetype/freetype.pro
|
||||
+++ b/src/3rdparty/freetype/freetype.pro
|
||||
@@ -69,6 +69,7 @@ DEFINES += FT_CONFIG_OPTION_SYSTEM_ZLIB
|
||||
include(../zlib_dependency.pri)
|
||||
|
||||
DEFINES += FT_CONFIG_OPTION_USE_PNG
|
||||
+include($$OUT_PWD/../../gui/qtgui-config.pri)
|
||||
QMAKE_USE_PRIVATE += libpng
|
||||
|
||||
DEFINES += TT_CONFIG_OPTION_SUBPIXEL_HINTING
|
||||
--
|
||||
2.11.0
|
||||
|
||||
@@ -1,97 +0,0 @@
|
||||
From 35ee8b53549fab6ebffe289417e1d94298447af7 Mon Sep 17 00:00:00 2001
|
||||
From: Shawn Rutledge <shawn.rutledge@digia.com>
|
||||
Date: Fri, 10 Feb 2017 13:56:58 +0100
|
||||
Subject: [PATCH] fix VNC platform plugin build on big-endian machines
|
||||
|
||||
Task-number: QTBUG-58734
|
||||
Change-Id: I3e44ee4be5003acaba2f1b8ed2658a3ff1bd700e
|
||||
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
|
||||
Reviewed-by: Dmitry Shachnev <mitya57@gmail.com>
|
||||
|
||||
Upstream: http://code.qt.io/cgit/qt/qtbase.git/patch/?id=6f64bfa654fb7e20bb75ec3b0544b81482babb44
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
---
|
||||
src/plugins/platforms/vnc/qvncclient.cpp | 6 +++---
|
||||
src/plugins/platforms/vnc/qvncscreen.cpp | 7 ++++++-
|
||||
src/plugins/platforms/vnc/qvncscreen.h | 2 +-
|
||||
3 files changed, 10 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/src/plugins/platforms/vnc/qvncclient.cpp b/src/plugins/platforms/vnc/qvncclient.cpp
|
||||
index dae3e83f..58dcfc9b 100644
|
||||
--- a/src/plugins/platforms/vnc/qvncclient.cpp
|
||||
+++ b/src/plugins/platforms/vnc/qvncclient.cpp
|
||||
@@ -142,7 +142,7 @@ void QVncClient::convertPixels(char *dst, const char *src, int count) const
|
||||
case 16: {
|
||||
quint16 p = *reinterpret_cast<const quint16*>(src);
|
||||
#if Q_BYTE_ORDER == Q_BIG_ENDIAN
|
||||
- if (swapBytes)
|
||||
+ if (m_swapBytes)
|
||||
p = ((p & 0xff) << 8) | ((p & 0xff00) >> 8);
|
||||
#endif
|
||||
r = (p >> 11) & 0x1f;
|
||||
@@ -484,7 +484,7 @@ void QVncClient::setPixelFormat()
|
||||
m_sameEndian = (QSysInfo::ByteOrder == QSysInfo::BigEndian) == !!m_pixelFormat.bigEndian;
|
||||
m_needConversion = pixelConversionNeeded();
|
||||
#if Q_BYTE_ORDER == Q_BIG_ENDIAN
|
||||
- m_swapBytes = qvnc_screen->swapBytes();
|
||||
+ m_swapBytes = server()->screen()->swapBytes();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -639,7 +639,7 @@ bool QVncClient::pixelConversionNeeded() const
|
||||
return true;
|
||||
|
||||
#if Q_BYTE_ORDER == Q_BIG_ENDIAN
|
||||
- if (qvnc_screen->swapBytes())
|
||||
+ if (server()->screen()->swapBytes())
|
||||
return true;
|
||||
#endif
|
||||
|
||||
diff --git a/src/plugins/platforms/vnc/qvncscreen.cpp b/src/plugins/platforms/vnc/qvncscreen.cpp
|
||||
index 34def457..64f1bc0b 100644
|
||||
--- a/src/plugins/platforms/vnc/qvncscreen.cpp
|
||||
+++ b/src/plugins/platforms/vnc/qvncscreen.cpp
|
||||
@@ -43,6 +43,7 @@
|
||||
#include <QtFbSupport/private/qfbcursor_p.h>
|
||||
|
||||
#include <QtGui/QPainter>
|
||||
+#include <QtGui/QScreen>
|
||||
#include <QtCore/QRegularExpression>
|
||||
|
||||
|
||||
@@ -172,14 +173,18 @@ QPixmap QVncScreen::grabWindow(WId wid, int x, int y, int width, int height) con
|
||||
}
|
||||
|
||||
#if Q_BYTE_ORDER == Q_BIG_ENDIAN
|
||||
-bool QVNCScreen::swapBytes() const
|
||||
+bool QVncScreen::swapBytes() const
|
||||
{
|
||||
+ return false;
|
||||
+
|
||||
+ /* TODO
|
||||
if (depth() != 16)
|
||||
return false;
|
||||
|
||||
if (screen())
|
||||
return screen()->frameBufferLittleEndian();
|
||||
return frameBufferLittleEndian();
|
||||
+ */
|
||||
}
|
||||
#endif
|
||||
|
||||
diff --git a/src/plugins/platforms/vnc/qvncscreen.h b/src/plugins/platforms/vnc/qvncscreen.h
|
||||
index 785abd6d..0b42c3c7 100644
|
||||
--- a/src/plugins/platforms/vnc/qvncscreen.h
|
||||
+++ b/src/plugins/platforms/vnc/qvncscreen.h
|
||||
@@ -73,7 +73,7 @@ public:
|
||||
void clearDirty() { dirtyRegion = QRegion(); }
|
||||
|
||||
#if Q_BYTE_ORDER == Q_BIG_ENDIAN
|
||||
- bool swapBytes() const
|
||||
+ bool swapBytes() const;
|
||||
#endif
|
||||
|
||||
QStringList mArgs;
|
||||
--
|
||||
2.11.0
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
From c5d7425f8ad391112758db161e3e08f18dc9d299 Mon Sep 17 00:00:00 2001
|
||||
From: Marc Mutz <marc.mutz@kdab.com>
|
||||
Date: Thu, 26 May 2016 08:30:26 +0200
|
||||
Subject: [PATCH] QAtomic: pass explicit failure mode to
|
||||
std::atomic::compare_exchange_strong
|
||||
|
||||
... in an attempt to avoid GCC 4.8 errors such as
|
||||
|
||||
bits/atomic_base.h:577:70: error: failure memory model cannot be stronger than success memory model for '__atomic_compare_exchange'
|
||||
return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, __m1, __m2);
|
||||
^
|
||||
|
||||
as seen on Android.
|
||||
|
||||
Change-Id: If046e735888cf331d2d6506d8d5ca9aa7402f9ad
|
||||
[Bug report: https://bugreports.qt.io/browse/QTBUG-59399
|
||||
Patch sent upstream: https://codereview.qt-project.org/#/c/187980/]
|
||||
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.org>
|
||||
---
|
||||
src/corelib/arch/qatomic_cxx11.h | 8 ++++----
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/src/corelib/arch/qatomic_cxx11.h b/src/corelib/arch/qatomic_cxx11.h
|
||||
index bb49aae..d6731ec 100644
|
||||
--- a/src/corelib/arch/qatomic_cxx11.h
|
||||
+++ b/src/corelib/arch/qatomic_cxx11.h
|
||||
@@ -153,7 +153,7 @@ template <typename X> struct QAtomicOps
|
||||
template <typename T>
|
||||
static bool testAndSetRelaxed(std::atomic<T> &_q_value, T expectedValue, T newValue, T *currentValue = Q_NULLPTR) Q_DECL_NOTHROW
|
||||
{
|
||||
- bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_relaxed);
|
||||
+ bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_relaxed, std::memory_order_relaxed);
|
||||
if (currentValue)
|
||||
*currentValue = expectedValue;
|
||||
return tmp;
|
||||
@@ -162,7 +162,7 @@ template <typename X> struct QAtomicOps
|
||||
template <typename T>
|
||||
static bool testAndSetAcquire(std::atomic<T> &_q_value, T expectedValue, T newValue, T *currentValue = Q_NULLPTR) Q_DECL_NOTHROW
|
||||
{
|
||||
- bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_acquire);
|
||||
+ bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_acquire, std::memory_order_acquire);
|
||||
if (currentValue)
|
||||
*currentValue = expectedValue;
|
||||
return tmp;
|
||||
@@ -171,7 +171,7 @@ template <typename X> struct QAtomicOps
|
||||
template <typename T>
|
||||
static bool testAndSetRelease(std::atomic<T> &_q_value, T expectedValue, T newValue, T *currentValue = Q_NULLPTR) Q_DECL_NOTHROW
|
||||
{
|
||||
- bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_release);
|
||||
+ bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_release, std::memory_order_relaxed);
|
||||
if (currentValue)
|
||||
*currentValue = expectedValue;
|
||||
return tmp;
|
||||
@@ -180,7 +180,7 @@ template <typename X> struct QAtomicOps
|
||||
template <typename T>
|
||||
static bool testAndSetOrdered(std::atomic<T> &_q_value, T expectedValue, T newValue, T *currentValue = Q_NULLPTR) Q_DECL_NOTHROW
|
||||
{
|
||||
- bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_acq_rel);
|
||||
+ bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_acq_rel, std::memory_order_acquire);
|
||||
if (currentValue)
|
||||
*currentValue = expectedValue;
|
||||
return tmp;
|
||||
--
|
||||
1.7.10.4
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
From 8902f4d7b7c532592d1a34ad117698d3e380e9e1 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Seiderer <ps.report@gmx.net>
|
||||
Date: Fri, 10 Mar 2017 22:23:06 +0100
|
||||
Subject: [PATCH] eglfs: fix x11 header related compile failure
|
||||
|
||||
Add egl config and QT_EGL_NO_X11 define (as all other eglfs project
|
||||
files do).
|
||||
|
||||
Task-number: QTBUG-59427
|
||||
Change-Id: Ifbb11eae0fdf0e58c0b7feecb9a7914a889c8f77
|
||||
|
||||
Upstream: https://codereview.qt-project.org/188158
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
---
|
||||
src/plugins/platforms/eglfs/eglfs-plugin.pro | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/src/plugins/platforms/eglfs/eglfs-plugin.pro b/src/plugins/platforms/eglfs/eglfs-plugin.pro
|
||||
index cf4863975a..ec229796e5 100644
|
||||
--- a/src/plugins/platforms/eglfs/eglfs-plugin.pro
|
||||
+++ b/src/plugins/platforms/eglfs/eglfs-plugin.pro
|
||||
@@ -2,6 +2,11 @@ TARGET = qeglfs
|
||||
|
||||
QT += eglfsdeviceintegration-private
|
||||
|
||||
+CONFIG += egl
|
||||
+
|
||||
+# Avoid X11 header collision, use generic EGL native types
|
||||
+DEFINES += QT_EGL_NO_X11
|
||||
+
|
||||
SOURCES += $$PWD/qeglfsmain.cpp
|
||||
|
||||
OTHER_FILES += $$PWD/eglfs.json
|
||||
--
|
||||
2.11.0
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
From fe8a9bacf781fcf290e04a08f2b8e37d881d58bb Mon Sep 17 00:00:00 2001
|
||||
From: Peter Seiderer <ps.report@gmx.net>
|
||||
Date: Thu, 27 Apr 2017 22:41:28 +0200
|
||||
Subject: [PATCH] examples: fix compile without gui module
|
||||
|
||||
Fixes:
|
||||
|
||||
Project ERROR: Could not find feature opengl.
|
||||
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
---
|
||||
examples/gui/gui.pro | 2 +-
|
||||
examples/widgets/widgets.pro | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/examples/gui/gui.pro b/examples/gui/gui.pro
|
||||
index a4d960d3f5..b8080c2075 100644
|
||||
--- a/examples/gui/gui.pro
|
||||
+++ b/examples/gui/gui.pro
|
||||
@@ -6,5 +6,5 @@ CONFIG += no_docs_target
|
||||
|
||||
SUBDIRS += analogclock
|
||||
SUBDIRS += rasterwindow
|
||||
-qtConfig(opengl): \
|
||||
+qtHaveModule(gui):qtConfig(opengl): \
|
||||
SUBDIRS += openglwindow
|
||||
diff --git a/examples/widgets/widgets.pro b/examples/widgets/widgets.pro
|
||||
index 513ddc91f2..cef4936d32 100644
|
||||
--- a/examples/widgets/widgets.pro
|
||||
+++ b/examples/widgets/widgets.pro
|
||||
@@ -22,7 +22,7 @@ SUBDIRS = \
|
||||
tutorials \
|
||||
widgets
|
||||
|
||||
-qtConfig(opengl): \
|
||||
+qtHaveModule(gui):qtConfig(opengl): \
|
||||
SUBDIRS += windowcontainer
|
||||
|
||||
contains(DEFINES, QT_NO_CURSOR): SUBDIRS -= mainwindows
|
||||
--
|
||||
2.11.0
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
From f0c02fb22bc277e2015a18e562b551ec7b3eed9e Mon Sep 17 00:00:00 2001
|
||||
From: Peter Seiderer <ps.report@gmx.net>
|
||||
Date: Sun, 16 Jul 2017 00:05:44 +0200
|
||||
Subject: [PATCH] Fix error attribute(target("+crc")) is unknown
|
||||
|
||||
Task-number: QTBUG-61975
|
||||
Change-Id: I0b1b55c0737dad485b5ace8e6eb7cb842589453d
|
||||
---
|
||||
src/corelib/tools/qhash.cpp | 2 ++
|
||||
src/corelib/tools/qsimd_p.h | 3 +++
|
||||
2 files changed, 5 insertions(+)
|
||||
|
||||
diff --git a/src/corelib/tools/qhash.cpp b/src/corelib/tools/qhash.cpp
|
||||
index 1f9c05c..bbf6efb 100644
|
||||
--- a/src/corelib/tools/qhash.cpp
|
||||
+++ b/src/corelib/tools/qhash.cpp
|
||||
@@ -144,7 +144,9 @@ static inline bool hasFastCrc32()
|
||||
}
|
||||
|
||||
template <typename Char>
|
||||
+#if defined(__aarch64__)
|
||||
QT_FUNCTION_TARGET(CRC32)
|
||||
+#endif
|
||||
static uint crc32(const Char *ptr, size_t len, uint h)
|
||||
{
|
||||
// The crc32[whbd] instructions on Aarch64/Aarch32 calculate a 32-bit CRC32 checksum
|
||||
diff --git a/src/corelib/tools/qsimd_p.h b/src/corelib/tools/qsimd_p.h
|
||||
index 023a4b0..a85d572 100644
|
||||
--- a/src/corelib/tools/qsimd_p.h
|
||||
+++ b/src/corelib/tools/qsimd_p.h
|
||||
@@ -326,7 +326,10 @@
|
||||
#endif
|
||||
// AArch64/ARM64
|
||||
#if defined(Q_PROCESSOR_ARM_V8) && defined(__ARM_FEATURE_CRC32)
|
||||
+#if defined(__aarch64__)
|
||||
+// only available on aarch64
|
||||
#define QT_FUNCTION_TARGET_STRING_CRC32 "+crc"
|
||||
+#endif
|
||||
# include <arm_acle.h>
|
||||
#endif
|
||||
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
config BR2_PACKAGE_QT5BASE
|
||||
bool "qt5base"
|
||||
select BR2_PACKAGE_ZLIB
|
||||
select BR2_PACKAGE_PCRE
|
||||
select BR2_PACKAGE_PCRE_16
|
||||
select BR2_PACKAGE_PCRE_UTF
|
||||
select BR2_PACKAGE_PCRE if BR2_PACKAGE_QT5_VERSION_5_6
|
||||
select BR2_PACKAGE_PCRE_16 if BR2_PACKAGE_QT5_VERSION_5_6
|
||||
select BR2_PACKAGE_PCRE_UTF if BR2_PACKAGE_QT5_VERSION_5_6
|
||||
select BR2_PACKAGE_PCRE2 if BR2_PACKAGE_QT5_VERSION_LATEST
|
||||
select BR2_PACKAGE_PCRE2_16 if BR2_PACKAGE_QT5_VERSION_LATEST
|
||||
help
|
||||
Qt is a cross-platform application and UI framework for
|
||||
developers using C++.
|
||||
@@ -27,18 +29,6 @@ config BR2_PACKAGE_QT5BASE_CUSTOM_CONF_OPTS
|
||||
E.g. to remove the Windows Vista style option, add the option
|
||||
-no-feature-style_windowsvista.
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_LICENSE_APPROVED
|
||||
bool "Approve free license"
|
||||
help
|
||||
Select this if you approve one of the available free licenses for the
|
||||
Qt5 library.
|
||||
By doing this you will not be asked while the library is compiled.
|
||||
Please read and understand the license terms before approving this.
|
||||
|
||||
LGPL: http://doc.qt.io/qt-5/lgpl.html
|
||||
|
||||
See also http://doc.qt.io/qt-5/licensing.html
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_CONFIG_FILE
|
||||
string "Config file"
|
||||
help
|
||||
@@ -73,19 +63,19 @@ config BR2_PACKAGE_QT5BASE_SQL
|
||||
if BR2_PACKAGE_QT5BASE_SQL
|
||||
config BR2_PACKAGE_QT5BASE_MYSQL
|
||||
bool "MySQL Plugin"
|
||||
depends on BR2_USE_MMU # mysql
|
||||
select BR2_PACKAGE_MYSQL
|
||||
select BR2_PACKAGE_NCURSES
|
||||
select BR2_PACKAGE_READLINE
|
||||
depends on BR2_USE_MMU # mysql
|
||||
help
|
||||
Build MySQL plugin
|
||||
If unsure, say n.
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_PSQL
|
||||
bool "PostgreSQL Plugin"
|
||||
select BR2_PACKAGE_POSTGRESQL
|
||||
depends on BR2_USE_MMU # postgresql
|
||||
depends on !BR2_STATIC_LIBS
|
||||
select BR2_PACKAGE_POSTGRESQL
|
||||
help
|
||||
Build PostgreSQL plugin
|
||||
If unsure, say n.
|
||||
@@ -180,8 +170,9 @@ config BR2_PACKAGE_QT5BASE_OPENGL_LIB
|
||||
bool "opengl module"
|
||||
select BR2_PACKAGE_QT5BASE_WIDGETS
|
||||
help
|
||||
This option enables the Qt5OpenGL library. This library includes
|
||||
OpenGL support classes provided to ease porting from Qt 4.x.
|
||||
This option enables the Qt5OpenGL library. This library
|
||||
includes OpenGL support classes provided to ease porting
|
||||
from Qt 4.x.
|
||||
|
||||
endif
|
||||
|
||||
@@ -210,9 +201,9 @@ comment "X.org XCB backend available if X.org is enabled"
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_EGLFS
|
||||
bool "eglfs support"
|
||||
select BR2_PACKAGE_QT5BASE_OPENGL
|
||||
depends on BR2_PACKAGE_HAS_LIBEGL
|
||||
depends on BR2_PACKAGE_QT5_GL_AVAILABLE
|
||||
select BR2_PACKAGE_QT5BASE_OPENGL
|
||||
|
||||
comment "eglfs backend available if OpenGL and EGL are enabled"
|
||||
depends on !BR2_PACKAGE_HAS_LIBEGL || !BR2_PACKAGE_QT5_GL_AVAILABLE
|
||||
@@ -221,12 +212,14 @@ config BR2_PACKAGE_QT5BASE_DEFAULT_QPA
|
||||
string "Default graphical platform"
|
||||
help
|
||||
Choose the default platform abstraction to use for graphical
|
||||
applications (e.g xcb, linuxfb, eglfs, ...). If this is empty, the
|
||||
default for your architecture will be used (usually this is eglfs).
|
||||
applications (e.g xcb, linuxfb, eglfs, ...). If this is
|
||||
empty, the default for your architecture will be used
|
||||
(usually this is eglfs).
|
||||
|
||||
You can get a list of supported platforms by running a Qt application
|
||||
with the option "-platform help" on your target. You can choose a
|
||||
different platform at runtime with the -platform option.
|
||||
You can get a list of supported platforms by running a Qt
|
||||
application with the option "-platform help" on your
|
||||
target. You can choose a different platform at runtime with
|
||||
the -platform option.
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_PRINTSUPPORT
|
||||
depends on BR2_PACKAGE_QT5BASE_WIDGETS
|
||||
@@ -239,6 +232,14 @@ config BR2_PACKAGE_QT5BASE_FONTCONFIG
|
||||
This option enables Fontconfig and Freetype support using
|
||||
the system fontconfig and freetype2 libraries.
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_HARFBUZZ
|
||||
bool "harfbuzz support"
|
||||
select BR2_PACKAGE_HARFBUZZ if BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
help
|
||||
This option enables HarfBuzz support (either system harfbuzz
|
||||
if the toolchain supports __sync for 4 bytes, or the qt
|
||||
provided one which avoids this dependency by using QAtomic).
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_GIF
|
||||
bool "GIF support"
|
||||
help
|
||||
@@ -262,28 +263,31 @@ endif
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_DBUS
|
||||
bool "DBus module"
|
||||
select BR2_PACKAGE_DBUS
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_USE_MMU
|
||||
select BR2_PACKAGE_DBUS
|
||||
help
|
||||
This option enables the D-Bus module.
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_ICU
|
||||
bool "Enable ICU support"
|
||||
select BR2_PACKAGE_ICU
|
||||
depends on BR2_HOST_GCC_AT_LEAST_4_8 # icu
|
||||
depends on !BR2_BINFMT_FLAT # icu
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # icu
|
||||
select BR2_PACKAGE_ICU
|
||||
help
|
||||
This option enables ICU support in Qt5. This is for example
|
||||
needed for Qt5Webkit.
|
||||
|
||||
comment "icu support needs a toolchain w/ gcc >= 4.8, host gcc >= 4.8"
|
||||
depends on !BR2_BINFMT_FLAT
|
||||
depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || \
|
||||
!BR2_HOST_GCC_AT_LEAST_4_8
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_TSLIB
|
||||
bool "Enable Tslib support"
|
||||
depends on !BR2_STATIC_LIBS # dlopen
|
||||
select BR2_PACKAGE_TSLIB
|
||||
help
|
||||
This options enables the Tslib plugin
|
||||
|
||||
comment "tslib support needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
endif
|
||||
|
||||
@@ -21,8 +21,10 @@ CONFIG += nostrip
|
||||
QMAKE_LIBS += -lrt -lpthread -ldl
|
||||
QMAKE_CFLAGS_ISYSTEM =
|
||||
|
||||
# Architecturespecific configuration
|
||||
# Architecture specific configuration
|
||||
include(arch.conf)
|
||||
|
||||
@EGLFS_DEVICE@
|
||||
|
||||
include(../common/linux_device_post.conf)
|
||||
load(qt_config)
|
||||
19
bsp/buildroot/package/qt5/qt5base/qt.conf.in
Normal file
19
bsp/buildroot/package/qt5/qt5base/qt.conf.in
Normal file
@@ -0,0 +1,19 @@
|
||||
[Paths]
|
||||
Prefix=@@HOST_DIR@@
|
||||
Sysroot=@@STAGING_DIR@@
|
||||
Headers=/usr/include/qt5
|
||||
Libraries=/usr/lib
|
||||
LibraryExecutables=/usr/libexec
|
||||
Binaries=/usr/bin
|
||||
Plugins=/usr/lib/qt/plugins
|
||||
Examples=/usr/lib/qt/examples
|
||||
Qml2Imports=/usr/qml
|
||||
Imports=/usr/imports
|
||||
Translations=/usr/translations
|
||||
Examples=/usr/lib/qt/examples
|
||||
Demos=/usr/lib/qt/examples
|
||||
Tests=/usr/tests
|
||||
Settings=/usr
|
||||
Documentation=/usr/doc
|
||||
ArchData=/usr
|
||||
Data=/usr
|
||||
@@ -1,5 +1,14 @@
|
||||
# Hash from: https://download.qt.io/official_releases/qt/5.6/5.6.3/submodules/qtbase-opensource-src-5.6.3.tar.xz.mirrorlist
|
||||
sha256 fef48529a6fc2617a30d75d952cb327c6be341fd104154993922184b3b3b4da1 qtbase-opensource-src-5.6.3.tar.xz
|
||||
|
||||
# Hash from: http://download.qt.io/official_releases/qt/5.8/5.8.0/submodules/qtbase-opensource-src-5.8.0.tar.xz
|
||||
sha256 c17111ae02a44dc7be1ec2cf979a47ee9e58edf4904041a525c21f4fa53fc005 qtbase-opensource-src-5.8.0.tar.xz
|
||||
# Hash from: https://download.qt.io/official_releases/qt/5.9/5.9.6/submodules/qtbase-opensource-src-5.9.6.tar.xz.mirrorlist
|
||||
sha256 eed620cb268b199bd83b3fc6a471c51d51e1dc2dbb5374fc97a0cc75facbe36f qtbase-opensource-src-5.9.6.tar.xz
|
||||
|
||||
# Hashes for license files:
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE.GPL2
|
||||
sha256 245248009fd0af1725d183248380e476c1283383909358a13686606352bf2a17 LICENSE.GPLv3
|
||||
sha256 0dbe024961f6ab5c52689cbd036c977975d0d0f6a67ff97762d96cb819dd5652 LICENSE.GPL3-EXCEPT
|
||||
sha256 68afaf3392f8c04218fbf29db43cc0b18bf651c1db086556aa584046de9f3e35 LICENSE.LGPLv3
|
||||
sha256 ed8742a95cb9db653a09b050e27ccff5e67ba69c14aa2c3137f2a4e1892f6c0d LICENSE.FDL
|
||||
sha256 8fdefa0b45d9f791f687da6c2c4c83c1b701aaee2c08008f55d522af214b88f0 header.BSD
|
||||
sha256 2a886915de4f296cdae5ed67064f86dba01d0c55286d86e8487f2a5caaf40216 src/3rdparty/harfbuzz-ng/COPYING
|
||||
|
||||
@@ -8,7 +8,7 @@ QT5BASE_VERSION = $(QT5_VERSION)
|
||||
QT5BASE_SITE = $(QT5_SITE)
|
||||
QT5BASE_SOURCE = qtbase-opensource-src-$(QT5BASE_VERSION).tar.xz
|
||||
|
||||
QT5BASE_DEPENDENCIES = host-pkgconf zlib pcre
|
||||
QT5BASE_DEPENDENCIES = host-pkgconf zlib
|
||||
QT5BASE_INSTALL_STAGING = YES
|
||||
|
||||
# A few comments:
|
||||
@@ -27,6 +27,12 @@ QT5BASE_CONFIGURE_OPTS += \
|
||||
-no-pch \
|
||||
-shared
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QT5_VERSION_5_6),y)
|
||||
QT5BASE_DEPENDENCIES += pcre
|
||||
else
|
||||
QT5BASE_DEPENDENCIES += pcre2
|
||||
endif
|
||||
|
||||
QT5BASE_CONFIGURE_OPTS += $(call qstrip,$(BR2_PACKAGE_QT5BASE_CUSTOM_CONF_OPTS))
|
||||
|
||||
# Uses libgbm from mesa3d
|
||||
@@ -47,23 +53,18 @@ ifeq ($(BR2_PACKAGE_QT5_VERSION_5_6),y)
|
||||
QT5BASE_CONFIGURE_OPTS += -largefile
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED),y)
|
||||
QT5BASE_CONFIGURE_OPTS += -opensource -confirm-license
|
||||
ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
|
||||
QT5BASE_LICENSE = GPLv2+ or LGPLv3, GPLv3 with exception(tools), GFDLv1.3 (docs)
|
||||
QT5BASE_LICENSE = GPL-2.0+ or LGPL-3.0, GPL-3.0 with exception(tools), GFDL-1.3 (docs)
|
||||
QT5BASE_LICENSE_FILES = LICENSE.GPL2 LICENSE.GPLv3 LICENSE.GPL3-EXCEPT LICENSE.LGPLv3 LICENSE.FDL
|
||||
else
|
||||
QT5BASE_LICENSE = GPLv3 or LGPLv2.1 with exception or LGPLv3, GFDLv1.3 (docs)
|
||||
QT5BASE_LICENSE = GPL-3.0 or LGPL-2.1 with exception or LGPL-3.0, GFDL-1.3 (docs)
|
||||
QT5BASE_LICENSE_FILES = LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3 LICENSE.FDL
|
||||
endif
|
||||
ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
|
||||
QT5BASE_LICENSE := $(QT5BASE_LICENSE), BSD-3c (examples)
|
||||
QT5BASE_LICENSE := $(QT5BASE_LICENSE), BSD-3-Clause (examples)
|
||||
QT5BASE_LICENSE_FILES += header.BSD
|
||||
endif
|
||||
else
|
||||
QT5BASE_LICENSE = Commercial license
|
||||
QT5BASE_REDISTRIBUTE = NO
|
||||
endif
|
||||
|
||||
QT5BASE_CONFIG_FILE = $(call qstrip,$(BR2_PACKAGE_QT5BASE_CONFIG_FILE))
|
||||
|
||||
@@ -104,6 +105,22 @@ QT5BASE_DEPENDENCIES += freetype
|
||||
else
|
||||
QT5BASE_CONFIGURE_OPTS += -no-gui -no-freetype
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QT5BASE_HARFBUZZ),y)
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_SYNC_4),y)
|
||||
# system harfbuzz in case __sync for 4 bytes is supported
|
||||
QT5BASE_CONFIGURE_OPTS += -system-harfbuzz
|
||||
QT5BASE_DEPENDENCIES += harfbuzz
|
||||
else
|
||||
# qt harfbuzz otherwise (using QAtomic instead)
|
||||
QT5BASE_CONFIGURE_OPTS += -qt-harfbuzz
|
||||
QT5BASE_LICENSE := $(QT5BASE_LICENSE), MIT (harfbuzz)
|
||||
QT5BASE_LICENSE_FILES += src/3rdparty/harfbuzz-ng/COPYING
|
||||
endif
|
||||
else
|
||||
QT5BASE_CONFIGURE_OPTS += -no-harfbuzz
|
||||
endif
|
||||
|
||||
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_WIDGETS),-widgets,-no-widgets)
|
||||
# We have to use --enable-linuxfb, otherwise Qt thinks that -linuxfb
|
||||
# is to add a link against the "inuxfb" library.
|
||||
@@ -189,6 +206,16 @@ else
|
||||
QT5BASE_CONFIGURE_OPTS += -no-libinput
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
|
||||
# only enable gtk support if libgtk3 X11 backend is enabled
|
||||
ifeq ($(BR2_PACKAGE_LIBGTK3)$(BR2_PACKAGE_LIBGTK3_X11),yy)
|
||||
QT5BASE_CONFIGURE_OPTS += -gtk
|
||||
QT5BASE_DEPENDENCIES += libgtk3
|
||||
else
|
||||
QT5BASE_CONFIGURE_OPTS += -no-gtk
|
||||
endif
|
||||
endif
|
||||
|
||||
# Build the list of libraries to be installed on the target
|
||||
QT5BASE_INSTALL_LIBS_y += Qt5Core
|
||||
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_XCB) += Qt5XcbQpa
|
||||
@@ -213,6 +240,11 @@ QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_PRINTSUPPORT) += Qt5PrintSupport
|
||||
|
||||
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_DBUS) += Qt5DBus
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST)$(BR2_PACKAGE_IMX_GPU_VIV),yy)
|
||||
# use vivante backend
|
||||
QT5BASE_EGLFS_DEVICE = EGLFS_DEVICE_INTEGRATION = eglfs_viv
|
||||
endif
|
||||
|
||||
ifneq ($(QT5BASE_CONFIG_FILE),)
|
||||
define QT5BASE_CONFIGURE_CONFIG_FILE
|
||||
cp $(QT5BASE_CONFIG_FILE) $(@D)/src/corelib/global/qconfig-buildroot.h
|
||||
@@ -228,7 +260,9 @@ endef
|
||||
endif
|
||||
|
||||
define QT5BASE_CONFIGURE_CMDS
|
||||
$(INSTALL) -m 0644 -D $(QT5BASE_PKGDIR)/qmake.conf \
|
||||
mkdir -p $(@D)/mkspecs/devices/linux-buildroot-g++/
|
||||
sed 's/@EGLFS_DEVICE@/$(QT5BASE_EGLFS_DEVICE)/g' \
|
||||
$(QT5BASE_PKGDIR)/qmake.conf.in > \
|
||||
$(@D)/mkspecs/devices/linux-buildroot-g++/qmake.conf
|
||||
$(INSTALL) -m 0644 -D $(QT5BASE_PKGDIR)/qplatformdefs.h \
|
||||
$(@D)/mkspecs/devices/linux-buildroot-g++/qplatformdefs.h
|
||||
@@ -244,7 +278,7 @@ define QT5BASE_CONFIGURE_CMDS
|
||||
./configure \
|
||||
-v \
|
||||
-prefix /usr \
|
||||
-hostprefix $(HOST_DIR)/usr \
|
||||
-hostprefix $(HOST_DIR) \
|
||||
-headerdir /usr/include/qt5 \
|
||||
-sysroot $(STAGING_DIR) \
|
||||
-plugindir /usr/lib/qt/plugins \
|
||||
@@ -263,9 +297,17 @@ define QT5BASE_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
# The file "qt.conf" can be used to override the hard-coded paths that are
|
||||
# compiled into the Qt library. We need it to make "qmake" relocatable.
|
||||
define QT5BASE_INSTALL_QT_CONF
|
||||
sed -e "s|@@HOST_DIR@@|$(HOST_DIR)|" -e "s|@@STAGING_DIR@@|$(STAGING_DIR)|" \
|
||||
$(QT5BASE_PKGDIR)/qt.conf.in > $(HOST_DIR)/bin/qt.conf
|
||||
endef
|
||||
|
||||
define QT5BASE_INSTALL_STAGING_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
|
||||
$(QT5_LA_PRL_FILES_FIXUP)
|
||||
$(QT5BASE_INSTALL_QT_CONF)
|
||||
endef
|
||||
|
||||
define QT5BASE_INSTALL_TARGET_LIBS
|
||||
|
||||
Reference in New Issue
Block a user