Skip to content

Commit

Permalink
Added DtPcieNw driver
Browse files Browse the repository at this point in the history
  • Loading branch information
lelegard committed Sep 10, 2023
1 parent 2ccfba1 commit 4bfff88
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Windows and Linux systems.
### Version identification

Currently, there are different device drivers in the LinuxSDK package named
`Dta`, `DtaNw`, `Dtu`, `DtPcie`. Each driver has a distinct version number.
`Dta`, `DtaNw`, `Dtu`, `DtPcie0`, `DtPcieNw`. Each driver has a distinct version number.
It is not possible to provide three different DKMS packages since these drivers
interact with each other in the kernel (at least `Dta` and `DtaNw`) and
contain common code. It is important that a consistent combination of drivers
Expand Down
6 changes: 3 additions & 3 deletions build-dektec-dkms
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,12 @@ clean-files()
load-drivers()
{
echo "=== Unload current drivers"
for drv in DtPcie DtaNw Dta Dtu; do
for drv in DtPcieNw DtPcie DtaNw Dta Dtu; do
sudo rmmod $drv 2>/dev/null
done

echo "=== Load new drivers"
for drv in Dtu Dta DtaNw DtPcie; do
for drv in Dtu Dta DtaNw DtPcie DtPcieNw; do
sudo modprobe $drv
done

Expand Down Expand Up @@ -308,7 +308,7 @@ fi
# Special uninstall operation.
if $UNINSTALL; then
verbose "removing dkms dektec/$VERSION"
sudo rmmod DtaNw Dta Dtu DtPcie
sudo rmmod DtaNw Dta Dtu DtPcieNw DtPcie
sudo dkms remove "dektec/$VERSION" --all
sudo rm -rf "$DKMS_INSTALL" /etc/udev/rules.d/51-dta.rules /etc/udev/rules.d/51-dtu.rules /etc/udev/rules.d/51-dtpcie.rules
clean-exit 0
Expand Down
1 change: 1 addition & 0 deletions config/Makefile.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ default:
$(MAKE) -C Drivers/DtaNw/Source/Linux
$(MAKE) -C Drivers/Dtu/Source/Linux
$(MAKE) -C Drivers/DtPcie/Source/Linux
$(MAKE) -C Drivers/DtPcieNw/Source/Linux

clean:
find . \( -name '.*.o.cmd' -o -name '.*.ko.cmd' -o -name '*.mod.c' -o -name '*.o' -o -name '.*.d' -o -name '*.ko' -o -name '.tmp_versions' -o -name 'modules.order' -o -name 'Module.symvers' \) -print0 | xargs -0 rm -rf
3 changes: 2 additions & 1 deletion config/dektec-dkms.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ Requires: elfutils-libelf-devel
%description
Provide the source code and DKMS setup for the kernel modules of the Dektec
device drivers. Each time the kernel is upgraded, the Dektec modules are
automatically recompiled. The provided drivers are Dta, DtaNw, Dtu, DtPcie.
automatically recompiled. The provided drivers are Dta, DtaNw, Dtu, DtPcie,
DtPcieNw.

Dektec is a manufacturer of PC add-on cards, USB devices, IP converters and
software for the professional digital-television market. Their products are
Expand Down
5 changes: 4 additions & 1 deletion config/dkms.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ PACKAGE_VERSION={{VERSION}}

MAKE="'make' KERNELDIR=/lib/modules/${kernelver}/build"
CLEAN="make clean"
REMAKE_INITRD=no
AUTOINSTALL=yes

BUILT_MODULE_NAME[0]=Dta
Expand All @@ -21,3 +20,7 @@ DEST_MODULE_LOCATION[2]=/kernel/drivers/misc
BUILT_MODULE_NAME[3]=DtPcie
BUILT_MODULE_LOCATION[3]=Drivers/DtPcie/Source/Linux
DEST_MODULE_LOCATION[3]=/kernel/drivers/misc

BUILT_MODULE_NAME[4]=DtPcieNw
BUILT_MODULE_LOCATION[4]=Drivers/DtPcieNw/Source/Linux
DEST_MODULE_LOCATION[4]=/kernel/drivers/misc
2 changes: 1 addition & 1 deletion config/postinst.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# QtlMovie post-installation script on Ubuntu and Debian systems.
# Dektec DKMS post-installation script on Ubuntu and Debian systems.

if [[ "$1" = "configure" ]]; then
# Fix file permissions and ownership.
Expand Down

0 comments on commit 4bfff88

Please sign in to comment.