thank you.
But the Makefile is so simple and Not use "cc".
#################################
obj-m := task_01.o
KDIR:=/lib/modules/`uname -r`/build
PWD:=$(shell pwd)
default:
echo $KDIR
$(MAKE) -C $(KDIR) M=$(PWD) modules
#################################
So, how to add "CFLAGS"?
2014-06-25 16:20 GMT+08:00 Bjørn Mork <bjorn@xxxxxxx>:
Varka Bhadram <varkabhadram@xxxxxxxxx> writes:
> refer this :https://www.kernel.org/doc/local/pr_debug.txt
That seems a little outdated since it doesn't mention the extremely
useful dynamic debug feature. So please read
https://www.kernel.org/doc/Documentation/dynamic-debug-howto.txt
as well.
The ability to dynamically switch on and off debug messages per callsite
is extremely useful. And it also enables you to switch on some extra
info you often want, like function names, without having to explictly
put them into every format string.
I recommend setting CONFIG_DYNAMIC_DEBUG and taking a look at
/sys/kernel/debug/dynamic_debug/control if you ever do any kernel
development.
Bjørn
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies