diff options
author | Denys Fedoryshchenko <denys.f@collabora.com> | 2024-08-18 15:35:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-18 15:35:54 +0300 |
commit | 2e1891d4ee9ceba4d4c1d9235a8b456fd0b390c1 (patch) | |
tree | 6caedc5d1b5d1e96bb3d623a4d60735c03a18333 /drivers/dkms | |
parent | 42f3974a543fa0ba06092538bd338e0a641ea17c (diff) | |
parent | d9fc4be48641bc7116e4dacbdb5e3115c3181a89 (diff) | |
download | accel-ppp-2e1891d4ee9ceba4d4c1d9235a8b456fd0b390c1.tar.gz accel-ppp-2e1891d4ee9ceba4d4c1d9235a8b456fd0b390c1.zip |
Merge pull request #145 from svlobanov/dkms
build: add dkms support for ipoe and vlan_mon drivers, ci optimizations
Diffstat (limited to 'drivers/dkms')
-rw-r--r-- | drivers/dkms/ipoe/README.md | 10 | ||||
-rw-r--r-- | drivers/dkms/ipoe/debian/accel-ppp-ipoe-dkms.dkms | 5 | ||||
-rw-r--r-- | drivers/dkms/ipoe/debian/changelog | 5 | ||||
-rw-r--r-- | drivers/dkms/ipoe/debian/compat | 1 | ||||
-rw-r--r-- | drivers/dkms/ipoe/debian/control | 11 | ||||
-rwxr-xr-x | drivers/dkms/ipoe/debian/rules | 18 | ||||
l--------- | drivers/dkms/ipoe/src | 1 | ||||
-rw-r--r-- | drivers/dkms/vlan_mon/README.md | 10 | ||||
-rw-r--r-- | drivers/dkms/vlan_mon/debian/accel-ppp-vlan-mon-dkms.dkms | 5 | ||||
-rw-r--r-- | drivers/dkms/vlan_mon/debian/changelog | 5 | ||||
-rw-r--r-- | drivers/dkms/vlan_mon/debian/compat | 1 | ||||
-rw-r--r-- | drivers/dkms/vlan_mon/debian/control | 11 | ||||
-rwxr-xr-x | drivers/dkms/vlan_mon/debian/rules | 18 | ||||
l--------- | drivers/dkms/vlan_mon/src | 1 |
14 files changed, 102 insertions, 0 deletions
diff --git a/drivers/dkms/ipoe/README.md b/drivers/dkms/ipoe/README.md new file mode 100644 index 00000000..6b582e2a --- /dev/null +++ b/drivers/dkms/ipoe/README.md @@ -0,0 +1,10 @@ +## Building Debian DKMS pacakge + +Install deb packages: dkms, debhelper and devscripts. For Debian >= 12 and Ubuntu >=24.04 it is also required to install dh-dkms package. + +Build accel-ppp without drivers, then from this level directory, execute: + +``` +cp ../../../build/version.h src/ +debuild -us -uc -tc -b +``` diff --git a/drivers/dkms/ipoe/debian/accel-ppp-ipoe-dkms.dkms b/drivers/dkms/ipoe/debian/accel-ppp-ipoe-dkms.dkms new file mode 100644 index 00000000..47543fe5 --- /dev/null +++ b/drivers/dkms/ipoe/debian/accel-ppp-ipoe-dkms.dkms @@ -0,0 +1,5 @@ +PACKAGE_NAME="accel-ppp-ipoe" +PACKAGE_VERSION="#MODULE_VERSION" +AUTOINSTALL=yes +BUILT_MODULE_NAME="ipoe" +DEST_MODULE_LOCATION="/updates/dkms" diff --git a/drivers/dkms/ipoe/debian/changelog b/drivers/dkms/ipoe/debian/changelog new file mode 100644 index 00000000..6c003b46 --- /dev/null +++ b/drivers/dkms/ipoe/debian/changelog @@ -0,0 +1,5 @@ +accel-ppp-ipoe-dkms (1.13.0) unstable; urgency=low + + * First ipoe dkms package + + -- Sergey V. Lobanov <sergey@lobanov.in> Wed, 29 May 2024 11:30:13 +0200 diff --git a/drivers/dkms/ipoe/debian/compat b/drivers/dkms/ipoe/debian/compat new file mode 100644 index 00000000..f599e28b --- /dev/null +++ b/drivers/dkms/ipoe/debian/compat @@ -0,0 +1 @@ +10 diff --git a/drivers/dkms/ipoe/debian/control b/drivers/dkms/ipoe/debian/control new file mode 100644 index 00000000..def5d0ab --- /dev/null +++ b/drivers/dkms/ipoe/debian/control @@ -0,0 +1,11 @@ +Source: accel-ppp-ipoe-dkms +Maintainer: Dmitry Kozlov <xeb@mail.ru> +Build-Depends: debhelper (>= 10), dkms +Homepage: https://www.accel-ppp.io/ + +Package: accel-ppp-ipoe-dkms +Architecture: all +Priority: optional +Section: kernel +Depends: dkms (>= 1.95), linux-headers-686-pae | linux-headers-amd64 | linux-headers-generic | linux-headers, ${misc:Depends} +Description: DKMS source for the accel-ppp-ipoe driver diff --git a/drivers/dkms/ipoe/debian/rules b/drivers/dkms/ipoe/debian/rules new file mode 100755 index 00000000..704a41a8 --- /dev/null +++ b/drivers/dkms/ipoe/debian/rules @@ -0,0 +1,18 @@ +#!/usr/bin/make -f + +include /usr/share/dpkg/pkg-info.mk + +%: + dh $@ --with dkms + +override_dh_install: + dh_install src/* usr/src/accel-ppp-ipoe-$(DEB_VERSION_UPSTREAM)/ + +override_dh_dkms: + dh_dkms -V $(DEB_VERSION_UPSTREAM) + +override_dh_auto_configure: +override_dh_auto_build: +override_dh_auto_test: +override_dh_auto_install: +override_dh_auto_clean: diff --git a/drivers/dkms/ipoe/src b/drivers/dkms/ipoe/src new file mode 120000 index 00000000..7df6b81b --- /dev/null +++ b/drivers/dkms/ipoe/src @@ -0,0 +1 @@ +../../ipoe
\ No newline at end of file diff --git a/drivers/dkms/vlan_mon/README.md b/drivers/dkms/vlan_mon/README.md new file mode 100644 index 00000000..6b582e2a --- /dev/null +++ b/drivers/dkms/vlan_mon/README.md @@ -0,0 +1,10 @@ +## Building Debian DKMS pacakge + +Install deb packages: dkms, debhelper and devscripts. For Debian >= 12 and Ubuntu >=24.04 it is also required to install dh-dkms package. + +Build accel-ppp without drivers, then from this level directory, execute: + +``` +cp ../../../build/version.h src/ +debuild -us -uc -tc -b +``` diff --git a/drivers/dkms/vlan_mon/debian/accel-ppp-vlan-mon-dkms.dkms b/drivers/dkms/vlan_mon/debian/accel-ppp-vlan-mon-dkms.dkms new file mode 100644 index 00000000..c3ce430b --- /dev/null +++ b/drivers/dkms/vlan_mon/debian/accel-ppp-vlan-mon-dkms.dkms @@ -0,0 +1,5 @@ +PACKAGE_NAME="accel-ppp-vlan-mon" +PACKAGE_VERSION="#MODULE_VERSION#" +AUTOINSTALL=yes +BUILT_MODULE_NAME="vlan_mon" +DEST_MODULE_LOCATION="/updates/dkms" diff --git a/drivers/dkms/vlan_mon/debian/changelog b/drivers/dkms/vlan_mon/debian/changelog new file mode 100644 index 00000000..ee4f7505 --- /dev/null +++ b/drivers/dkms/vlan_mon/debian/changelog @@ -0,0 +1,5 @@ +accel-ppp-vlan-mon-dkms (1.13.0) unstable; urgency=low + + * First vlan_mon dkms package + + -- Sergey V. Lobanov <sergey@lobanov.in> Wed, 29 May 2024 11:30:13 +0200 diff --git a/drivers/dkms/vlan_mon/debian/compat b/drivers/dkms/vlan_mon/debian/compat new file mode 100644 index 00000000..f599e28b --- /dev/null +++ b/drivers/dkms/vlan_mon/debian/compat @@ -0,0 +1 @@ +10 diff --git a/drivers/dkms/vlan_mon/debian/control b/drivers/dkms/vlan_mon/debian/control new file mode 100644 index 00000000..32795370 --- /dev/null +++ b/drivers/dkms/vlan_mon/debian/control @@ -0,0 +1,11 @@ +Source: accel-ppp-vlan-mon-dkms +Maintainer: Dmitry Kozlov <xeb@mail.ru> +Build-Depends: debhelper (>= 10), dkms +Homepage: https://www.accel-ppp.io/ + +Package: accel-ppp-vlan-mon-dkms +Architecture: all +Priority: optional +Section: kernel +Depends: dkms (>= 1.95), linux-headers-686-pae | linux-headers-amd64 | linux-headers-generic | linux-headers, ${misc:Depends} +Description: DKMS source for the accel-ppp-vlan-mon driver diff --git a/drivers/dkms/vlan_mon/debian/rules b/drivers/dkms/vlan_mon/debian/rules new file mode 100755 index 00000000..e02f6770 --- /dev/null +++ b/drivers/dkms/vlan_mon/debian/rules @@ -0,0 +1,18 @@ +#!/usr/bin/make -f + +include /usr/share/dpkg/pkg-info.mk + +%: + dh $@ --with dkms + +override_dh_install: + dh_install src/* usr/src/accel-ppp-vlan-mon-$(DEB_VERSION_UPSTREAM)/ + +override_dh_dkms: + dh_dkms -V $(DEB_VERSION_UPSTREAM) + +override_dh_auto_configure: +override_dh_auto_build: +override_dh_auto_test: +override_dh_auto_install: +override_dh_auto_clean: diff --git a/drivers/dkms/vlan_mon/src b/drivers/dkms/vlan_mon/src new file mode 120000 index 00000000..727f1d5c --- /dev/null +++ b/drivers/dkms/vlan_mon/src @@ -0,0 +1 @@ +../../vlan_mon
\ No newline at end of file |