[ELDK] building .ko objects

Price, John @ SDS john.p.price at l-3com.com
Fri Apr 25 18:45:29 CEST 2008


 
>This is fine. Remember you can avoid having to pass the ARCH and
>CROSS_COMPILE if you set them once using export:
>$ export ARCH=powerpc
>$ export CROSS_COMPILE=ppc_4xx-

Ok, I did have CROSS_COMPILE but not ARCH set in the environment.

>Yes, but please note that all these features are standard Linux features
>and are not specific to the Denx kernel tree, so this is really of topic
>here.

Ok, this is all very new to me, I do not yet know the boundaries.

[root at ma-dhcp-125 kobject]# cat Makefile
obj-m += kobject-example.o kset-example.o
[root at ma-dhcp-125 kobject]# printenv ARCH
powerpc
[root at ma-dhcp-125 kobject]# printenv CROSS_COMPILE
ppc_4xx-
[root at ma-dhcp-125 kobject]# make -C /data/denxSrc/linux-2.6-denx M=`pwd` modules
make: Entering directory `/data/denxSrc/linux-2.6-denx'
  CC [M]  /data/denxSrc/linux-2.6-denx/samples/kobject/kobject-example.o
  CC [M]  /data/denxSrc/linux-2.6-denx/samples/kobject/kset-example.o
  Building modules, stage 2.
  MODPOST 2 modules
  CC      /data/denxSrc/linux-2.6-denx/samples/kobject/kobject-example.mod.o
  LD [M]  /data/denxSrc/linux-2.6-denx/samples/kobject/kobject-example.ko
  CC      /data/denxSrc/linux-2.6-denx/samples/kobject/kset-example.mod.o
  LD [M]  /data/denxSrc/linux-2.6-denx/samples/kobject/kset-example.ko
make: Leaving directory `/data/denxSrc/linux-2.6-denx'
[root at ma-dhcp-125 kobject]# ls
kobject-example.c      kobject-example.o   kset-example.mod.o  MakefileSave
kobject-example.ko     kset-example.c      kset-example.o      modules.order
kobject-example.mod.c  kset-example.ko     Makefile            Module.symvers
kobject-example.mod.o  kset-example.mod.c  MakefileM
[root at ma-dhcp-125 kobject]#                                


Thank	you very much Markus.


Best regards,


More information about the eldk mailing list