make: Nothing to be done for `default'.
Hi,
I am newbie to linux device drivers, while i am trying simle hello.c code i have this problem. hello.c: #include<linux/init.h> #include <linux/module.h> #include<linux/kernel.h> MODULE_LICENSE(" Dual BSD/GPL "); static int __init init_hello(void) { printk("<1>Hello World\n"); return 0; } static void __exit exit_hello(void) { printk("<1>Goodbye,cruel world\n"); } module_init(init_hello); module_exit(exit_hello); Makefile for hello.c is obj-m := hello.o KDIR := /lib/modules/$(2.6.29.4-167.fc11.i686.PAE)/build PWD := $(/home/purush/New) default: $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules i did make in root only, but it saying make: Nothing to be done for `default'. |
See if the Makefile in the following link helps you somehow:
http://www.linuxquestions.org/questi...2/#post3766424 and write your code in code tags to make it easier for others to read. |
Personally I would have to say that is one of the most complicated "simple" hello programs I have seen, but each to their own I guess.
|
Code:
obj-m += moduleName.o make: Nothing to be done for `all'. what i have to give in shell? make is only enough? or something else..... |
Did you replace the moduleName.o with your file name ?
Kindly paste the **exact** Makefile code here: |
Code:
obj-m += hello.o after that i gave make o/p is : make: Nothing to be done for `all'. |
I told you only to change the Module name, keep the remaining things same.:
Code:
obj-m += hello.o |
yaa.both are in same directory
still i am getting same make: Nothing to be done for `all'. i am compiling in fc11.. |
and you have written the Makefile exactly same as in post number 7 ?
|
exactly
copied and pasted |
please anyone help me
|
Hello,
I got it, When you copy paste the Makefile from post 7, make sure you delete the spaces shown in RED below by Backspace key and then press TAB Code:
obj-m += hello.o |
i thought of saying it is in red colour.......
Thanx a lot this is my first device driver |
You are welcome :)
So it has compiled finally ? Makefiles are TAB dependent ! |
Quote:
bye |
All times are GMT -5. The time now is 11:28 AM. |