The following error occurs when compiling a simple driver hello. C:
[Email protected]: ~ /Workspace/project/driver/Hello $ make
Make-C/home/Mach/workspace/linux-3.8_webee210v2 M =/home/Mach/workspace/project/driver/Hello modules arch = arm cross_compile = arm-Linux-
Make [1]: Entering directory '/home/Mach/workspace/linux-3.8_webee210v2'
Make [2]: * ** you can create the target "/home/Mach/workspace/project/driver/Hello/webee210_hello.o" for "/home/Mach/workspace/project/driver/Hello/" without rules/ webee210_hello.c ". Stop.
Make [1]: *** [_ module _/home/Mach/workspace/project/driver/Hello] Error 2
Make [1]: Leaving directory '/home/Mach/workspace/linux-3.8_webee210v2'
Make: *** [all] Error 2
When I see such a prompt, I know it must be a syntax problem. Read it carefully. c file. Check the MAKEFILE file carefully. No errors are found. Later, note that webee210_hello.o in makefile is in lower case, while webee210_hello.c's "W" is in upper case, so it is changed to lower case and compiled, actually passed.
It's really speechless. Let's give it a reference.
Make [2]: *** you can create the target "/home/Hello. c" for "/home/Hello. O" without rules ". Stop.