package: Add drm_info
PATCH 1/1 package: Add drm_info
drm_info is a small utility to dump info about DRM devices.
Signed-off-by Kory Maincent <[email protected]>
--- package/Config.in | 1 + ...0001-meson.build-Fix-Buildroot-build.patch | 34 +++++++++++++++++++ package/drm_info/Config.in | 8 +++++ package/drm_info/drm_info.hash | 5 +++ package/drm_info/drm_info.mk | 15 ++++++++ 5 files changed, 63 insertions(+) create mode 100644 package/drm_info/0001-meson.build-Fix-Buildroot-build.patch create mode 100644 package/drm_info/Config.in create mode 100644 package/drm_info/drm_info.hash create mode 100644 package/drm_info/drm_info.mk
package/Config.in +1 -0
@@ -307,6 +307,7 @@ menu "Graphic libraries and applications (graphic/text)" comment "Graphic applications" source "package/cage/Config.in" source "package/cog/Config.in" + source "package/drm_info/Config.in" source "package/flutter-packages/Config.in" source "package/flutter-pi/Config.in" source "package/foot/Config.in"
package/drm_info/0001-meson.build-Fix-Buildroot-build.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 785525a74878bdf688c5466d83e193e207abed6a Mon Sep 17 00:00:00 2001 +From: Kory Maincent <[email protected]> +Date: Wed, 11 Mar 2026 19:03:46 +0100 +Subject: [PATCH] meson.build: Fix Buildroot build + +In cross compilation case pc_sysrootdir variable contains the sysroot path, +but includedir from pkgconfig already contains the full absolute path +(sysroot + /usr/include), so concatenating them double the sysroot prefix. + +The fix removes pc_sysrootdir + so includedir is used directly, which +already points to the correct absolute path on the filesystem. + +Upstream: N/A +Signed-off-by: Kory Maincent <[email protected]> +--- + meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index 5b94552..5a7cd0a 100644 +--- a/meson.build ++++ b/meson.build +@@ -68,7 +68,7 @@ if libdrm.version().version_compare('<2.4.125') + elif libdrm.type_name() == 'internal' + fourcc_h = meson.current_source_dir() / 'subprojects/libdrm/include/drm/drm_fourcc.h' + else +- fourcc_h = libdrm.get_variable(pkgconfig: 'pc_sysrootdir') + libdrm.get_variable(pkgconfig: 'includedir') / 'libdrm/drm_fourcc.h' ++ fourcc_h = libdrm.get_variable(pkgconfig: 'includedir') / 'libdrm/drm_fourcc.h' + endif + + # The DRM_BUS_FAUX bus and its information is included in libdrm v2.4.127 +-- +2.43.0 +
package/drm_info/Config.in new file +8 -0
@@ -0,0 +1,8 @@ +config BR2_PACKAGE_DRM_INFO + bool "drm_info" + select BR2_PACKAGE_LIBDRM + select BR2_PACKAGE_JSON_C + help + Small utility to dump info about DRM devices. + + https://gitlab.freedesktop.org/emersion/drm_info
package/drm_info/drm_info.hash new file +5 -0
@@ -0,0 +1,5 @@ +# Locally computed: +sha256 b1000e95eb4f57cfe7819c5b8afd880ac07dde25d9c3839ec52e0aeadeb83234 drm_info-v2.9.0.tar.gz + +# Hash for license files: +sha256 05a54b690d8851143a8b923cfe8ac48f49050f9d2166e7eb0c1d340242d7f46a LICENSE
package/drm_info/drm_info.mk new file +15 -0
@@ -0,0 +1,15 @@ +################################################################################ +# +# drm_info +# +################################################################################ + +DRM_INFO_VERSION = v2.9.0 +DRM_INFO_SITE = https://gitlab.freedesktop.org/emersion/drm_info/-/archive/$(DRM_INFO_VERSION) +DRM_INFO_LICENSE = MIT +DRM_INFO_LICENSE_FILES = LICENSE +DRM_INFO_DEPENDENCIES = \ + json-c \ + libdrm + +$(eval $(meson-package))
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot