initial buildroot for linux 5.15
This commit is contained in:
+47
@@ -0,0 +1,47 @@
|
||||
From acf752757ee4bf2913289ee1142f4968fdb22a4a Mon Sep 17 00:00:00 2001
|
||||
From: Peter Seiderer <ps.report@gmx.net>
|
||||
Date: Wed, 15 Sep 2021 23:05:52 +0200
|
||||
Subject: [PATCH] 3rdparty: mapbox-gl-native: fix musl compile
|
||||
(pthread_getname_np)
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
- pthread_getname_np not available with musl libc (patch inspired/ported
|
||||
from [1])
|
||||
|
||||
Fixes:
|
||||
|
||||
platform/default/thread.cpp: In function ‘std::string mbgl::platform::getCurrentThreadName()’:
|
||||
platform/default/thread.cpp:14:5: error: ‘pthread_getname_np’ was not declared in this scope; did you mean ‘pthread_setname_np’?
|
||||
14 | pthread_getname_np(pthread_self(), name, sizeof(name));
|
||||
| ^~~~~~~~~~~~~~~~~~
|
||||
| pthread_setname_np
|
||||
|
||||
[1] https://github.com/void-linux/void-packages/blob/e64dd67f43c409d2b2db08214084e842d92ad620/srcpkgs/qt5/patches/0014-musl-set_thread_name_np.patch
|
||||
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
[yann.morin.1998@free.fr: add uClibc]
|
||||
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
|
||||
---
|
||||
src/3rdparty/mapbox-gl-native/platform/default/thread.cpp | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/3rdparty/mapbox-gl-native/platform/default/thread.cpp b/src/3rdparty/mapbox-gl-native/platform/default/thread.cpp
|
||||
index c7c79b4..3f135eb 100644
|
||||
--- a/src/3rdparty/mapbox-gl-native/platform/default/thread.cpp
|
||||
+++ b/src/3rdparty/mapbox-gl-native/platform/default/thread.cpp
|
||||
@@ -11,8 +11,9 @@ namespace platform {
|
||||
|
||||
std::string getCurrentThreadName() {
|
||||
char name[32] = "unknown";
|
||||
+#if defined(__GLIBC__) || defined(__UCLIBC__)
|
||||
pthread_getname_np(pthread_self(), name, sizeof(name));
|
||||
-
|
||||
+#endif
|
||||
return name;
|
||||
}
|
||||
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_QT5LOCATION
|
||||
bool "qt5location"
|
||||
select BR2_PACKAGE_QT5BASE_GUI
|
||||
help
|
||||
Qt is a cross-platform application and UI framework for
|
||||
developers using C++.
|
||||
|
||||
The Qt Location API helps you create viable mapping
|
||||
solutions using the data available from some of the
|
||||
popular location services.
|
||||
|
||||
http://doc.qt.io/qt-5/qtlocation-index.html
|
||||
@@ -0,0 +1,9 @@
|
||||
# Hash from: https://download.qt.io/official_releases/qt/5.15/5.15.2/submodules/qtlocation-everywhere-src-5.15.2.tar.xz.sha256
|
||||
sha256 984fcb09e108df49a8dac35d5ce6dffc49caafd2acb1c2f8a5173a6a21f392a0 qtlocation-everywhere-src-5.15.2.tar.xz
|
||||
|
||||
# Hashes for license files:
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE.GPL2
|
||||
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 LICENSE.GPL3
|
||||
sha256 0dbe024961f6ab5c52689cbd036c977975d0d0f6a67ff97762d96cb819dd5652 LICENSE.GPL3-EXCEPT
|
||||
sha256 da7eabb7bafdf7d3ae5e9f223aa5bdc1eece45ac569dc21b3b037520b4464768 LICENSE.LGPL3
|
||||
sha256 ed8742a95cb9db653a09b050e27ccff5e67ba69c14aa2c3137f2a4e1892f6c0d LICENSE.FDL
|
||||
@@ -0,0 +1,19 @@
|
||||
################################################################################
|
||||
#
|
||||
# qt5location
|
||||
#
|
||||
################################################################################
|
||||
|
||||
QT5LOCATION_VERSION = $(QT5_VERSION)
|
||||
QT5LOCATION_SITE = $(QT5_SITE)
|
||||
QT5LOCATION_SOURCE = qtlocation-$(QT5_SOURCE_TARBALL_PREFIX)-$(QT5LOCATION_VERSION).tar.xz
|
||||
QT5LOCATION_INSTALL_STAGING = YES
|
||||
|
||||
QT5LOCATION_LICENSE = GPL-2.0+ or LGPL-3.0, GPL-3.0 with exception(tools), GFDL-1.3 (docs)
|
||||
QT5LOCATION_LICENSE_FILES = LICENSE.GPL2 LICENSE.GPL3 LICENSE.GPL3-EXCEPT LICENSE.LGPL3 LICENSE.FDL
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y)
|
||||
QT5LOCATION_DEPENDENCIES += qt5declarative
|
||||
endif
|
||||
|
||||
$(eval $(qmake-package))
|
||||
Reference in New Issue
Block a user