single module compile in clean source tree
I'm trying to compile a single kernel module in a clean kernel source tree and just can't seem to get it right.
After compiling the kernel (2.6.10) I cleaned the source tree with make mrproper.
Now I'm trying to add just one fs driver module (ntfs.ko), so I copy the saved .config file into the source tree and do a make menuconfig.
I select ntfs support as M and save the changes.
The path to the kernel sources is ~/projects/linux-2.6.10 and I'm working in the source root directory.
make help shows a make dir target and this is what I use.
Here's the output from the command:
SPLIT include/linux/autoconf.h -> include/config/*
SYMLINK include/asm -> include/asm-i386
CC [M] fs/ntfs/aops.o
CC [M] fs/ntfs/attrib.o
CC [M] fs/ntfs/collate.o
CC [M] fs/ntfs/compress.o
CC [M] fs/ntfs/debug.o
CC [M] fs/ntfs/dir.o
CC [M] fs/ntfs/file.o
CC [M] fs/ntfs/index.o
CC [M] fs/ntfs/inode.o
CC [M] fs/ntfs/mft.o
CC [M] fs/ntfs/mst.o
CC [M] fs/ntfs/namei.o
CC [M] fs/ntfs/runlist.o
CC [M] fs/ntfs/super.o
CC [M] fs/ntfs/sysctl.o
CC [M] fs/ntfs/unistr.o
CC [M] fs/ntfs/upcase.o
CC [M] fs/ntfs/bitmap.o
CC [M] fs/ntfs/lcnalloc.o
CC [M] fs/ntfs/logfile.o
CC [M] fs/ntfs/quota.o
LD [M] fs/ntfs/ntfs.o
/bin/sh: .tmp_versions/ntfs.mod: No such file or directory
A look inside the fs/ntfs directory shows the .tmp_versions dir as well as the ntfs.mod file in it is there.
Unfortunately the kernel makefile is still indistinguishable from magic to me.