[0/6] libcamera: kernel headers update
mbox series

Message ID 20260504000431.1340150-1-laurent.pinchart@ideasonboard.com
Headers show
Series
  • libcamera: kernel headers update
Related show

Message

Laurent Pinchart May 4, 2026, 12:04 a.m. UTC
Hello,

This patch series updates the kernel headers from v6.18 to v7.0.

The series starts (patch 1/6) by moving the local copy of
mali-c55-config.h, imported before it was merged in the mainline kernel,
to its correct location. The next three patches (2/6 to 4/6) then update
the update-kernel-headers to create the destination directory and copy
additional headers. Patch 5/6 performs the update to v7.0.

The v7.0 headers do not bring any important change for libcamera by
themselves, but we now import the drm.h and drm_mode.h headers. This
allows including the local copy of drm_fourcc.h, which patch 6/6 uses to
replace the version from libdrm.

As usual, some local changes to kernel headers are kept. They include

- DRM formats and modifiers that have not been upstreamed (for MJPEG,
  Bayer data, and raw CSI-2, IPU3 and RPI5 packing)

- BCM2835 (Raspberry Pi 4 and older) ISP formats and controls

- Internal pads and generic metadata

The last two categories are work in progress upstream (with the BCM2835
ISP being under review on the linux-media mailing list). DRM formats and
modifiers should be addresses separately, and I envision this will
involve decoupling the CFA pattern from the pixel format.

Laurent Pinchart (6):
  include: linux: Move mali-c55-config.h header to correct location
  utils: update-kernel-headers: Create destination directory
  utils: update-kernel-headers: Add drm/drm.h and drm/drm_mode.h
  utils: update-kernel-headers: Add linux/media/arm/mali-c55-config.h
  include: linux: Update to Linux v7.0
  libcamera: egl: Don't depend on libdrm

 include/linux/README                          |    2 +-
 include/linux/dma-buf.h                       |    1 +
 include/linux/drm.h                           | 1465 ++++++++++++++++
 include/linux/drm_fourcc.h                    |   12 +-
 include/linux/drm_mode.h                      | 1535 +++++++++++++++++
 .../linux/{ => media/arm}/mali-c55-config.h   |    0
 include/linux/rkisp1-config.h                 |   98 +-
 include/linux/stddef.h                        |    4 +
 include/linux/v4l2-controls.h                 |   69 +
 include/linux/videodev2.h                     |    7 +-
 src/ipa/mali-c55/algorithms/algorithm.h       |    2 +-
 src/ipa/mali-c55/mali-c55.cpp                 |    2 +-
 src/ipa/mali-c55/module.h                     |    2 +-
 src/ipa/mali-c55/params.h                     |    2 +-
 src/libcamera/egl.cpp                         |    3 +-
 src/libcamera/pipeline/mali-c55/mali-c55.cpp  |    2 +-
 utils/update-kernel-headers.sh                |    7 +-
 17 files changed, 3113 insertions(+), 100 deletions(-)
 create mode 100644 include/linux/drm.h
 create mode 100644 include/linux/drm_mode.h
 rename include/linux/{ => media/arm}/mali-c55-config.h (100%)


base-commit: 183e37362f57ff3ce7493abf0bc6f1b57b931f55