[Midnightbsd-cvs] [MidnightBSD/mports] 9bb02c: graphics/drm-515-kmod: new port (Linux 5.15 DRM dr...

Lucas Holt noreply at github.com
Thu Jun 11 19:48:58 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/mports
  Commit: 9bb02c2dd56111aabf8e7c1b9da75c05dbfbea71
      https://github.com/MidnightBSD/mports/commit/9bb02c2dd56111aabf8e7c1b9da75c05dbfbea71
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-06-11 (Thu, 11 Jun 2026)

  Changed paths:
    A graphics/drm-515-kmod/Makefile
    A graphics/drm-515-kmod/Makefile.version
    A graphics/drm-515-kmod/distinfo
    A graphics/drm-515-kmod/files/patch-drivers_dma-buf_dma-buf.c
    A graphics/drm-515-kmod/files/patch-drivers_gpu_drm_i915_gem_i915__gem__shmem.c
    A graphics/drm-515-kmod/pkg-descr
    A graphics/drm-515-kmod/pkg-message
    A graphics/drm-515-kmod/pkg-plist

  Log Message:
  -----------
  graphics/drm-515-kmod: new port (Linux 5.15 DRM drivers) (#615)

## What

New `graphics/drm-515-kmod` port — the Linux 5.15 DRM stack (drm, ttm,
dmabuf,
amdgpu, i915kms, radeonkms) — modelled on the existing `drm-510-kmod`.

Builds all six `.ko` on amd64 against `/usr/src`:
`make build SRC_BASE=/usr/src` (verified from a clean extract).

## Contents

- `Makefile` / `Makefile.version`: 5.15.160, GitHub tag
`drm_v5.15.160_6`;
  `distinfo` refreshed.
- `pkg-plist`: drm-515 module set (drops `linuxkpi_gplv2.ko` vs
drm-510).
- `files/`: two MidnightBSD source patches for FreeBSD-14 assumptions in
the
  drm-kmod source vs MidnightBSD's base API:
- `dma_buf_stat` gains the `struct thread *` arg (MidnightBSD
`fo_stat_t`
    still carries it).
- i915 `totalram_pages()` fallback gated on `__MidnightBSD_version` (our
    LinuxKPI provides it).

## Dependency

Requires the LinuxKPI uplift in **MidnightBSD/src#379** (FreeBSD
14-level
LinuxKPI). Merge that first; this port will not build against the
current base.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

## Summary by Sourcery

Add a new drm-515-kmod port providing Linux 5.15 DRM kernel modules for
supported MidnightBSD architectures, including required compatibility
adjustments for the base system.

New Features:
- Introduce the graphics/drm-515-kmod port packaging the Linux 5.15 DRM
driver stack as kernel modules for amd64, i386, aarch64, and powerpc64*.

Enhancements:
- Add architecture-specific packaging logic and source patches so the
new DRM 5.15 modules build against MidnightBSD's LinuxKPI and kernel
interfaces.

Co-authored-by: Claude Opus 4.8 <noreply at anthropic.com>



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/mports/settings/notifications



More information about the Midnightbsd-cvs mailing list