[Buildroot] [PATCH v4 01/10] package/wlroots: add hwdata and hwdata_pnp_ids as a dependency
Adam Duskett
adam.duskett at amarulasolutions.com
Thu Dec 21 15:36:10 UTC 2023
As per backend/drm/meson.build:1-7
hwdata = dependency('hwdata', required: false, native: true)
if hwdata.found()
hwdata_dir = hwdata.get_variable(pkgconfig: 'pkgdatadir')
pnp_ids = files(hwdata_dir / 'pnp.ids')
else
pnp_ids = files('/usr/share/hwdata/pnp.ids')
endif
On a build in a fresh debian container with a minimal config
BR2_x86_64=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_PACKAGE_MESA3D=y
BR2_PACKAGE_MESA3D_OSMESA_GALLIUM=y
BR2_PACKAGE_MESA3D_OPENGL_EGL=y
BR2_PACKAGE_MESA3D_OPENGL_ES=y
BR2_PACKAGE_WLROOTS=y
The build fails as neither hwdata nor the pnp.ids are found.
Signed-off-by: Adam Duskett <adam.duskett at amarulasolutions.com>
---
v3 -> v4: Add a more comprehensive commit with a minimal defconfig.
package/wlroots/Config.in | 2 ++
package/wlroots/wlroots.mk | 1 +
2 files changed, 3 insertions(+)
diff --git a/package/wlroots/Config.in b/package/wlroots/Config.in
index fb23e9069c..7622a3033b 100644
--- a/package/wlroots/Config.in
+++ b/package/wlroots/Config.in
@@ -16,6 +16,8 @@ config BR2_PACKAGE_WLROOTS
depends on BR2_PACKAGE_HAS_LIBEGL
depends on BR2_PACKAGE_HAS_LIBEGL_WAYLAND
depends on BR2_PACKAGE_HAS_LIBGLES
+ select BR2_PACKAGE_HWDATA
+ select BR2_PACKAGE_HWDATA_PNP_IDS
select BR2_PACKAGE_LIBDRM
select BR2_PACKAGE_LIBINPUT
select BR2_PACKAGE_LIBXKBCOMMON
diff --git a/package/wlroots/wlroots.mk b/package/wlroots/wlroots.mk
index b478e57abb..bb5c8f497d 100644
--- a/package/wlroots/wlroots.mk
+++ b/package/wlroots/wlroots.mk
@@ -13,6 +13,7 @@ WLROOTS_INSTALL_STAGING = YES
WLROOTS_DEPENDENCIES = \
host-pkgconf \
host-wayland \
+ hwdata \
libinput \
libxkbcommon \
libegl \
--
2.43.0
More information about the buildroot
mailing list