LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Building a module within a kernel (https://www.linuxquestions.org/questions/linux-general-1/building-a-module-within-a-kernel-125034/)

brianvdc 12-11-2003 05:35 PM

Building a module within a kernel
 
I recently received a patch from redhat to fix a bug in their code. The patch modified the following file.

.....drivers/net/ppp_async.c

Now I don't know what to do next. I need to rebuild the module (I assume), but I don't know what module it is and how to do it. I tried reading the documentation\modules.txt file for info but it was way over my head. Any help would be appreciated.

Thanks,
Brian

Tinkster 12-11-2003 08:13 PM

depending on what the patchfile looks like
you probably
cd /usr/src/linux/drivers/net
patch -p1 < path/to/your/patch
make
cp ppp_async.o /lib/modules/<kernel-versionmumble>/kernel/drivers/net/.




Cheers,
Tink


All times are GMT -5. The time now is 01:54 PM.