[ELDK] building .ko objects
Price, John @ SDS
john.p.price at l-3com.com
Wed Apr 23 22:57:40 CEST 2008
Hi, I've been trying to build an external kernel object file
unsuccessfully. I have read 6.2 in the DULG and the
Documentation/kbuild/modules.txt and makefiles.txt.
What I try to do is cd to the samples/kobject directory from the top of
the kernel source tree. I saved the original Makefile and edited it to
look like below;
[root at ma-dhcp-125 kobject]# cat Makefile
obj-m: += kobject-example.o kset-example.o
Then I typed the following line at the prompt and saw;
[root at ma-dhcp-125 kobject]# pwd
/data/denxSrc/linux-2.6-denx/samples/kobject
[root at ma-dhcp-125 kobject]# make ARCH=powerpc CROSS_COMPILE=ppc_4xx- -C
/data/denxSrc/linux-2.6-denx M=`pwd`
make: Entering directory `/data/denxSrc/linux-2.6-denx'
Building modules, stage 2.
MODPOST 0 modules
make: Leaving directory `/data/denxSrc/linux-2.6-denx'
[root at ma-dhcp-125 kobject]# ls
kobject-example.c Makefile modules.order
kset-example.c MakefileSave Module.symvers
It looks as though it never compiled the source files into object files
then into ko files. However I see two new files; modules.order and
Module.symvers.
I want to be able to go to a directory and just builid a *.ko file that
I can then tftp over to my evaluation board, load with insmod.
The kernel config has enable loadable modules.
What am I missing?
thanks
John Price <john.p.price at l-3com.com
<blocked::mailto:john.p.price at l-3com.com> >
781-970-1743
L-3 Communications
Security & Detection Systems Division,
10E Commerce Way, Woburn, MA 01801
More information about the eldk
mailing list