extensions in a non-modular kernel
Hello,
Is there any easy way to compile extensions into a non-modular kernel?
I've found in Jan's "An Introduction to Xtables-addons" that this is possible, but can you please give me some more info how to do it? What do you mean by "editing some kernel Makefile to descend into xtables-addons/extensions" ?
Wiktor
Quoted 1 line · Wiktor Kolodziej
Is there any easy way to compile extensions into a non-modular kernel?
Depends on the definition of easy.
Quoted 4 lines
I've found in Jan's "An Introduction to Xtables-addons" that this is possible, but can you please give me some more info how to do it? What do you mean by "editing some kernel
Makefileto descend into xtables-addons/extensions" ?
ln -s ~/xtables-addons ~/linux/net/netfilter/
echo "obj-y += xtables-addons/extensions/"
>>~/linux/net/netfilter/Makefile
Granted it does not stop there, one needs to modify extensions/Kbuild because it depends on symbols from mconfig (oh my) which would need to be exchanged to obj-y or something.
2009/12/8 Jan Engelhardt <[email protected]>:
Quoted 11 lines · Wiktor Kolodziej
Quoted 2 lines
Is there any easy way to compile extensions into a non-modular kernel?
Depends on the definition of easy.
Quoted 4 lines
I've found in Jan's "An Introduction to Xtables-addons" that this is possible, but can you please give me some more info how to do it? What do you mean by "editing some kernel
Makefileto descend into xtables-addons/extensions" ?
Quoted 7 lines
ln -s ~/xtables-addons ~/linux/net/netfilter/
echo "obj-y += xtables-addons/extensions/"
>>~/linux/net/netfilter/MakefileGranted it does not stop there, one needs to modify extensions/Kbuild because it depends on symbols from mconfig (oh my) which would need to be exchanged to obj-y or something.
Thanks for helping with that.
I've created a script that does it automatically.
I'm attaching it if somebody needs to quickly build a non-modular kernel with xtables-addons.
Wiktor.