Now that I have a bare-bones LFS (6.7) system running, I've begun to use it to learn the rudiments of kernel module programming, using the Linux Kernel Programming Guide (May 2007) as a guide. But the "Hello, World" project fails to build, right off the bat. In case this is the right forum for raising this question, here is what I get:
Makefile: obj−m += hello−1.o all: make −C /lib/modules/$(shell uname −r)/build M=$(PWD) modules clean: make −C /lib/modules/$(shell uname −r)/build M=$(PWD) clean These errors are hand-copied, since I'm doing the work in the LFS console: First I get a warning: WARNING: Symbol version dump /sources/linux-2.6.35.4/Module symvers is missing; modules will have no dependencies and modversions. Then a real error: scripts/Makefile.build:235: target '/home/daryl/kernel/hello-1/hello-1.c' doesn't match the target pattern And right after the 'MODPOST 0 modules' output line, I get: /bin/sh: scripts/mod/modpost: No such file or directory. The warning suggests I should reconfigure and rebuild my kernel, but I'm not sure, and I'm definitely not sure how I should change the configuration settings. The rest, I have no clue about. Is there someone on this list who can point me in the right direction? Is there a better forum to raise the question? -- Daryl Lee -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page