Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Homepage: https://github.com/qualcomm-linux/kgsl
Package: kgsl-dkms
Architecture: arm64
Depends: dkms (>= 2.2), init-system-helpers (>= 1.54~), ${misc:Depends}
Recommends: linux-headers-generic, grub-efi-arm64
Description: Qualcomm KGSL GPU kernel module (DKMS)
Kernel Graphics Support Layer (KGSL) driver for the Adreno family of
Qualcomm GPUs. Provides GPU memory management, command submission,
Expand Down
1 change: 1 addition & 0 deletions debian/kgsl-dkms.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
debian/tree/* /
36 changes: 0 additions & 36 deletions debian/kgsl-dkms.postinst

This file was deleted.

16 changes: 0 additions & 16 deletions debian/kgsl-dkms.postrm

This file was deleted.

19 changes: 0 additions & 19 deletions debian/kgsl-dkms.prerm

This file was deleted.

11 changes: 0 additions & 11 deletions debian/kgsl-dkms.service

This file was deleted.

8 changes: 0 additions & 8 deletions debian/kgsl-load.sh

This file was deleted.

17 changes: 1 addition & 16 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,6 @@ include /usr/share/dpkg/pkg-info.mk
override_dh_install:
dh_install
mkdir -p debian/kgsl-dkms/usr/src/kgsl-$(DEB_VERSION_UPSTREAM)
find . -path ./debian -prune -o -path ./.pc -prune -o -path ./.git -prune -o -path ./.github -prune -o -print0|cpio -0p debian/kgsl-dkms/usr/src/kgsl-$(DEB_VERSION_UPSTREAM)/
# modprobe options + softdep: pass skip_gpu=1 to msm so the DRM driver
# does not claim the GPU, then pull in msm_kgsl via softdep post.
# Installed to /usr/lib/modprobe.d/ (not /etc/) so it is treated as a
# regular package file and removed automatically on 'dpkg --remove',
# enabling clean msm/kgsl switching without requiring --purge.
# initramfs-tools includes /usr/lib/modprobe.d/ in the initramfs, so
# the options and softdep are active during early boot.
mkdir -p debian/kgsl-dkms/usr/lib/modprobe.d
install -m 644 debian/modprobe.d/kgsl-dkms.conf debian/kgsl-dkms/usr/lib/modprobe.d/kgsl-dkms.conf
# Auto-load kgsl via a dedicated systemd service (modules-load.d triggers
# a modprobe SEGV on this platform, so we use a service with exit 0 instead)
mkdir -p debian/kgsl-dkms/usr/lib/systemd/system
install -m 644 debian/kgsl-dkms.service debian/kgsl-dkms/usr/lib/systemd/system/kgsl-dkms.service
mkdir -p debian/kgsl-dkms/usr/lib/kgsl-dkms
install -m 755 debian/kgsl-load.sh debian/kgsl-dkms/usr/lib/kgsl-dkms/kgsl-load.sh
find . -path ./debian -prune -o -path ./.pc -prune -o -path ./.git -prune -o -path ./.github -prune -o -path ./.gitignore -prune -o -print0|cpio -0p debian/kgsl-dkms/usr/src/kgsl-$(DEB_VERSION_UPSTREAM)/

override_dh_auto_clean override_dh_auto_build override_dh_auto_test override_dh_auto_install:
1 change: 1 addition & 0 deletions debian/source/options
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extend-diff-ignore = ^\.github(/|$)
7 changes: 7 additions & 0 deletions debian/tree/usr/share/initramfs-tools/hooks/kgsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

set -e

. /usr/share/initramfs-tools/hook-functions

manual_add_modules msm_kgsl