Hi All, I have an make file like this obj-m := abc.o all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules clean: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean when i do the make i am getting this error *make: Nothing to be done for `all'.* *I am using centos 6.2uname -aLinux hwcentos2 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux* Whats the error? Regards Anil
Add a tab after obj-m (tab) :=abc.o and after make too On Wed, Dec 4, 2013 at 2:04 PM, Anil Joshi <aj27744@gmail.com> wrote:
Hi All,
I have an make file like this
obj-m := abc.o
all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
when i do the make i am getting this error
*make: Nothing to be done for `all'.*
*I am using centos 6.2uname -aLinux hwcentos2 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux * Whats the error?
Regards Anil
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Thanks i did that now i am getting this error make make -C /lib/modules/2.6.32-220.el6.x86_64/build M=/root/Desktop/exp1 modules make: *** /lib/modules/2.6.32-220.el6.x86_64/build: No such file or directory. Stop. On Wed, Dec 4, 2013 at 2:13 PM, Robert Clove <cloverobert@gmail.com> wrote:
Add a tab after obj-m (tab) :=abc.o and after make too
On Wed, Dec 4, 2013 at 2:04 PM, Anil Joshi <aj27744@gmail.com> wrote:
Hi All,
I have an make file like this
obj-m := abc.o
all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
when i do the make i am getting this error
*make: Nothing to be done for `all'.*
*I am using centos 6.2uname -aLinux hwcentos2 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux * Whats the error?
Regards Anil
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
On Wed, Dec 4, 2013 at 2:14 PM, Anil Joshi <aj27744@gmail.com> wrote:
Thanks i did that now i am getting this error make make -C /lib/modules/2.6.32-220.el6.x86_64/build M=/root/Desktop/exp1 modules make: *** /lib/modules/2.6.32-220.el6.x86_64/build: No such file or directory. Stop.
On Wed, Dec 4, 2013 at 2:13 PM, Robert Clove <cloverobert@gmail.com>wrote:
Add a tab after obj-m (tab) :=abc.o and after make too
On Wed, Dec 4, 2013 at 2:04 PM, Anil Joshi <aj27744@gmail.com> wrote:
Hi All,
I have an make file like this
obj-m := abc.o
all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
when i do the make i am getting this error
*make: Nothing to be done for `all'.*
*I am using centos 6.2uname -aLinux hwcentos2 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux * Whats the error?
Hi Anil Please do not top post. For your error , please verify if /lib/modules/2.6.32-220.el6.x86_64/build is really linking to the folder containing the kernel files.
Regards Sudip
Ker On Dec 4, 2013 3:42 PM, "Sudip Mukherjee" <sudipm.mukherjee@gmail.com> wrote:
On Wed, Dec 4, 2013 at 2:14 PM, Anil Joshi <aj27744@gmail.com> wrote:
Thanks i did that now i am getting this error make make -C /lib/modules/2.6.32-220.el6.x86_64/build M=/root/Desktop/exp1
modules
make: *** /lib/modules/2.6.32-220.el6.x86_64/build: No such file or directory. Stop.
On Wed, Dec 4, 2013 at 2:13 PM, Robert Clove <cloverobert@gmail.com> wrote:
Add a tab after obj-m (tab) :=abc.o and after make too
On Wed, Dec 4, 2013 at 2:04 PM, Anil Joshi <aj27744@gmail.com> wrote:
Hi All,
I have an make file like this
obj-m := abc.o
all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
when i do the make i am getting this error
make: Nothing to be done for `all'.
I am using centos 6.2 uname -a Linux hwcentos2 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT
2011 x86_64 x86_64 x86_64 GNU/Linux
Whats the error?
Hi Anil Please do not top post. For your error , please verify if /lib/modules/2.6.32-220.el6.x86_64/build is really linking to the folder containing the kernel files.
Regards Sudip
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
CentOs follows a slight different approach and the steps are documented here : http://wiki.centos.org/HowTos/BuildingKernelModules . Hope it helps. Regards, Navkamal Rakra
participants (4)
-
Anil Joshi -
Nav Kamal -
Robert Clove -
Sudip Mukherjee