Need help compiling one module from source file

Howdy,
I'm trying to patch cx23885-core.c and build the cx23885 kernel module used by my Hauppauge WinTV-QuadHD pcie tuner, as instructed by Sean Young:
https://www.spinics.net/lists/linux-med ... 68027.html
I've applied the patch and replaced /usr/src/kernel-5.5.15-3.mga7/drivers/media/pci/cx23885/cx23885-core.c with the patched version.
Searching online for a recipe and finding https://wiki.archlinux.org/index.php/Co ... ompilation , I've started by editing /usr/src/kernel-5.5.15-3.mga7/Makefile to try to get EXTRAVERSION what it needs to be, as above.
Now, I don't know if that is correct and don't know the next steps. I also found, by searching here, several posts with Stephane's looking closest to what I'm trying to do: viewtopic.php?f=8&t=11608&p=67657
So far, modest changes to cx23885-core.c and a Makefile that can be reverted and I think it's time to ask for help!
Thanks.
- Code: Select all
[rolf@x570i kernel-5.5.15-3.mga7]$ uname -r
5.5.15-desktop-3.mga7
[rolf@x570i kernel-5.5.15-3.mga7]$ pwd
/usr/src/kernel-5.5.15-3.mga7
[rolf@x570i kernel-5.5.15-3.mga7]$ head Makefile
# SPDX-License-Identifier: GPL-2.0
VERSION = 5
PATCHLEVEL = 5
SUBLEVEL = 15
EXTRAVERSION = -desktop-3.mga7
NAME = Kleptomaniac Octopus
# *DOCUMENTATION*
I'm trying to patch cx23885-core.c and build the cx23885 kernel module used by my Hauppauge WinTV-QuadHD pcie tuner, as instructed by Sean Young:
https://www.spinics.net/lists/linux-med ... 68027.html
I've applied the patch and replaced /usr/src/kernel-5.5.15-3.mga7/drivers/media/pci/cx23885/cx23885-core.c with the patched version.
Searching online for a recipe and finding https://wiki.archlinux.org/index.php/Co ... ompilation , I've started by editing /usr/src/kernel-5.5.15-3.mga7/Makefile to try to get EXTRAVERSION what it needs to be, as above.
Now, I don't know if that is correct and don't know the next steps. I also found, by searching here, several posts with Stephane's looking closest to what I'm trying to do: viewtopic.php?f=8&t=11608&p=67657
So far, modest changes to cx23885-core.c and a Makefile that can be reverted and I think it's time to ask for help!
Thanks.