mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Benjamin Gaignard <benjamin.gaignard@collabora.com>
To: ptxdist@pengutronix.de
Cc: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Subject: [ptxdist] [PATCH v2] Add drm_info package
Date: Thu, 13 Mar 2025 15:41:30 +0100	[thread overview]
Message-ID: <20250313144130.29070-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>
---
- Use ptxdist newpackage to get a valid template
- Add HOST_SYSTEM_PYTHON3
- Add -Dlibpci=disabled and -Dman-pages=disabled in config options
- Add LICENSE file md5sum
- Add header for targetinstall
- Drop install stage

 rules/drm_info.in   | 11 +++++++++
 rules/drm_info.make | 55 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 66 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..3916e29a6
--- /dev/null
+++ b/rules/drm_info.in
@@ -0,0 +1,11 @@
+## SECTION=multimedia_tools
+
+config DRM_INFO
+	tristate
+	select HOST_MESON
+	select HOST_SYSTEM_PYTHON3
+	select LIBDRM
+	select JSON_C
+	prompt "drm_info"
+	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..5a0e3541e
--- /dev/null
+++ b/rules/drm_info.make
@@ -0,0 +1,55 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2025 by <benjamin.gaignard@collabora.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_DRM_INFO) += drm_info
+
+#
+# Paths and names
+#
+DRM_INFO_VERSION	:= 2.7.0
+DRM_INFO_MD5		:= 0066f5d02007b712d7b21a89e89785ba
+DRM_INFO		:= drm_info-v$(DRM_INFO_VERSION)
+DRM_INFO_SUFFIX		:= tar.bz2
+DRM_INFO_URL		:= https://gitlab.freedesktop.org/emersion/drm_info/-/archive//$(DRM_INFO).$(DRM_INFO_SUFFIX)
+DRM_INFO_SOURCE		:= $(SRCDIR)/$(DRM_INFO).$(DRM_INFO_SUFFIX)
+DRM_INFO_DIR		:= $(BUILDDIR)/$(DRM_INFO)
+DRM_INFO_LICENSE	:= MIT
+DRM_INFO_LICENSE_FILES	:= file://LICENSE;md5=32fd56d355bd6a61017655d8da26b67c
+
+#
+# meson
+#
+DRM_INFO_CONF_TOOL	:= meson
+DRM_INFO_CONF_OPT	:=  \
+	$(CROSS_MESON_USR) \
+	-Dlibpci=disabled \
+	-Dman-pages=disabled
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/drm_info.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, drm_info)
+	@$(call install_fixup, drm_info,PRIORITY,optional)
+	@$(call install_fixup, drm_info,SECTION,base)
+	@$(call install_fixup, drm_info,AUTHOR,"Benjamin Gaignard <benjamin.gaignard@collabora.com>")
+	@$(call install_fixup, drm_info,DESCRIPTION,missing)
+
+	@$(call install_copy, drm_info, 0, 0, 0755, -, /usr/bin/drm_info)
+
+	@$(call install_finish, drm_info)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.43.0




                 reply	other threads:[~2025-03-13 14:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20250313144130.29070-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