Skip to content

Commit

Permalink
kmod: make debian packages
Browse files Browse the repository at this point in the history
  • Loading branch information
shankerwangmiao committed Jan 28, 2024
1 parent 5c1d04c commit bff9bb3
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 0 deletions.
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
liblol-dkms (0.1.0) unstable; urgency=low

* Initial build

-- Miao Wang <shankerwangmiao@gmail.com> Sun, 28 Jan 2024 09:12:00 +0800
16 changes: 16 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Source: liblol-dkms
Section: kernel
Priority: extra
Maintainer: Miao Wang <shankerwangmiao@gmail.com>
Build-Depends: debhelper-compat (= 13),
dkms, dh-dkms,
Standards-Version: 4.6.2
Homepage: https://github.com/AOSC-Dev/la_ow_syscall

Package: liblol-dkms
Architecture: loong64
Depends: ${misc:Depends}, dkms
Conflicts: glibc
Description: Compatibility layer kmod for old world applications
This package contains a compatibility layer for old world
applications on new world loongarch64 platform.
1 change: 1 addition & 0 deletions debian/dkms
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dkms.conf
2 changes: 2 additions & 0 deletions debian/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/usr/src/la_ow_syscall-*/*
/usr/lib/modules-load.d/liblol.conf
2 changes: 2 additions & 0 deletions debian/kmod-autoload.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Load the la_ow_syscall kernel module for old-world compatibility.
la_ow_syscall
31 changes: 31 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

%:
dh $@ --with dkms

override_dh_auto_build:
make dkms.conf VERSION="#MODULE_VERSION#"

override_dh_auto_clean:
rm -rf dkms.conf

TMPDIR ?= debian/tmp

override_dh_auto_install:
install -Dvm644 \
Kbuild \
Makefile \
fsstat.c \
fsstat.h \
la_ow_syscall_main.c \
signal.c \
signal.h \
-t $(TMPDIR)/usr/src/la_ow_syscall-$(DEB_VERSION_UPSTREAM)
install -Dvm644 \
debian/kmod-autoload.conf \
$(TMPDIR)/usr/lib/modules-load.d/liblol.conf

override_dh_dkms:
dh_dkms -V $(DEB_VERSION_UPSTREAM)
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (native)

0 comments on commit bff9bb3

Please sign in to comment.