<p dir="ltr">Ker<br>
On Dec 4, 2013 3:42 PM, "Sudip Mukherjee" <<a href="mailto:sudipm.mukherjee@gmail.com">sudipm.mukherjee@gmail.com</a>> wrote:<br>
><br>
> On Wed, Dec 4, 2013 at 2:14 PM, Anil Joshi <<a href="mailto:aj27744@gmail.com">aj27744@gmail.com</a>> wrote:<br>
>><br>
>> Thanks <br>
>> i did that now i am getting this error<br>
>> make<br>
>> make -C /lib/modules/2.6.32-220.el6.x86_64/build M=/root/Desktop/exp1 modules<br>
>> make: *** /lib/modules/2.6.32-220.el6.x86_64/build: No such file or directory. Stop.<br>
>><br>
>><br>
>><br>
>><br>
>> On Wed, Dec 4, 2013 at 2:13 PM, Robert Clove <<a href="mailto:cloverobert@gmail.com">cloverobert@gmail.com</a>> wrote:<br>
>>><br>
>>> Add a tab after obj-m (tab) :=abc.o and after make too<br>
>>><br>
>>><br>
>>> On Wed, Dec 4, 2013 at 2:04 PM, Anil Joshi <<a href="mailto:aj27744@gmail.com">aj27744@gmail.com</a>> wrote:<br>
>>>><br>
>>>> Hi All,<br>
>>>><br>
>>>> I have an make file like this<br>
>>>><br>
>>>> obj-m := abc.o<br>
>>>><br>
>>>> all:<br>
>>>> make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules<br>
>>>><br>
>>>> clean:<br>
>>>> make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean<br>
>>>><br>
>>>> when i do the make i am getting this error<br>
>>>><br>
>>>> make: Nothing to be done for `all'.<br>
>>>><br>
>>>> I am using centos 6.2<br>
>>>> uname -a<br>
>>>> 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<br>
>>>><br>
>>>><br>
>>>> Whats the error?<br>
><br>
> Hi Anil<br>
> Please do not top post. <br>
> 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. <br>
><br>
> Regards<br>
> Sudip<br>
><br>
><br>
> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
></p>
<p dir="ltr">CentOs follows a slight different approach and the steps are documented here : <a href="http://wiki.centos.org/HowTos/BuildingKernelModules">http://wiki.centos.org/HowTos/BuildingKernelModules</a> . Hope it helps.</p>
<p dir="ltr">Regards,<br>
Navkamal Rakra</p>