Re: about pr_debug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you. I fix it 

EXTRA_CFLAGS += -DDEBUG


2014-06-25 17:50 GMT+08:00 Varka Bhadram <varkabhadram@xxxxxxxxx>:
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"?


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux