[0/2] Import drm.h and drm_mode.h for egl.cpp to use
mbox series

Message ID 20260331234644.14654-1-bryan.odonoghue@linaro.org
Headers show
Series
  • Import drm.h and drm_mode.h for egl.cpp to use
Related show

Message

Bryan O'Donoghue March 31, 2026, 11:46 p.m. UTC
As reported on IRC by "zipwax" egl.cpp inadvertently depends on libdrm for drm.h and
fails to add the relevant depends to meson.

This series imports the headers directly without changing indentation for
libcamera's checkpatch which I assume is kosher for this type of
copy/paste.

Once done we include linux/drm_fourcc.h in egl.cpp where drm_fourcc.h
relies on drm.h and drm_mode.h.

Bryan O'Donoghue (2):
  include: linux: Import drm.h and drm_mode.h
  egl: Switch to linux/drm_fourcc.h

 include/linux/drm.h            | 1468 ++++++++++++++++++++++++++++++++
 include/linux/drm_mode.h       | 1370 +++++++++++++++++++++++++++++
 src/libcamera/egl.cpp          |    3 +-
 utils/update-kernel-headers.sh |    2 +
 4 files changed, 2841 insertions(+), 2 deletions(-)
 create mode 100644 include/linux/drm.h
 create mode 100644 include/linux/drm_mode.h