From: Angelo Compagnucci <angelo@amarulasolutions.com>
To: buildroot@buildroot.org
Cc: Jesse Van Gavere <jesseevg@gmail.com>,
thomas.petazzoni@bootlin.com,
Angelo Compagnucci <angelo@amarulasolutions.com>
Subject: [Buildroot] [PATCH v3] package/qt6/qt6serialbus: new package
Date: Mon, 6 Feb 2023 14:38:36 +0100 [thread overview]
Message-ID: <20230206133836.412572-1-angelo@amarulasolutions.com> (raw)
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
next reply other threads:[~2023-02-06 13:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-06 13:38 Angelo Compagnucci [this message]
2023-02-08 13:34 ` [Buildroot] [PATCH v3] package/qt6/qt6serialbus: new package Thomas Petazzoni via buildroot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230206133836.412572-1-angelo@amarulasolutions.com \
--to=angelo@amarulasolutions.com \
--cc=buildroot@buildroot.org \
--cc=jesseevg@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox