Commit 2ccfa7ad authored by Federico Vaga's avatar Federico Vaga

drv: pass variable to Kbuild instead of export

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent a1a27939
KBUILD_EXTRA_SYMBOLS := \
$(ZIO_ABS)/Module.symvers
KBUILD_EXTRA_SYMBOLS += $(ZIO_EXTRA_SYMBOLS-y)
# add versions of supermodule. It is useful when fine-delay-sw is included as sub-module
# of a bigger project that we want to track
......
......@@ -8,18 +8,18 @@ LINUX ?= /lib/modules/$(shell uname -r)/build
ZIO ?= ../zio
# ZIO_ABS has to be absolut path, due to beeing
# passed to the Kbuild
ZIO_ABS ?= $(abspath $(ZIO) )
ZIO_EXTRA_SYMBOLS-y = $(ZIO_ABS)/Module.symvers
GIT_VERSION = $(shell git describe --dirty --long --tags)
ZIO_VERSION ?= $(shell cd $(ZIO_ABS); git describe --always --dirty --long --tags)
export ZIO_VERSION
all modules:
$(MAKE) -C $(LINUX) M=$(shell /bin/pwd) \
ZIO_ABS=$(ZIO_ABS) \
ZIO_EXTRA_SYMBOLS-y=$(ZIO_EXTRA_SYMBOLS-y) \
ZIO_VERSION=$(ZIO_VERSION) \
VERSION=$(GIT_VERSION) \
modules
......
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