On Mon, 5 Nov 2001, Jonathan Khoo wrote: > I have a protocol (AF_XX) which I wanted to merge with the source tree > and recompile it as a kernel. > How can I do this? I mean besides creating the Makefile and .config, do > I need to modify any other files so that this new module can be compiled > together? .config file is automatically generated so, do not modify it. For adding a new protocol, create a directory, net/xx for example, and add your files there (af_xx.c etc.). You have to add something like this in net/Config.in: bool 'Protocol XX' CONFIG_XX if [ "$CONFIG_XX" = "y" ]; then # eventually, if you have source net/xx/Config.in # other things to # configure, specific to # your protocol You need also to modify net/Makefile by adding: subdir-$(CONFIG_XX) += xx and add something like this in net/xx/Makefile: O_TARGET := xx.o obj-y := af_xx.o include $(TOPDIR)/Rules.make You could also add something in Documentation/Configure.help for describing your the options you added. Read the files from Documentation/kbuild/ for more informations about configuration language and the Makefile structure. Good luck. -- Catalin _____________________________________________________________________ This message has been checked for all known viruses by the MessageLabs Virus Scanning Service. For further information visit http://www.messagelabs.com/stats.asp -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/