From: Thomas Devoogdt <thomas@devoogdt.com>
To: buildroot@buildroot.org
Cc: Christian Stewart <christian@aperture.us>,
Thomas Devoogdt <thomas.devoogdt@barco.com>
Subject: [Buildroot] [PATCH] package/yq: add new package
Date: Tue, 18 Nov 2025 15:53:03 +0100 [thread overview]
Message-ID: <20251118145303.2215064-1-thomas@devoogdt.com> (raw)
From: Thomas Devoogdt <thomas.devoogdt@barco.com>
Version 4.45.2 was selected as newer versions require Go 1.24 [1],
which is not yet available in Buildroot.
[1] https://github.com/mikefarah/yq/commit/5bc2cd03da9139160db70901ffb8002bf6e242d5
Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
---
package/Config.in | 1 +
package/yq/Config.in | 10 ++++++++++
package/yq/yq.hash | 3 +++
package/yq/yq.mk | 13 +++++++++++++
4 files changed, 27 insertions(+)
create mode 100644 package/yq/Config.in
create mode 100644 package/yq/yq.hash
create mode 100644 package/yq/yq.mk
diff --git a/package/Config.in b/package/Config.in
index 12f327cb27..1dfff206d5 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -203,6 +203,7 @@ menu "Development tools"
source "package/tree/Config.in"
source "package/unifdef/Config.in"
source "package/yasm/Config.in"
+ source "package/yq/Config.in"
endmenu
menu "Filesystem and flash utilities"
diff --git a/package/yq/Config.in b/package/yq/Config.in
new file mode 100644
index 0000000000..d85b3e5601
--- /dev/null
+++ b/package/yq/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_YQ
+ bool "yq"
+ depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
+ select BR2_PACKAGE_HOST_GO
+ help
+ A lightweight and portable command-line YAML, JSON, INI
+ and XML processor, yq uses jq (a popular JSON processor)
+ like syntax.
+
+ https://mikefarah.gitbook.io/yq/
diff --git a/package/yq/yq.hash b/package/yq/yq.hash
new file mode 100644
index 0000000000..bc9dccad81
--- /dev/null
+++ b/package/yq/yq.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 39296b55e33962ef838cd8a1bc0e9850e775de4cc3843bf15f099324069d2632 yq-4.45.2-go2.tar.gz
+sha256 697db34dabb21562fe84487a2ccd031fbd45382b89c2cbdec8ef31682c486040 LICENSE
diff --git a/package/yq/yq.mk b/package/yq/yq.mk
new file mode 100644
index 0000000000..b42b8e652c
--- /dev/null
+++ b/package/yq/yq.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# yq
+#
+################################################################################
+
+YQ_VERSION = 4.45.2
+YQ_SITE = $(call github,mikefarah,yq,v$(YQ_VERSION))
+YQ_LICENSE = MIT
+YQ_LICENSE_FILES = LICENSE
+YQ_GOMOD = github.com/mikefarah/yq/v4
+
+$(eval $(golang-package))
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next reply other threads:[~2025-11-18 14:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-18 14:53 Thomas Devoogdt [this message]
2025-11-18 15:52 ` [Buildroot] [PATCH] package/yq: add new package Edgar Bonet via buildroot
2025-11-18 16:19 ` Thomas Devoogdt
2025-11-18 19:52 ` Edgar Bonet via buildroot
2025-11-30 16:44 ` Peter Korsgaard
2025-12-01 11:26 ` [Buildroot] [PATCH v2 1/2] " Thomas Devoogdt
2025-12-01 11:26 ` [Buildroot] [PATCH v2 2/2] package/yq: bump to 4.49.2 Thomas Devoogdt
2025-12-28 14:48 ` [Buildroot] [PATCH v2 1/2] package/yq: add 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=20251118145303.2215064-1-thomas@devoogdt.com \
--to=thomas@devoogdt.com \
--cc=buildroot@buildroot.org \
--cc=christian@aperture.us \
--cc=thomas.devoogdt@barco.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 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.