* [Buildroot] [PATCH v3] package/qt6/qt6serialbus: new package
@ 2023-02-06 13:38 Angelo Compagnucci
2023-02-08 13:34 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Angelo Compagnucci @ 2023-02-06 13:38 UTC (permalink / raw)
To: buildroot; +Cc: Jesse Van Gavere, thomas.petazzoni, Angelo Compagnucci
From: Jesse Van Gavere <jesseevg@gmail.com>
Signed-off-by: Jesse Van Gavere <jesseevg@gmail.com>
Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
---
v2:
* LICENSE/LICENSE_FILES: one per line
* Selecting BR2_PACKAGE_QT6BASE_NETWORK to make the package compile,
fixes: "Failed to find required Qt component "Network".
v3:
* Bumped to version 6.4.2
---
package/qt6/Config.in | 1 +
package/qt6/qt6serialbus/Config.in | 15 ++++++++
package/qt6/qt6serialbus/qt6serialbus.hash | 11 ++++++
package/qt6/qt6serialbus/qt6serialbus.mk | 45 ++++++++++++++++++++++
4 files changed, 72 insertions(+)
create mode 100644 package/qt6/qt6serialbus/Config.in
create mode 100644 package/qt6/qt6serialbus/qt6serialbus.hash
create mode 100644 package/qt6/qt6serialbus/qt6serialbus.mk
diff --git a/package/qt6/Config.in b/package/qt6/Config.in
index 4b2b9a1174..b0cc008df5 100644
--- a/package/qt6/Config.in
+++ b/package/qt6/Config.in
@@ -39,6 +39,7 @@ menuconfig BR2_PACKAGE_QT6
if BR2_PACKAGE_QT6
source "package/qt6/qt6base/Config.in"
+source "package/qt6/qt6serialbus/Config.in"
source "package/qt6/qt6serialport/Config.in"
endif
diff --git a/package/qt6/qt6serialbus/Config.in b/package/qt6/qt6serialbus/Config.in
new file mode 100644
index 0000000000..1f24310e61
--- /dev/null
+++ b/package/qt6/qt6serialbus/Config.in
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_QT6SERIALBUS
+ bool "qt6serialbus"
+ depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6 # CAN FD
+ select BR2_PACKAGE_QT6SERIALPORT
+ select BR2_PACKAGE_QT6BASE_NETWORK
+ help
+ Qt is a cross-platform application and UI framework for
+ developers using C++.
+
+ This package corresponds to the qt6serialbus module.
+
+ https://doc.qt.io/qt-6/qtserialbus-index.html
+
+comment "qt6serialbus needs headers >= 3.6"
+ depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
diff --git a/package/qt6/qt6serialbus/qt6serialbus.hash b/package/qt6/qt6serialbus/qt6serialbus.hash
new file mode 100644
index 0000000000..be01f13363
--- /dev/null
+++ b/package/qt6/qt6serialbus/qt6serialbus.hash
@@ -0,0 +1,11 @@
+# Hash from: https://download.qt.io/official_releases/qt/6.4/6.4.2/submodules/qtserialbus-everywhere-src-6.4.2.tar.xz.sha256
+sha256 604013657c7327899aa50748deb4bcb5e545ab37ff4964795b9e6f617d48bf1b qtserialbus-everywhere-src-6.4.2.tar.xz
+
+# Hashes for license files:
+sha256 9f0490f18656c6f2435bd14f603ef0c96434d1825615363dce43abb42ed1dcce LICENSES/BSD-3-Clause.txt
+sha256 110535522396708cea37c72a802c5e7e81391139f5f7985631c93ef242b206a4 LICENSES/GFDL-1.3-no-invariants-only.txt
+sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSES/GPL-2.0-only.txt
+sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 LICENSES/GPL-3.0-only.txt
+sha256 da7eabb7bafdf7d3ae5e9f223aa5bdc1eece45ac569dc21b3b037520b4464768 LICENSES/LGPL-3.0-only.txt
+sha256 9b1f50aae6267f9d5e0ceb6775ee86450262c25ec7c0573e151fe5d3f18a4700 LICENSES/LicenseRef-Qt-Commercial.txt
+sha256 40678d338ce53cd93f8b22b281a2ecbcaa3ee65ce60b25ffb0c462b0530846b2 LICENSES/Qt-GPL-exception-1.0.txt
diff --git a/package/qt6/qt6serialbus/qt6serialbus.mk b/package/qt6/qt6serialbus/qt6serialbus.mk
new file mode 100644
index 0000000000..fe69119a58
--- /dev/null
+++ b/package/qt6/qt6serialbus/qt6serialbus.mk
@@ -0,0 +1,45 @@
+################################################################################
+#
+# qt6serialbus
+#
+################################################################################
+
+QT6SERIALBUS_VERSION = $(QT6_VERSION)
+QT6SERIALBUS_SITE = $(QT6_SITE)
+QT6SERIALBUS_SOURCE = qtserialbus-$(QT6_SOURCE_TARBALL_PREFIX)-$(QT6SERIALBUS_VERSION).tar.xz
+QT6SERIALBUS_INSTALL_STAGING = YES
+QT6SERIALBUS_SUPPORTS_IN_SOURCE_BUILD = NO
+
+QT6SERIALBUS_LICENSE = \
+ GPL-2.0+ or LGPL-3.0, \
+ GPL-3.0, GFDL-1.3 no invariants (docs)
+
+QT6SERIALBUS_LICENSE_FILES = \
+ LICENSES/GPL-2.0-only.txt \
+ LICENSES/GPL-3.0-only.txt \
+ LICENSES/LGPL-3.0-only.txt \
+ LICENSES/GFDL-1.3-no-invariants-only.txt
+
+QT6SERIALBUS_CONF_OPTS = \
+ -GNinja \
+ -DQT_HOST_PATH=$(HOST_DIR) \
+ -DBUILD_WITH_PCH=OFF \
+ -DQT_BUILD_EXAMPLES=OFF \
+ -DQT_BUILD_TESTS=OFF
+
+QT6SERIALBUS_DEPENDENCIES = \
+ qt6serialport
+
+define QT6SERIALBUS_BUILD_CMDS
+ $(TARGET_MAKE_ENV) $(BR2_CMAKE) --build $(QT6SERIALBUS_BUILDDIR)
+endef
+
+define QT6SERIALBUS_INSTALL_STAGING_CMDS
+ $(TARGET_MAKE_ENV) $(BR2_CMAKE) --install $(QT6SERIALBUS_BUILDDIR) --prefix $(STAGING_DIR)/usr
+endef
+
+define QT6SERIALBUS_INSTALL_TARGET_CMDS
+ $(TARGET_MAKE_ENV) $(BR2_CMAKE) --install $(QT6SERIALBUS_BUILDDIR) --prefix $(TARGET_DIR)/usr
+endef
+
+$(eval $(cmake-package))
--
2.25.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH v3] package/qt6/qt6serialbus: new package
2023-02-06 13:38 [Buildroot] [PATCH v3] package/qt6/qt6serialbus: new package Angelo Compagnucci
@ 2023-02-08 13:34 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-02-08 13:34 UTC (permalink / raw)
To: Angelo Compagnucci; +Cc: Jesse Van Gavere, buildroot
On Mon, 6 Feb 2023 14:38:36 +0100
Angelo Compagnucci <angelo@amarulasolutions.com> wrote:
> From: Jesse Van Gavere <jesseevg@gmail.com>
>
> Signed-off-by: Jesse Van Gavere <jesseevg@gmail.com>
> Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
> ---
> v2:
> * LICENSE/LICENSE_FILES: one per line
> * Selecting BR2_PACKAGE_QT6BASE_NETWORK to make the package compile,
> fixes: "Failed to find required Qt component "Network".
> v3:
> * Bumped to version 6.4.2
I changed the installation commands to use DESTDIR= instead of
--prefix, like has been done for qt6base, and applied. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-02-08 13:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-06 13:38 [Buildroot] [PATCH v3] package/qt6/qt6serialbus: new package Angelo Compagnucci
2023-02-08 13:34 ` Thomas Petazzoni via buildroot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.