Skip to content

Video.qclinux.main#67

Open
renjiang-qti wants to merge 2 commits intoqualcomm-linux:video.qclinux.mainfrom
renjiang-qti:video.qclinux.main
Open

Video.qclinux.main#67
renjiang-qti wants to merge 2 commits intoqualcomm-linux:video.qclinux.mainfrom
renjiang-qti:video.qclinux.main

Conversation

@renjiang-qti
Copy link

add debian files and script files to do debian package with DKMS

Add Debian packaging files to build the MSM VIDC video driver as a DKMS
overlay package.

This change introduces:
- Initial debian/ packaging (control, rules, changelog, copyright)
- DKMS configuration for out-of-tree video kernel module
- Install rules to deploy driver sources under /usr/src for DKMS
- Support for multiple platforms via device tree compatible detection
- Unified build system with DKMS build wrapper
- Automatic module build on install using /lib/modules/${kernelver}/build

The DKMS package enables on-target kernel module compilation and supports
multiple ARM64 platforms with isolated, overlay-based builds.

Change-Id: I8ac6a76a63f697984a9c8a7cdd73f7c0c1755b51
Signed-off-by: Renjiang Han <renjiang@qti.qualcomm.com>
- Add comprehensive DKMS packaging scripts with apport error handling.
- Implement automatic recovery system for DKMS failures.
- Add smart driver management with rollback capabilities.
- Support custom kernels (dirty/rc versions) with compiler mismatch
handling.
- Add overlay flag system for proper installation cleanup.
- Include cross-compilation support and development tools.
- Ensure path consistency across all installation methods.

Scripts: detect-platform.sh, set-build-env.sh, dkms-build-wrapper.sh,
cross-compile.sh, build-package.sh, cleanup.sh.
Docs: comprehensive README.md with troubleshooting guide.

Usage:
-------------
- Build DKMS package.
* (cd overlay && ./build-package.sh).

- Install on target.
* sudo dpkg -i package.

- Remove old installation.
* sudo dkms remove video-driver/1.0.0 --all.
* sudo dpkg -r video-driver-dkms.

- Develop/test cross-compile.
* cross-compile.sh --compatible qcom,sa8775p-iris --arch arm64.

Change-Id: Ic2c64652c5ae9353360f24d7ad7406e4a4b3de83
Signed-off-by: Renjiang Han <renjiang@qti.qualcomm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant