* [ptxdist] [PATCH v2] Add drm_info package
@ 2025-03-13 14:41 Benjamin Gaignard
2025-03-24 7:45 ` [ptxdist] [APPLIED] Add drm-info package Michael Olbrich
0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Gaignard @ 2025-03-13 14:41 UTC (permalink / raw)
To: ptxdist; +Cc: Benjamin Gaignard
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ptxdist] [APPLIED] Add drm-info package
2025-03-13 14:41 [ptxdist] [PATCH v2] Add drm_info package Benjamin Gaignard
@ 2025-03-24 7:45 ` Michael Olbrich
0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2025-03-24 7:45 UTC (permalink / raw)
To: ptxdist; +Cc: Benjamin Gaignard
Thanks, applied as 1cb0b3fbe127781bb56c63fb3cc5ea0ffc5c74ef.
Michael
[sent from post-receive hook]
On Mon, 24 Mar 2025 08:45:49 +0100, Benjamin Gaignard <benjamin.gaignard@collabora.com> wrote:
> 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>
> Message-Id: <20250313144130.29070-1-benjamin.gaignard@collabora.com>
> [mol: add header for prepare stage, rename drm_info -> drm-info]
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/rules/drm-info.in b/rules/drm-info.in
> new file mode 100644
> index 000000000000..3916e29a6377
> --- /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 000000000000..ad6730fdb35c
> --- /dev/null
> +++ b/rules/drm-info.make
> @@ -0,0 +1,59 @@
> +# -*-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
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-24 7:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-13 14:41 [ptxdist] [PATCH v2] Add drm_info package Benjamin Gaignard
2025-03-24 7:45 ` [ptxdist] [APPLIED] Add drm-info package Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox