Commit c602bbdb authored by Federico Vaga's avatar Federico Vaga Committed by Alessandro Rubini

Makefile: add debug option

Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
Acked-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent bd857381
......@@ -16,6 +16,8 @@ GIT_VERSION = $(shell cd $(src); git describe --dirty --long --tags)
# WARNING: the line below doesn't work in-kernel if you compile with O=
ccflags-y += -I$(obj)/include/ -DGIT_VERSION=\"$(GIT_VERSION)\"
ccflags-$(CONFIG_ZIO_DEBUG) += -DDEBUG
all: modules tools
modules:
......
......@@ -3,6 +3,7 @@ LINUX ?= /lib/modules/$(shell uname -r)/build
GIT_VERSION = $(shell cd $(src); git describe --dirty --long --tags)
ccflags-y += -I$(obj)/../include/ -DGIT_VERSION=\"$(GIT_VERSION)\"
ccflags-$(CONFIG_ZIO_DEBUG) += -DDEBUG
# zio-buf-kmalloc.o is now part of zio-core
obj-m = zio-buf-vmalloc.o
......@@ -3,6 +3,7 @@ LINUX ?= /lib/modules/$(shell uname -r)/build
GIT_VERSION = $(shell cd $(src); git describe --dirty --long --tags)
ccflags-y += -I$(obj)/../include/ -DGIT_VERSION=\"$(GIT_VERSION)\"
ccflags-$(CONFIG_ZIO_DEBUG) += -DDEBUG
obj-m = zio-zero.o
obj-m += zio-loop.o
......
......@@ -3,6 +3,7 @@ LINUX ?= /lib/modules/$(shell uname -r)/build
GIT_VERSION = $(shell cd $(src); git describe --dirty --long --tags)
ccflags-y += -I$(obj)/../include/ -DGIT_VERSION=\"$(GIT_VERSION)\"
ccflags-$(CONFIG_ZIO_DEBUG) += -DDEBUG
# zio-trig-user.o is now part of zio-core
obj-m = zio-trig-timer.o
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment