Commit e3323201 authored by Federico Vaga's avatar Federico Vaga

Makefile: use src instead of obj variable

src point to the source code. Obj point to the object. Sometimes they
live toghether but users can decide to build the object outside the
source tree.
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
Acked-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent c5983db2
......@@ -12,7 +12,7 @@ obj-m += triggers/
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-y += -I$(src)/include/ -DGIT_VERSION=\"$(GIT_VERSION)\"
ccflags-$(CONFIG_ZIO_DEBUG) += -DDEBUG
......
......@@ -2,7 +2,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-y += -I$(src)/../include/ -DGIT_VERSION=\"$(GIT_VERSION)\"
ccflags-$(CONFIG_ZIO_DEBUG) += -DDEBUG
# zio-buf-kmalloc.o is now part of zio-core
......
......@@ -2,7 +2,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-y += -I$(src)/../include/ -DGIT_VERSION=\"$(GIT_VERSION)\"
ccflags-$(CONFIG_ZIO_DEBUG) += -DDEBUG
obj-m = zio-zero.o
......
......@@ -2,7 +2,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-y += -I$(src)/../include/ -DGIT_VERSION=\"$(GIT_VERSION)\"
ccflags-$(CONFIG_ZIO_DEBUG) += -DDEBUG
# zio-trig-user.o is now part of zio-core
......
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