Joined: Sep. 2005
||Posted: May 16 2006,13:05
patch -p1 -d linux-2.4.26 < knoppix-kernel.patch
'make dep' won't be enough to prepare sources for building some modules.
To correctly prepare sources for module building you need to begin to compile the kernel ie run 'make'. But you can cntrl-C very early in the process, just after the 'split' line in fact. All kernel source files needed for module building with then be correctly prepared.
I made a .uci out of my prepared sources with user.tar.gz placing a symlink from /opt/prepared_sources to /usr/src/linux-2.4.26 or something like that. As long as another .dsl has been installed first (so that mkwriteable has been run), the symlink will get placed on installing the uci. So I can mount the sources without risking maxing out my ramdisk.
I haven't posted it to the repo because:
1. I'm not convinced the resulting sources exactly match the running knoppix 2.4.26 kernel ie I'm not sure I trust the knoppix config file. If they don't, some modules built could be dangerously borked if they don't exactly match the running kernel.
2. A very few progs during compile seem to want the kernel sources to be writeable - I think that might be a hangover from the very early days of linux when, unless I'm mistaken, for example, some prog headers went into the kernel source directory.