From: Benjamin Gaignard <benjamin.gaignard@collabora.com>
To: ptxdist@pengutronix.de
Cc: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Subject: [ptxdist] [PATCH] Add drm_info package
Date: Thu, 13 Mar 2025 10:30:19 +0100 [thread overview]
Message-ID: <20250313093019.21911-1-benjamin.gaignard@collabora.com> (raw)
Add package for drm_info which is a small utility to dump
info about DRM devices.
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
---
rules/drm_info.in | 10 ++++++++++
rules/drm_info.make | 32 ++++++++++++++++++++++++++++++++
2 files changed, 42 insertions(+)
create mode 100644 rules/drm_info.in
create mode 100644 rules/drm_info.make
diff --git a/rules/drm_info.in b/rules/drm_info.in
new file mode 100644
index 000000000..7346ec57e
--- /dev/null
+++ b/rules/drm_info.in
@@ -0,0 +1,10 @@
+## SECTION=multimedia_libs
+
+menuconfig DRM_INFO
+ tristate
+ prompt "drm-info"
+ select HOST_MESON
+ select LIBDRM
+ select JSON_C
+ help
+ Small utility to dump info about DRM devices.
diff --git a/rules/drm_info.make b/rules/drm_info.make
new file mode 100644
index 000000000..d85242708
--- /dev/null
+++ b/rules/drm_info.make
@@ -0,0 +1,32 @@
+
+PACKAGES-$(PTXCONF_DRM_INFO) += drm_info
+
+DRM_INFO_VERSION := v2.7.0
+DRM_INFO_MD5 := 0066f5d02007b712d7b21a89e89785ba
+DRM_INFO := drm_info-$(DRM_INFO_VERSION)
+DRM_INFO_SUFFIX := tar.bz2
+DRM_INFO_URL := https://gitlab.freedesktop.org/emersion/drm_info/-/archive/$(DRM_INFO_VERSION)/$(DRM_INFO_VERSION).$(DRM_INFO_SUFFIX)
+DRM_INFO_SOURCE := $(SRCDIR)/$(DRM_INFO).$(DRM_INFO_SUFFIX)
+DRM_INFO_DIR := $(BUILDDIR)/$(DRM_INFO)
+DRM_INFO_LICENSE := MIT
+
+DRM_INFO_CONF_TOOL := meson
+DRM_INFO_OPT := $(CROSS_MESON_USR)
+
+$(STATEDIR)/drm_info.install:
+ @$(call targetinfo)
+ @$(call world/install, DRM_INFO)
+
+ @install -D -m644 $(DRM_INFO_DIR)-build/drm_info \
+ $(DRM_INFO_PKGDIR)/drm_info
+
+ @$(call touch)
+
+$(STATEDIR)/drm_info.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, drm_info)
+ @$(call install_copy, drm_info, 0, 0, 0755, -, /usr/bin/drm_info)
+ @$(call install_finish, drm_info)
+
+ @$(call touch)
--
2.43.0
next reply other threads:[~2025-03-13 10:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-13 9:30 Benjamin Gaignard [this message]
2025-03-13 14:13 ` Michael Tretter
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=20250313093019.21911-1-benjamin.gaignard@collabora.com \
--to=benjamin.gaignard@collabora.com \
--cc=ptxdist@pengutronix.de \
/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