From mboxrd@z Thu Jan 1 00:00:00 1970 From: murtuja bharmal Subject: Linux 2.6 kernel module compilation without using KBUILD Date: Tue, 27 Nov 2007 22:11:20 -0800 (PST) Message-ID: <329179.44630.qm@web36711.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="windows-1252" To: linux-admin@vger.kernel.org Hello All, =20 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=20 KBUILD_VERBOSE=3D1. =20 If we look at 2.6 kernel module building process. =20 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".=20 3. Running Script "scripts/mod/modpost" to create "hello.mod.c" using =93hello.o=94. 4. gcc is making "hello.mod.o" after compiling=20 "hello-mod.c" file. 5. finally "ld" is linking "hello.o" and "hello.mod.o" and making "hello.ko".=20 =20 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=94. =20 Do we have any document which describe how to make kernel module without using KBUILD. =20 Any pointer of information is very helpful for me. =20 Thanks=20 Murtuja Bharmal _________________________________________________________________= ___________________ Be a better sports nut! Let your teams follow you=20 with Yahoo Mobile. Try it now. http://mobile.yahoo.com/sports;_ylt=3DA= t9_qDKvtAbMuh1G1SQtBI7ntAcJ - To unsubscribe from this list: send the line "unsubscribe linux-admin" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html