trouble compiling modules against custom fedora core 4 kernel
// BACKGROUND //
ok, i'm trying to install ndiswrapper on my laptop, which is running Fedora Core 4 (via the upgrade feature, from Fedora Core 3) so i can use my linksys WPC54Gv2 wireless card (PCMCIA). i can create the kernel module and userspace utilities for it by using a simple 'make rpm'. however, the fedora core kernels are configured w/ 4K stacks instead of 8K stacks. this is a problem for ndiswrapper (which allows the use of windows wireless card drivers in linux) because many windows drivers won't work w/ 4K stacks. i assume this is my problem, as everything goes well until i load the module w/ the card in (freezes during runtime, kernel panics at boot time).
so, i got the src.rpm for the kernel and recreated the source tree as instructed in the fedora core 4 release notes. used their config and changed the stack size option (which is under Kernel Hacking). briefly:
rpm -Uvh kernel-2.6.12-1.1398_FC4.src.rpm
rpmbuild -bp --target $(arch) kernel-2.6.spec
<go to source dir, get i686 config file into .config>
make menuconfig (changed stack size only)
this was all done on my desktop (running Fedora Core 3). moved the kernel rpm over to my laptop and installed. i can now boot this kernel (2.6.12-prep) w/out problems.
now, if i try to 'make rpm' for ndiswrapper, it says it needs /lib/modules/2.6.12-prep/build/Makefile, which doesn't exist. i've tried making this directory a symlink to the expanded source tree, which clearly has the makefile (the tree is present on the laptop, there just wasn't enough disk space to build it there).
when i first installed fedora core 4, i couldn't build against the current kernel due to the same error. this was fixed by installing the corresponding kernel-devel rpm.
i've examined the structure of the existing /lib/modules directories and attempted to mimic them manually (by creating symlinks), but have been unsuccessful.
// QUESTION //
what do i need to do to be able to compile the module against this new kernel that has no kernel-devel rpm to go with it? can i create this rpm somehow? can the appropriate /lib/modules directory be created from the source tree, src.rpm, or otherwise?
any advice, including pointers to resources, will be greatly appreciated.