Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
From c11299086b7718332e2b4fbc37ce6f6ff427c5ba Mon Sep 17 00:00:00 2001
|
||||
From: Yuqing Zhu <carol.zhu@nxp.com>
|
||||
Date: Mon, 27 Mar 2017 15:33:35 +0800
|
||||
Subject: [PATCH] qtbase: Fix build error when using EGL
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=utf-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
A build error was occurring due to missing EGL configuration.
|
||||
|
||||
Fixed by adding the necessary ties to the EGL pkg-config.
|
||||
|
||||
Task-number: QTBUG-61712
|
||||
Change-Id: I87190ea39392b4604c563cf9d89edb85068d85fc
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Gaël PORTAY <gael.portay@savoirfairelinux.com>
|
||||
---
|
||||
mkspecs/features/egl.prf | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/mkspecs/features/egl.prf b/mkspecs/features/egl.prf
|
||||
index 9fa0c9e219..85d5852ba6 100644
|
||||
--- a/mkspecs/features/egl.prf
|
||||
+++ b/mkspecs/features/egl.prf
|
||||
@@ -1,3 +1,9 @@
|
||||
+# egl headers need a definition
|
||||
+PKG_CONFIG = $$pkgConfigExecutable()
|
||||
+PKGCONFIG_CFLAGS = $$system($$PKG_CONFIG --cflags egl)
|
||||
+PKGCONFIG_CFLAGS = $$find(PKGCONFIG_CFLAGS, ^-D.*)
|
||||
+QMAKE_CFLAGS_EGL = $$PKGCONFIG_CFLAGS
|
||||
+
|
||||
INCLUDEPATH += $$QMAKE_INCDIR_EGL
|
||||
LIBS_PRIVATE += $$QMAKE_LIBS_EGL
|
||||
QMAKE_CFLAGS += $$QMAKE_CFLAGS_EGL
|
||||
--
|
||||
2.16.1
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
From a02b5e3bb41026ca6031d01942a093e9ce54edf3 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Seiderer <ps.report@gmx.net>
|
||||
Date: Tue, 21 Aug 2018 21:11:40 +0200
|
||||
Subject: [PATCH] double-conversion: enable for microblaze
|
||||
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
[Rebased for Qt5.12.0]
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
[Rebased for Qt5.14.0]
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
---
|
||||
src/3rdparty/double-conversion/include/double-conversion/utils.h | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/3rdparty/double-conversion/include/double-conversion/utils.h b/src/3rdparty/double-conversion/include/double-conversion/utils.h
|
||||
index 70e697ca..2bb8e389 100644
|
||||
--- a/src/3rdparty/double-conversion/include/double-conversion/utils.h
|
||||
+++ b/src/3rdparty/double-conversion/include/double-conversion/utils.h
|
||||
@@ -102,6 +102,7 @@ int main(int argc, char** argv) {
|
||||
defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \
|
||||
defined(__riscv) || \
|
||||
defined(__or1k__) || defined(__arc__) || \
|
||||
+ defined(__microblaze__) || \
|
||||
defined(__EMSCRIPTEN__)
|
||||
#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
|
||||
#elif defined(__mc68000__) || \
|
||||
--
|
||||
2.23.0
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
From e3f63db3124caf5bde9cf688eba563f7f025662d Mon Sep 17 00:00:00 2001
|
||||
From: Peter Seiderer <ps.report@gmx.net>
|
||||
Date: Sun, 8 Mar 2020 18:08:26 +0100
|
||||
Subject: [PATCH] double-conversion: enable for nios2
|
||||
|
||||
Upstream: https://github.com/google/double-conversion/commit/a54561be5588ac9b16d3c20760b9b554168bb8aa
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
---
|
||||
src/3rdparty/double-conversion/include/double-conversion/utils.h | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/3rdparty/double-conversion/include/double-conversion/utils.h b/src/3rdparty/double-conversion/include/double-conversion/utils.h
|
||||
index 2bb8e389a5b..89ab1a3102a 100644
|
||||
--- a/src/3rdparty/double-conversion/include/double-conversion/utils.h
|
||||
+++ b/src/3rdparty/double-conversion/include/double-conversion/utils.h
|
||||
@@ -94,6 +94,7 @@ int main(int argc, char** argv) {
|
||||
defined(__ARMEL__) || defined(__avr32__) || defined(_M_ARM) || defined(_M_ARM64) || \
|
||||
defined(__hppa__) || defined(__ia64__) || \
|
||||
defined(__mips__) || \
|
||||
+ defined(__nios2__) || \
|
||||
defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) || \
|
||||
defined(_POWER) || defined(_ARCH_PPC) || defined(_ARCH_PPC64) || \
|
||||
defined(__sparc__) || defined(__sparc) || defined(__s390__) || \
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
From f423f160b984c47d831b10447af046bfbd6a3ba1 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Seiderer <ps.report@gmx.net>
|
||||
Date: Tue, 10 Mar 2020 09:01:31 +0100
|
||||
Subject: [PATCH] double-conversion: enable for xtensa
|
||||
|
||||
Upstream: https://github.com/google/double-conversion/commit/a54561be5588ac9b16d3c20760b9b554168bb8aa
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
[Rebased for qtbase-everywhere-src-5.14.0]
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
---
|
||||
.../double-conversion/include/double-conversion/utils.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/3rdparty/double-conversion/include/double-conversion/utils.h b/src/3rdparty/double-conversion/include/double-conversion/utils.h
|
||||
index 89ab1a31..001ce55f 100644
|
||||
--- a/src/3rdparty/double-conversion/include/double-conversion/utils.h
|
||||
+++ b/src/3rdparty/double-conversion/include/double-conversion/utils.h
|
||||
@@ -103,7 +103,7 @@ int main(int argc, char** argv) {
|
||||
defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \
|
||||
defined(__riscv) || \
|
||||
defined(__or1k__) || defined(__arc__) || \
|
||||
- defined(__microblaze__) || \
|
||||
+ defined(__microblaze__) || defined(__XTENSA__) || \
|
||||
defined(__EMSCRIPTEN__)
|
||||
#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
|
||||
#elif defined(__mc68000__) || \
|
||||
--
|
||||
2.26.0
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
From 0eb7058b473069a04cde60a800dfd04148c0c8b1 Mon Sep 17 00:00:00 2001
|
||||
From: Yann E. MORIN <yann.morin.1998@free.fr>
|
||||
Date: Sat, 14 Dec 2020 21:15:17 +0100
|
||||
Subject: [PATCH] plugins/eglfs/gbm: don't FTBFS when EGLNativeDisplayType is not a pointer
|
||||
|
||||
On some platforms, EGLNativeDisplayType is not a pointer, but some kind
|
||||
of integer, like an int (e.g. TI's SGX) or an unsigned int. In those
|
||||
cases, the build breaks with:
|
||||
|
||||
qeglfskmsgbmintegration.cpp: In member function ‘virtual void* QEglFSKmsGbmIntegration::createDisplay(EGLNativeDisplayType)’:
|
||||
qeglfskmsgbmintegration.cpp:83:60: error: invalid conversion from ‘EGLNativeDisplayType’ {aka ‘int’} to ‘void*’ [-fpermissive]
|
||||
83 | display = getPlatformDisplay(EGL_PLATFORM_GBM_KHR, nativeDisplay, nullptr);
|
||||
| ^~~~~~~~~~~~~
|
||||
| |
|
||||
| EGLNativeDisplayType {aka int}
|
||||
|
||||
We fix that by casting nativeDisplay to void* as expected by
|
||||
getPlatformDisplay().
|
||||
|
||||
We can do that, because usually, nativeDisplay is already a pointer, and
|
||||
thus this cast is a no-op. When it is not already a pointer, we either
|
||||
don't care because the code path will not be taken at runtime, or the
|
||||
integer really is an opaque handle to some internal, low-level memory
|
||||
management, much like a void* is an pointer to an opaque memory type...
|
||||
|
||||
It is to be noted, though, that in some ABIs (like x32), the size of a
|
||||
nativeDisplay that is not already a pointer, might be bigger than that
|
||||
of a pointer. There is not much we can do here anyway, since there would
|
||||
be no way to fit that in a void* to begin with, and the build will still
|
||||
fail for those situations. Those types of ABIs are far from being
|
||||
widespread, the most prominent one, x32, even being retired...
|
||||
|
||||
To be noted further: a more usual solution (as suggested in QTBUG-72567
|
||||
or in Gerrit:248270) would be to first cast to a qintptr or a quintptr,
|
||||
before finally casting to a void*. However, casting to either (resp.)
|
||||
qintptr or quintptr first, risk the case that nativeDisplay is of the other
|
||||
kind of signedness, (resp.) unsigned or signed, which would also cause
|
||||
some compile-time breakage.
|
||||
|
||||
Finally, if nativeDisplay is something that is not an int-like, and that
|
||||
can't be cast into a void*, this would be hugely weird, so much so, that
|
||||
we do not even attempt to catter for that case.
|
||||
|
||||
Fixes: QTBUG-72567
|
||||
Inspired-by: https://codereview.qt-project.org/c/qt/qtbase/+/248270
|
||||
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
|
||||
---
|
||||
|
||||
diff --git a/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms/qeglfskmsgbmintegration.cpp b/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms/qeglfskmsgbmintegration.cpp
|
||||
index d495a8d..059a580 100644
|
||||
--- a/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms/qeglfskmsgbmintegration.cpp
|
||||
+++ b/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms/qeglfskmsgbmintegration.cpp
|
||||
@@ -80,7 +80,9 @@
|
||||
}
|
||||
|
||||
if (getPlatformDisplay) {
|
||||
- display = getPlatformDisplay(EGL_PLATFORM_GBM_KHR, nativeDisplay, nullptr);
|
||||
+ // EGLNativeDisplayType may be int on some platforms but those
|
||||
+ // won't hit this path. Have to keep it compiling nonetheless.
|
||||
+ display = getPlatformDisplay(EGL_PLATFORM_GBM_KHR, reinterpret_cast<void *>(nativeDisplay), nullptr);
|
||||
} else {
|
||||
qCDebug(qLcEglfsKmsDebug, "No eglGetPlatformDisplay for GBM, falling back to eglGetDisplay");
|
||||
display = eglGetDisplay(nativeDisplay);
|
||||
47
package/qt5/qt5base/0006-Fix-build-on-riscv32.patch
Normal file
47
package/qt5/qt5base/0006-Fix-build-on-riscv32.patch
Normal file
@@ -0,0 +1,47 @@
|
||||
From 25a0057e8d7afaab3492e03efb3f85581f1cf9b2 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Fri, 27 Aug 2021 16:28:32 +0200
|
||||
Subject: [PATCH] Fix build on riscv32
|
||||
|
||||
riscv32 fails to build because __NR_futex is not defined on this
|
||||
architecture:
|
||||
|
||||
In file included from thread/qmutex_linux.cpp:45,
|
||||
from thread/qmutex.cpp:804:
|
||||
thread/qfutex_p.h: In function 'int QtLinuxFutex::_q_futex(int*, int, int, quintptr, int*, int)':
|
||||
thread/qfutex_p.h:116:30: error: '__NR_futex' was not declared in this scope; did you mean '_q_futex'?
|
||||
116 | int result = syscall(__NR_futex, addr, op | FUTEX_PRIVATE_FLAG, val, val2, addr2, val3);
|
||||
| ^~~~~~~~~~
|
||||
| _q_futex
|
||||
|
||||
Pick-to: 6.1 6.2
|
||||
Fixes: QTBUG-96067
|
||||
Change-Id: Ib6a9bcc496f37e69ac39362cb0a021fccaf311f5
|
||||
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
|
||||
Upstream: https://code.qt.io/cgit/qt/qtbase.git/commit/?id=035dc537bee26e3b63a211b2835d8560439e161f
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Dario: make the patch to be applied with fuzz factor 0]
|
||||
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
|
||||
---
|
||||
src/corelib/thread/qfutex_p.h | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/src/corelib/thread/qfutex_p.h b/src/corelib/thread/qfutex_p.h
|
||||
index e294537787e..6bf59d51df3 100644
|
||||
--- a/src/corelib/thread/qfutex_p.h
|
||||
+++ b/src/corelib/thread/qfutex_p.h
|
||||
@@ -82,6 +82,11 @@ QT_END_NAMESPACE
|
||||
// if not defined in linux/futex.h
|
||||
# define FUTEX_PRIVATE_FLAG 128 // added in v2.6.22
|
||||
|
||||
+// RISC-V does not supply __NR_futex
|
||||
+# ifndef __NR_futex
|
||||
+# define __NR_futex __NR_futex_time64
|
||||
+# endif
|
||||
+
|
||||
# if __has_feature(thread_sanitizer) || defined(__SANITIZE_THREAD__)
|
||||
# include <sanitizer/tsan_interface.h>
|
||||
inline void _q_tsan_acquire(void *addr, void *addr2)
|
||||
--
|
||||
2.43.0
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
From e9d1f80dffb4e29e44fc0b0627704af15cdd281a Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sun, 13 Mar 2022 12:05:04 +0100
|
||||
Subject: [PATCH] src/corelib/configure.json: fix atomicfptr detection
|
||||
|
||||
Fix atomicfptr detection on sparc v8 by linking with libatomic if needed
|
||||
to avoid the following build failure:
|
||||
|
||||
/sysroot -std=gnu++11 -w -fPIC -I. -I/home/peko/autobuild/instance-0/output-1/build/qt5base-d16bf02a11953dcac01dca73e6f3778f293adefe/mkspecs/devices/linux-buildroot-g++ -o main.o main.cpp
|
||||
> /home/peko/autobuild/instance-0/output-1/host/bin/sparc-linux-g++ --sysroot=/home/peko/autobuild/instance-0/output-1/host/sparc-buildroot-linux-uclibc/sysroot --sysroot=/home/peko/autobuild/instance-0/output-1/host/sparc-buildroot-linux-uclibc/sysroot -Wl,-O1 -o atomicfptr main.o -lexecinfo -lrt -lpthread -ldl
|
||||
> /home/peko/autobuild/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/10.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: main.o: in function `test(std::atomic<void (*)(int)> volatile&)':
|
||||
> main.cpp:(.text+0x40): undefined reference to `__atomic_compare_exchange_4'
|
||||
> collect2: error: ld returned 1 exit status
|
||||
> make[1]: *** [Makefile:69: atomicfptr] Error 1
|
||||
|
||||
[...]
|
||||
|
||||
ERROR: detected a std::atomic implementation that fails for function pointers.
|
||||
Please apply the patch corresponding to your Standard Library vendor, found in
|
||||
qtbase/config.tests/atomicfptr
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/5a20e984a5536165056b3fbd93b8712e8ddbeed4
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Upstream: https://invent.kde.org/qt/qt/qtbase/-/merge_requests/138
|
||||
---
|
||||
src/corelib/configure.json | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/corelib/configure.json b/src/corelib/configure.json
|
||||
index 9b5d19d41b..ac88f5856c 100644
|
||||
--- a/src/corelib/configure.json
|
||||
+++ b/src/corelib/configure.json
|
||||
@@ -309,7 +309,8 @@
|
||||
"test(fptr);"
|
||||
],
|
||||
"qmake": "CONFIG += c++11"
|
||||
- }
|
||||
+ },
|
||||
+ "use": "libatomic"
|
||||
},
|
||||
"clock-monotonic": {
|
||||
"label": "POSIX monotonic clock",
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
From f681f428477812e54484f631b0da332cc2e00eaa Mon Sep 17 00:00:00 2001
|
||||
From: Peter Seiderer <ps.report@gmx.net>
|
||||
Date: Wed, 16 Mar 2022 19:08:55 +0100
|
||||
Subject: [PATCH] eglconvenience: add missing QList include
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Fixes:
|
||||
|
||||
qeglconvenience.cpp:418:23: error: variable ‘QList<QByteArray> extensions’ has initializer but incomplete type
|
||||
418 | QList<QByteArray> extensions =
|
||||
| ^~~~~~~~~~
|
||||
qeglconvenience.cpp:420:65: error: invalid use of incomplete type ‘class QList<QByteArray>’
|
||||
420 | (eglQueryString(display, EGL_EXTENSIONS))).split(' ');
|
||||
| ^
|
||||
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
---
|
||||
src/platformsupport/eglconvenience/qeglconvenience.cpp | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/platformsupport/eglconvenience/qeglconvenience.cpp b/src/platformsupport/eglconvenience/qeglconvenience.cpp
|
||||
index 5303d37c..daceeb8b 100644
|
||||
--- a/src/platformsupport/eglconvenience/qeglconvenience.cpp
|
||||
+++ b/src/platformsupport/eglconvenience/qeglconvenience.cpp
|
||||
@@ -38,6 +38,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <QByteArray>
|
||||
+#include <QList>
|
||||
#include <QOpenGLContext>
|
||||
|
||||
#ifdef Q_OS_LINUX
|
||||
--
|
||||
2.35.1
|
||||
|
||||
311
package/qt5/qt5base/Config.in
Normal file
311
package/qt5/qt5base/Config.in
Normal file
@@ -0,0 +1,311 @@
|
||||
config BR2_PACKAGE_QT5BASE
|
||||
bool "qt5base"
|
||||
select BR2_PACKAGE_ZLIB
|
||||
select BR2_PACKAGE_PCRE2
|
||||
select BR2_PACKAGE_PCRE2_16
|
||||
select BR2_PACKAGE_LIBOPENSSL_ENABLE_PSK if BR2_PACKAGE_LIBOPENSSL
|
||||
help
|
||||
Qt is a cross-platform application and UI framework for
|
||||
developers using C++.
|
||||
|
||||
This package corresponds to the qt5base module, which
|
||||
contains the base Qt libraries: QtCore, QtNetwork, QtGui,
|
||||
QtWidgets, etc.
|
||||
|
||||
https://qt.io
|
||||
|
||||
if BR2_PACKAGE_QT5BASE
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_CUSTOM_CONF_OPTS
|
||||
string "Custom configuration options"
|
||||
help
|
||||
Define custom qt5 configuration options which can be used to
|
||||
enable or disable options not managed by buildroot. These
|
||||
options are appended to the ones generated by buildroot and
|
||||
passed to qt5base during configuration.
|
||||
|
||||
E.g. to remove the Windows Vista style option, add the option
|
||||
-no-feature-style_windowsvista.
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_CONFIG_FILE
|
||||
string "Config file"
|
||||
help
|
||||
Configure options allow to set which modules are being
|
||||
compiled or not in Qt, but Qt also provide a more
|
||||
fine-grained mechanism to configure which features should be
|
||||
enabled or disabled, through a header file. Examples of such
|
||||
header files can be found in src/corelib/global/qconfig-*.h
|
||||
in the Qt sources.
|
||||
|
||||
This option allows to set the path of such a configuration
|
||||
file, which Buildroot will give to Qt at compile time.
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_EXAMPLES
|
||||
bool "Compile and install examples (with code)"
|
||||
select BR2_PACKAGE_QT5BASE_NETWORK
|
||||
select BR2_PACKAGE_QT5BASE_XML
|
||||
help
|
||||
If unsure, say N.
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_NETWORK
|
||||
def_bool y
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_CONCURRENT
|
||||
bool "concurrent module"
|
||||
help
|
||||
This options enables the Qt5Concurrent library.
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_SQL
|
||||
def_bool y
|
||||
|
||||
if BR2_PACKAGE_QT5BASE_SQL
|
||||
config BR2_PACKAGE_QT5BASE_MYSQL
|
||||
bool "MySQL Plugin"
|
||||
depends on BR2_USE_MMU # mysql
|
||||
select BR2_PACKAGE_MARIADB
|
||||
select BR2_PACKAGE_NCURSES
|
||||
select BR2_PACKAGE_READLINE
|
||||
help
|
||||
Build MySQL plugin
|
||||
If unsure, say n.
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_PSQL
|
||||
bool "PostgreSQL Plugin"
|
||||
depends on BR2_USE_MMU # postgresql
|
||||
depends on !BR2_sparc # postgresql
|
||||
depends on BR2_USE_WCHAR # postgresql
|
||||
depends on BR2_ENABLE_LOCALE # postgresql
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # postgresql
|
||||
depends on !BR2_STATIC_LIBS # postgresql
|
||||
depends on !BR2_OPTIMIZE_FAST # postgresql
|
||||
select BR2_PACKAGE_POSTGRESQL
|
||||
help
|
||||
Build PostgreSQL plugin
|
||||
If unsure, say n.
|
||||
|
||||
comment "PostgreSQL plugin needs a toolchain w/ wchar, dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_sparc
|
||||
depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR
|
||||
|
||||
comment "PostgreSQL plugin can't be built with Optimize for fast"
|
||||
depends on BR2_OPTIMIZE_FAST
|
||||
|
||||
choice
|
||||
prompt "SQLite 3 support"
|
||||
default BR2_PACKAGE_QT5BASE_SQLITE_NONE
|
||||
help
|
||||
Select SQLite support.
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_SQLITE_NONE
|
||||
bool "No sqlite support"
|
||||
help
|
||||
Do not compile any kind of SQLite support.
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_SQLITE_QT
|
||||
bool "Qt SQLite"
|
||||
help
|
||||
Use Qt bundled SQLite support.
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_SQLITE_SYSTEM
|
||||
bool "System SQLite"
|
||||
select BR2_PACKAGE_SQLITE
|
||||
select BR2_PACKAGE_SQLITE_ENABLE_COLUMN_METADATA
|
||||
help
|
||||
Use system SQLite.
|
||||
|
||||
endchoice
|
||||
|
||||
endif
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_TEST
|
||||
def_bool y
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_XML
|
||||
def_bool y
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_GUI
|
||||
bool "gui module"
|
||||
select BR2_PACKAGE_FREETYPE
|
||||
# At least one graphic backend must be enabled, so enable
|
||||
# linuxfb if nothing is enabled.
|
||||
select BR2_PACKAGE_QT5BASE_LINUXFB if \
|
||||
!BR2_PACKAGE_QT5BASE_XCB && \
|
||||
!BR2_PACKAGE_QT5BASE_EGLFS
|
||||
help
|
||||
This option enables the Qt5Gui library.
|
||||
|
||||
if BR2_PACKAGE_QT5BASE_GUI
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_WIDGETS
|
||||
bool "widgets module"
|
||||
select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_QT5BASE_XCB
|
||||
help
|
||||
This option enables the Qt5Widgets library.
|
||||
|
||||
comment "OpenGL support needs an OpenGL-capable backend"
|
||||
depends on !BR2_PACKAGE_QT5_GL_AVAILABLE
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_OPENGL
|
||||
bool "OpenGL support"
|
||||
depends on BR2_PACKAGE_QT5_GL_AVAILABLE
|
||||
help
|
||||
This option enables OpenGL support.
|
||||
|
||||
if BR2_PACKAGE_QT5BASE_OPENGL
|
||||
|
||||
choice
|
||||
prompt "OpenGL API"
|
||||
help
|
||||
Select OpenGL API.
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_OPENGL_DESKTOP
|
||||
bool "Desktop OpenGL"
|
||||
depends on BR2_PACKAGE_HAS_LIBGL
|
||||
help
|
||||
Use desktop OpenGL.
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_OPENGL_ES2
|
||||
bool "OpenGL ES 2.0+"
|
||||
depends on BR2_PACKAGE_HAS_LIBGLES
|
||||
help
|
||||
Use OpenGL ES 2.0 and later versions.
|
||||
|
||||
endchoice
|
||||
|
||||
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.
|
||||
|
||||
endif
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_VULKAN
|
||||
bool "Vulkan support"
|
||||
depends on BR2_INSTALL_LIBSTDCPP # vulkan-loader
|
||||
depends on !BR2_STATIC_LIBS # vulkan-loader
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # vulkan-loader
|
||||
select BR2_PACKAGE_VULKAN_HEADERS
|
||||
select BR2_PACKAGE_VULKAN_LOADER
|
||||
help
|
||||
This option enables Vulkan support.
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_LINUXFB
|
||||
bool "linuxfb support"
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_XCB
|
||||
bool "X.org XCB support"
|
||||
depends on BR2_PACKAGE_XORG7
|
||||
select BR2_PACKAGE_XLIB_LIBX11
|
||||
select BR2_PACKAGE_LIBXCB
|
||||
select BR2_PACKAGE_XCB_UTIL_IMAGE
|
||||
select BR2_PACKAGE_XCB_UTIL_KEYSYMS
|
||||
select BR2_PACKAGE_XCB_UTIL_RENDERUTIL
|
||||
select BR2_PACKAGE_XCB_UTIL_WM
|
||||
select BR2_PACKAGE_LIBXKBCOMMON
|
||||
|
||||
comment "X.org XCB backend available if X.org is enabled"
|
||||
depends on !BR2_PACKAGE_XORG7
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_EGLFS
|
||||
bool "eglfs support"
|
||||
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
|
||||
|
||||
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).
|
||||
|
||||
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
|
||||
def_bool y
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_FONTCONFIG
|
||||
bool "fontconfig support"
|
||||
select BR2_PACKAGE_FONTCONFIG
|
||||
help
|
||||
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 && \
|
||||
BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
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
|
||||
This compiles and installs the plugin for GIF reading support.
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_JPEG
|
||||
bool "JPEG support"
|
||||
select BR2_PACKAGE_JPEG
|
||||
help
|
||||
This option enables JPEG support using the system libjpeg
|
||||
library.
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_PNG
|
||||
bool "PNG support"
|
||||
select BR2_PACKAGE_LIBPNG
|
||||
help
|
||||
This option enables PNG support using the system libpng
|
||||
library.
|
||||
|
||||
endif
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_SYSLOG
|
||||
bool "syslog support"
|
||||
help
|
||||
Logs to the standard UNIX logging mechanism.
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_DBUS
|
||||
bool "DBus module"
|
||||
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"
|
||||
depends on !BR2_BINFMT_FLAT # icu
|
||||
depends on BR2_HOST_GCC_AT_LEAST_7 # icu
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # 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 >= 7, host gcc >= 7"
|
||||
depends on !BR2_BINFMT_FLAT
|
||||
depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_7 || \
|
||||
!BR2_HOST_GCC_AT_LEAST_7
|
||||
|
||||
config BR2_PACKAGE_QT5BASE_TSLIB
|
||||
bool "Enable Tslib support"
|
||||
select BR2_PACKAGE_TSLIB
|
||||
help
|
||||
This options enables the Tslib plugin
|
||||
|
||||
endif
|
||||
38
package/qt5/qt5base/qmake.conf.in
Normal file
38
package/qt5/qt5base/qmake.conf.in
Normal file
@@ -0,0 +1,38 @@
|
||||
# Qt5 has a mechanism to support "device" profiles, so that people can
|
||||
# specify the compiler, compiler flags and so on for a specific device.
|
||||
|
||||
# We leverage this mechanism in the Buildroot packaging of qt5 to
|
||||
# simplify cross-compilation: we have our own "device" definition, which
|
||||
# allows us to easily pass the cross-compiler paths and flags from our
|
||||
# qt5.mk.
|
||||
|
||||
include(../common/linux_device_pre.conf)
|
||||
|
||||
# modifications to g++-unix.conf
|
||||
QMAKE_CC = $${CROSS_COMPILE}gcc
|
||||
QMAKE_CXX = $${CROSS_COMPILE}g++
|
||||
|
||||
# modifications to gcc-base.conf
|
||||
QMAKE_CFLAGS += $${BR_COMPILER_CFLAGS}
|
||||
QMAKE_CXXFLAGS += $${BR_COMPILER_CXXFLAGS}
|
||||
# Remove all optimisation flags, we really only want our own.
|
||||
QMAKE_CFLAGS_OPTIMIZE =
|
||||
QMAKE_CFLAGS_OPTIMIZE_DEBUG =
|
||||
QMAKE_CFLAGS_OPTIMIZE_FULL =
|
||||
QMAKE_CFLAGS_OPTIMIZE_SIZE =
|
||||
QMAKE_CFLAGS_DEBUG =
|
||||
QMAKE_CXXFLAGS_DEBUG =
|
||||
QMAKE_CFLAGS_RELEASE =
|
||||
QMAKE_CXXFLAGS_RELEASE =
|
||||
CONFIG += nostrip
|
||||
|
||||
QMAKE_LIBS += -lrt -lpthread -ldl
|
||||
QMAKE_CFLAGS_ISYSTEM =
|
||||
|
||||
# Architecture specific configuration
|
||||
include(arch.conf)
|
||||
|
||||
@EGLFS_DEVICE@
|
||||
|
||||
include(../common/linux_device_post.conf)
|
||||
load(qt_config)
|
||||
1
package/qt5/qt5base/qplatformdefs.h
Normal file
1
package/qt5/qt5base/qplatformdefs.h
Normal file
@@ -0,0 +1 @@
|
||||
#include "../../linux-g++/qplatformdefs.h"
|
||||
7
package/qt5/qt5base/qt.conf.in
Normal file
7
package/qt5/qt5base/qt.conf.in
Normal file
@@ -0,0 +1,7 @@
|
||||
[Paths]
|
||||
Prefix=/usr
|
||||
HostPrefix=@@HOST_DIR@@
|
||||
Sysroot=@@STAGING_DIR@@
|
||||
Headers=/usr/include/qt5
|
||||
Plugins=/usr/lib/qt/plugins
|
||||
Examples=/usr/lib/qt/examples
|
||||
10
package/qt5/qt5base/qt5base.hash
Normal file
10
package/qt5/qt5base/qt5base.hash
Normal file
@@ -0,0 +1,10 @@
|
||||
# Locally calculated
|
||||
sha256 3b4bfbd1844aba3b753146ca7d008177010ebb819fcb224c6c0afd8496d8abff qt5base-bebdfd54917e25d1c100e6bd9f5dd53c2e645fd8-git4.tar.gz
|
||||
|
||||
# Hashes for license files:
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE.GPL2
|
||||
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 LICENSE.GPL3
|
||||
sha256 0dbe024961f6ab5c52689cbd036c977975d0d0f6a67ff97762d96cb819dd5652 LICENSE.GPL3-EXCEPT
|
||||
sha256 88ec689407cf2df9b2eb5c45952564d51ce73c129a3bdffb15c0d2d161ad7558 LICENSE.LGPLv3
|
||||
sha256 ed8742a95cb9db653a09b050e27ccff5e67ba69c14aa2c3137f2a4e1892f6c0d LICENSE.FDL
|
||||
sha256 2a886915de4f296cdae5ed67064f86dba01d0c55286d86e8487f2a5caaf40216 src/3rdparty/harfbuzz-ng/COPYING
|
||||
371
package/qt5/qt5base/qt5base.mk
Normal file
371
package/qt5/qt5base/qt5base.mk
Normal file
@@ -0,0 +1,371 @@
|
||||
################################################################################
|
||||
#
|
||||
# qt5base
|
||||
#
|
||||
################################################################################
|
||||
|
||||
QT5BASE_VERSION = bebdfd54917e25d1c100e6bd9f5dd53c2e645fd8
|
||||
QT5BASE_SITE = $(QT5_SITE)/qtbase
|
||||
QT5BASE_SITE_METHOD = git
|
||||
QT5BASE_CPE_ID_VENDOR = qt
|
||||
QT5BASE_CPE_ID_PRODUCT = qt
|
||||
# Closest upstream version
|
||||
QT5BASE_CPE_ID_VERSION = 5.15.18
|
||||
|
||||
QT5BASE_DEPENDENCIES = host-pkgconf pcre2 zlib
|
||||
QT5BASE_INSTALL_STAGING = YES
|
||||
QT5BASE_SYNC_QT_HEADERS = YES
|
||||
|
||||
# A few comments:
|
||||
# * -no-pch to workaround the issue described at
|
||||
# http://comments.gmane.org/gmane.comp.lib.qt.devel/5933.
|
||||
# * -system-zlib because zlib is mandatory for Qt build, and we
|
||||
# want to use the Buildroot packaged zlib
|
||||
# * -system-pcre because pcre is mandatory to build Qt, and we
|
||||
# want to use the one packaged in Buildroot
|
||||
# * -no-feature-relocatable to work around path mismatch
|
||||
# while searching qml files and buildroot BR2_ROOTFS_MERGED_USR
|
||||
# feature enabled
|
||||
QT5BASE_CONFIGURE_OPTS += \
|
||||
-optimized-qmake \
|
||||
-no-iconv \
|
||||
-system-zlib \
|
||||
-system-pcre \
|
||||
-no-pch \
|
||||
-shared \
|
||||
-no-feature-relocatable \
|
||||
-no-directfb
|
||||
|
||||
# starting from version 5.9.0, -optimize-debug is enabled by default
|
||||
# for debug builds and it overrides -O* with -Og which is not what we
|
||||
# want.
|
||||
QT5BASE_CONFIGURE_OPTS += -no-optimize-debug
|
||||
|
||||
QT5BASE_CFLAGS = $(TARGET_CFLAGS)
|
||||
QT5BASE_CXXFLAGS = $(TARGET_CXXFLAGS)
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_90620),y)
|
||||
QT5BASE_CFLAGS += -O0
|
||||
QT5BASE_CXXFLAGS += -O0
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_X86_CPU_HAS_SSE2),)
|
||||
QT5BASE_CONFIGURE_OPTS += -no-sse2
|
||||
else ifeq ($(BR2_X86_CPU_HAS_SSE3),)
|
||||
QT5BASE_CONFIGURE_OPTS += -no-sse3
|
||||
else ifeq ($(BR2_X86_CPU_HAS_SSSE3),)
|
||||
QT5BASE_CONFIGURE_OPTS += -no-ssse3
|
||||
else ifeq ($(BR2_X86_CPU_HAS_SSE4),)
|
||||
QT5BASE_CONFIGURE_OPTS += -no-sse4.1
|
||||
else ifeq ($(BR2_X86_CPU_HAS_SSE42),)
|
||||
QT5BASE_CONFIGURE_OPTS += -no-sse4.2
|
||||
else ifeq ($(BR2_X86_CPU_HAS_AVX),)
|
||||
QT5BASE_CONFIGURE_OPTS += -no-avx
|
||||
else ifeq ($(BR2_X86_CPU_HAS_AVX2),)
|
||||
QT5BASE_CONFIGURE_OPTS += -no-avx2
|
||||
else
|
||||
# no buildroot BR2_X86_CPU_HAS_AVX512 option yet for qt configure
|
||||
# option '-no-avx512'
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBDRM),y)
|
||||
QT5BASE_CONFIGURE_OPTS += -kms
|
||||
QT5BASE_DEPENDENCIES += libdrm
|
||||
else
|
||||
QT5BASE_CONFIGURE_OPTS += -no-kms
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HAS_LIBGBM),y)
|
||||
QT5BASE_CONFIGURE_OPTS += -gbm
|
||||
QT5BASE_DEPENDENCIES += libgbm
|
||||
else
|
||||
QT5BASE_CONFIGURE_OPTS += -no-gbm
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_ENABLE_RUNTIME_DEBUG),y)
|
||||
QT5BASE_CONFIGURE_OPTS += -debug
|
||||
else
|
||||
QT5BASE_CONFIGURE_OPTS += -release
|
||||
endif
|
||||
|
||||
QT5BASE_CONFIGURE_OPTS += -opensource -confirm-license
|
||||
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.GPL3 LICENSE.GPL3-EXCEPT LICENSE.LGPLv3 LICENSE.FDL
|
||||
ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
|
||||
QT5BASE_LICENSE += , BSD-3-Clause (examples)
|
||||
endif
|
||||
|
||||
QT5BASE_CONFIG_FILE = $(call qstrip,$(BR2_PACKAGE_QT5BASE_CONFIG_FILE))
|
||||
|
||||
ifneq ($(QT5BASE_CONFIG_FILE),)
|
||||
QT5BASE_CONFIGURE_OPTS += -qconfig buildroot
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HAS_LIBUDEV),y)
|
||||
QT5BASE_DEPENDENCIES += libudev
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_CUPS), y)
|
||||
QT5BASE_DEPENDENCIES += cups
|
||||
QT5BASE_CONFIGURE_OPTS += -cups
|
||||
else
|
||||
QT5BASE_CONFIGURE_OPTS += -no-cups
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZSTD),y)
|
||||
QT5BASE_DEPENDENCIES += zstd
|
||||
QT5BASE_CONFIGURE_OPTS += -zstd
|
||||
else
|
||||
QT5BASE_CONFIGURE_OPTS += -no-zstd
|
||||
endif
|
||||
|
||||
# Qt5 SQL Plugins
|
||||
ifeq ($(BR2_PACKAGE_QT5BASE_SQL),y)
|
||||
ifeq ($(BR2_PACKAGE_QT5BASE_MYSQL),y)
|
||||
QT5BASE_CONFIGURE_OPTS += -plugin-sql-mysql -mysql_config $(STAGING_DIR)/usr/bin/mysql_config
|
||||
QT5BASE_DEPENDENCIES += mariadb
|
||||
else
|
||||
QT5BASE_CONFIGURE_OPTS += -no-sql-mysql
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QT5BASE_PSQL),y)
|
||||
QT5BASE_CONFIGURE_OPTS += -plugin-sql-psql -psql_config $(STAGING_DIR)/usr/bin/pg_config
|
||||
QT5BASE_DEPENDENCIES += postgresql
|
||||
else
|
||||
QT5BASE_CONFIGURE_OPTS += -no-sql-psql
|
||||
endif
|
||||
|
||||
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_SQLITE_QT),-plugin-sql-sqlite)
|
||||
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_SQLITE_SYSTEM),-system-sqlite)
|
||||
QT5BASE_DEPENDENCIES += $(if $(BR2_PACKAGE_QT5BASE_SQLITE_SYSTEM),sqlite)
|
||||
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_SQLITE_NONE),-no-sql-sqlite)
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QT5BASE_GUI),y)
|
||||
QT5BASE_CONFIGURE_OPTS += -gui -system-freetype
|
||||
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 += , 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.
|
||||
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_LINUXFB),--enable-linuxfb,-no-linuxfb)
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBXKBCOMMON),y)
|
||||
QT5BASE_CONFIGURE_OPTS += -xkbcommon
|
||||
QT5BASE_DEPENDENCIES += libxkbcommon
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QT5BASE_XCB),y)
|
||||
QT5BASE_CONFIGURE_OPTS += -xcb
|
||||
|
||||
QT5BASE_DEPENDENCIES += \
|
||||
libxcb \
|
||||
xcb-util-wm \
|
||||
xcb-util-image \
|
||||
xcb-util-keysyms \
|
||||
xcb-util-renderutil \
|
||||
xlib_libX11
|
||||
ifeq ($(BR2_PACKAGE_QT5BASE_WIDGETS),y)
|
||||
QT5BASE_DEPENDENCIES += xlib_libXext
|
||||
endif
|
||||
else
|
||||
QT5BASE_CONFIGURE_OPTS += -no-xcb
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QT5BASE_OPENGL_DESKTOP),y)
|
||||
QT5BASE_CONFIGURE_OPTS += -opengl desktop
|
||||
QT5BASE_DEPENDENCIES += libgl
|
||||
else ifeq ($(BR2_PACKAGE_QT5BASE_OPENGL_ES2),y)
|
||||
QT5BASE_CONFIGURE_OPTS += -opengl es2
|
||||
QT5BASE_DEPENDENCIES += libgles
|
||||
else
|
||||
QT5BASE_CONFIGURE_OPTS += -no-opengl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QT5BASE_VULKAN),y)
|
||||
QT5BASE_CONFIGURE_OPTS += -feature-vulkan
|
||||
QT5BASE_DEPENDENCIES += vulkan-headers vulkan-loader
|
||||
else
|
||||
QT5BASE_CONFIGURE_OPTS += -no-feature-vulkan
|
||||
endif
|
||||
|
||||
QT5BASE_DEFAULT_QPA = $(call qstrip,$(BR2_PACKAGE_QT5BASE_DEFAULT_QPA))
|
||||
QT5BASE_CONFIGURE_OPTS += $(if $(QT5BASE_DEFAULT_QPA),-qpa $(QT5BASE_DEFAULT_QPA))
|
||||
|
||||
ifeq ($(BR2_arc),y)
|
||||
# In case of -Os (which is default in BR) gcc will use millicode implementation
|
||||
# from libgcc. That along with performance degradation may lead to issues during
|
||||
# linkage stage. In case of QtWebkit exactly that happens - millicode functions
|
||||
# get put way too far from caller functions and so linker fails.
|
||||
# To solve that problem we explicitly disable millicode call generation for Qt.
|
||||
# Also due to some Qt5 libs being really huge (the best example is QtWebKit)
|
||||
# it's good to firce compiler to not assume short or even medium-length calls
|
||||
# could be used. I.e. always use long jump instaructions.
|
||||
# Otherwise there's a high risk of hitting link-time failures.
|
||||
QT5BASE_CFLAGS += -mno-millicode -mlong-calls
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QT5BASE_EGLFS),y)
|
||||
QT5BASE_CONFIGURE_OPTS += -eglfs
|
||||
QT5BASE_DEPENDENCIES += libegl
|
||||
else
|
||||
QT5BASE_CONFIGURE_OPTS += -no-eglfs
|
||||
endif
|
||||
|
||||
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_LIBOPENSSL),-openssl,-no-openssl)
|
||||
QT5BASE_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBOPENSSL),openssl)
|
||||
|
||||
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_FONTCONFIG),-fontconfig,-no-fontconfig)
|
||||
QT5BASE_DEPENDENCIES += $(if $(BR2_PACKAGE_QT5BASE_FONTCONFIG),fontconfig)
|
||||
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_GIF),,-no-gif)
|
||||
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_JPEG),-system-libjpeg,-no-libjpeg)
|
||||
QT5BASE_DEPENDENCIES += $(if $(BR2_PACKAGE_QT5BASE_JPEG),jpeg)
|
||||
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_PNG),-system-libpng,-no-libpng)
|
||||
QT5BASE_DEPENDENCIES += $(if $(BR2_PACKAGE_QT5BASE_PNG),libpng)
|
||||
|
||||
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_DBUS),-dbus,-no-dbus)
|
||||
QT5BASE_DEPENDENCIES += $(if $(BR2_PACKAGE_QT5BASE_DBUS),dbus)
|
||||
|
||||
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_TSLIB),-tslib,-no-tslib)
|
||||
QT5BASE_DEPENDENCIES += $(if $(BR2_PACKAGE_QT5BASE_TSLIB),tslib)
|
||||
|
||||
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_LIBGLIB2),-glib,-no-glib)
|
||||
QT5BASE_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBGLIB2),libglib2)
|
||||
|
||||
QT5BASE_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBKRB5),libkrb5)
|
||||
|
||||
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_ICU),-icu,-no-icu)
|
||||
QT5BASE_DEPENDENCIES += $(if $(BR2_PACKAGE_QT5BASE_ICU),icu)
|
||||
|
||||
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_EXAMPLES),-make,-nomake) examples
|
||||
|
||||
# see qt5base-5.15.2/src/corelib/global/qlogging.cpp:110 - __has_include(<execinfo.h>)
|
||||
ifeq ($(BR2_PACKAGE_LIBEXECINFO),y)
|
||||
QT5BASE_DEPENDENCIES += libexecinfo
|
||||
define QT5BASE_CONFIGURE_ARCH_CONFIG_LIBEXECINFO
|
||||
printf '!host_build { \n LIBS += -lexecinfo\n }' >$(QT5BASE_ARCH_CONFIG_FILE)
|
||||
endef
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBINPUT),y)
|
||||
QT5BASE_CONFIGURE_OPTS += -libinput
|
||||
QT5BASE_DEPENDENCIES += libinput
|
||||
else
|
||||
QT5BASE_CONFIGURE_OPTS += -no-libinput
|
||||
endif
|
||||
|
||||
# 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
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
||||
QT5BASE_CONFIGURE_OPTS += -journald
|
||||
QT5BASE_DEPENDENCIES += systemd
|
||||
else
|
||||
QT5BASE_CONFIGURE_OPTS += -no-journald
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QT5BASE_SYSLOG),y)
|
||||
QT5BASE_CONFIGURE_OPTS += -syslog
|
||||
else
|
||||
QT5BASE_CONFIGURE_OPTS += -no-syslog
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_IMX_GPU_VIV),y)
|
||||
# use vivante backend
|
||||
QT5BASE_EGLFS_DEVICE = EGLFS_DEVICE_INTEGRATION = eglfs_viv
|
||||
else ifeq ($(BR2_PACKAGE_SUNXI_MALI_UTGARD),y)
|
||||
# use mali backend
|
||||
QT5BASE_EGLFS_DEVICE = EGLFS_DEVICE_INTEGRATION = eglfs_mali
|
||||
else ifeq ($(BR2_PACKAGE_ROCKCHIP_MALI),y)
|
||||
# use kms backend
|
||||
QT5BASE_EGLFS_DEVICE = EGLFS_DEVICE_INTEGRATION = eglfs_kms
|
||||
endif
|
||||
|
||||
ifneq ($(QT5BASE_CONFIG_FILE),)
|
||||
define QT5BASE_CONFIGURE_CONFIG_FILE
|
||||
cp $(QT5BASE_CONFIG_FILE) $(@D)/src/corelib/global/qconfig-buildroot.h
|
||||
endef
|
||||
endif
|
||||
|
||||
QT5BASE_ARCH_CONFIG_FILE = $(@D)/mkspecs/devices/linux-buildroot-g++/arch.conf
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
||||
# Qt 5.8 needs atomics, which on various architectures are in -latomic
|
||||
define QT5BASE_CONFIGURE_ARCH_CONFIG_LIBATOMIC
|
||||
printf '!host_build { \n LIBS += -latomic\n }' >$(QT5BASE_ARCH_CONFIG_FILE)
|
||||
endef
|
||||
endif
|
||||
|
||||
# This allows to use ccache when available
|
||||
ifeq ($(BR2_CCACHE),y)
|
||||
QT5BASE_CONFIGURE_OPTS += -ccache
|
||||
endif
|
||||
|
||||
# Ensure HOSTCC/CXX is used
|
||||
define QT5BASE_CONFIGURE_HOSTCC
|
||||
$(SED) 's,^QMAKE_CC\s*=.*,QMAKE_CC = $(HOSTCC_NOCCACHE),' $(@D)/mkspecs/common/g++-base.conf
|
||||
$(SED) 's,^QMAKE_CXX\s*=.*,QMAKE_CXX = $(HOSTCXX_NOCCACHE),' $(@D)/mkspecs/common/g++-base.conf
|
||||
endef
|
||||
|
||||
# Must be last so can override all options set by Buildroot
|
||||
QT5BASE_CONFIGURE_OPTS += $(call qstrip,$(BR2_PACKAGE_QT5BASE_CUSTOM_CONF_OPTS))
|
||||
|
||||
define QT5BASE_CONFIGURE_CMDS
|
||||
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
|
||||
$(QT5BASE_CONFIGURE_CONFIG_FILE)
|
||||
touch $(QT5BASE_ARCH_CONFIG_FILE)
|
||||
$(QT5BASE_CONFIGURE_ARCH_CONFIG_LIBATOMIC)
|
||||
$(QT5BASE_CONFIGURE_ARCH_CONFIG_LIBEXECINFO)
|
||||
$(QT5BASE_CONFIGURE_HOSTCC)
|
||||
(cd $(@D); \
|
||||
$(TARGET_MAKE_ENV) \
|
||||
PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
|
||||
MAKEFLAGS="-j$(PARALLEL_JOBS) $(MAKEFLAGS)" \
|
||||
./configure \
|
||||
-v \
|
||||
-prefix /usr \
|
||||
-hostprefix $(HOST_DIR) \
|
||||
-headerdir /usr/include/qt5 \
|
||||
-sysroot $(STAGING_DIR) \
|
||||
-plugindir /usr/lib/qt/plugins \
|
||||
-examplesdir /usr/lib/qt/examples \
|
||||
-no-rpath \
|
||||
-nomake tests \
|
||||
-device buildroot \
|
||||
-device-option CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||
-device-option BR_COMPILER_CFLAGS="$(QT5BASE_CFLAGS)" \
|
||||
-device-option BR_COMPILER_CXXFLAGS="$(QT5BASE_CXXFLAGS)" \
|
||||
$(QT5BASE_CONFIGURE_OPTS) \
|
||||
)
|
||||
endef
|
||||
|
||||
QT5BASE_POST_INSTALL_STAGING_HOOKS += QT5_INSTALL_QT_CONF
|
||||
|
||||
$(eval $(qmake-package))
|
||||
Reference in New Issue
Block a user