Re: [Haifux] biulding drivers on linux2.6

2005-01-02 Thread Oron Peled
On Sunday 02 January 2005 08:36, yakoub abaya wrote:
 i don't understand how to build a simple driver i wrote
 i looked into  linux/Documentation/kbuild and read about makefile rules
 but what make command do i issue ?
 i tried :
 make  -C  /usr/src/linux SUBDIRS=$pwd modules

1. Using SUBDIRS= is still supported, but the new and prefered
   syntax for what you want is M=
2. It looks like your real error (unless you happen to use
   csh/tcsh), is writing $pwd (lower case) instead of $PWD.

-- 
Oron Peled Voice/Fax: +972-4-8228492
[EMAIL PROTECTED]  http://www.actcom.co.il/~oron
ICQ UIN: 16527398

First they ignore you, 
then they laugh at you, 
then they fight you, 
then you win. -- Gandhi

--
Haifa Linux Club Mailing List (http://www.haifux.org)
To unsub send an empty message to [EMAIL PROTECTED]




[Haifux] biulding drivers on linux2.6

2005-01-01 Thread yakoub abaya
i don't understand how to build a simple driver i wrote
i looked into  linux/Documentation/kbuild and read about makefile rules
but what make command do i issue ?
i tried :
   make  -C  /usr/src/linux SUBDIRS=$pwd modules
that is what is explained in the docs ,
but this command started building all kernel modules
since -C flag is given ,
which puzzles me why the Documentatin instructed to
issue such command when all i need is build only my module
i tried :
 make module_name
where my makefile is : obj-m :=module_name.o
but that gave errors about
: undefined reference to `printk'
--
Haifa Linux Club Mailing List (http://www.haifux.org)
To unsub send an empty message to [EMAIL PROTECTED]