about pr_debug

lx lxlenovostar at gmail.com
Wed Jun 25 05:57:13 EDT 2014


Thank you. I fix it

EXTRA_CFLAGS += -DDEBUG


2014-06-25 17:50 GMT+08:00 Varka Bhadram <varkabhadram at gmail.com>:

>  On 06/25/2014 03:17 PM, lx wrote:
>
> thank you.
> But the Makefile is so simple and Not use "cc".
> #################################
>  obj-m   := task_01.o
>
>    CFLAGS_task_01.o := -DDEBUG
>
>   KDIR:=/lib/modules/`uname -r`/build
> PWD:=$(shell pwd)
>
>  default:
>     echo $KDIR
>     $(MAKE) -C $(KDIR) M=$(PWD) modules
>  #################################
>
>  So, how to add "CFLAGS"?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140625/f8403e98/attachment.html 


More information about the Kernelnewbies mailing list