Linux 2.6 kernel module compilation without using KBUILD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello All,
   
I want to compile external linux kernel module without
using KBUILD.
I tried to find out whole process of kernel module
compilation using KBUILD after enabling flag 
KBUILD_VERBOSE=1.
   
If we look at 2.6 kernel module building process.
   
1. gcc is making ".hello.o.d" and ".tmp_hello.o"
   from "hello.c" file.
2. Creating "hello.o" file using ".hello.o.d"
   and ".tmp_hello.o". 
3. Running Script "scripts/mod/modpost" to
   create "hello.mod.c" using ?hello.o?.
4. gcc is making "hello.mod.o" after compiling 
   "hello-mod.c" file.
5. finally "ld" is linking "hello.o"
   and "hello.mod.o" and making "hello.ko". 
   
Step 2 of above process is not very much cleared, how
it is making hello-2.o from ".hello.o.d" and
".tmp_hello.o".

What is ".tmp_hello.o?.
   
Do we have any document which describe how to make
kernel module without using KBUILD.
   
Any pointer of information is very helpful for me.
   
Thanks 
Murtuja Bharmal



      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux