Commit ac1e8ddc authored by Federico Vaga's avatar Federico Vaga

kernel: do not copy the dependencies locally

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 9f82917c
...@@ -9,6 +9,7 @@ all: kernel tools lib libtools ...@@ -9,6 +9,7 @@ all: kernel tools lib libtools
FMC_BUS ?= fmc-bus FMC_BUS ?= fmc-bus
ZIO ?= zio ZIO ?= zio
SVEC_SW ?= svec-sw SVEC_SW ?= svec-sw
VMEBUS ?= $(REPO_PARENT)/vmebridge
# Use the absolute path so it can be used by submodule # Use the absolute path so it can be used by submodule
# FMC_BUS_ABS and ZIO_ABS has to be absolut path, # FMC_BUS_ABS and ZIO_ABS has to be absolut path,
...@@ -16,10 +17,12 @@ SVEC_SW ?= svec-sw ...@@ -16,10 +17,12 @@ SVEC_SW ?= svec-sw
FMC_BUS_ABS ?= $(abspath $(FMC_BUS) ) FMC_BUS_ABS ?= $(abspath $(FMC_BUS) )
ZIO_ABS ?= $(abspath $(ZIO) ) ZIO_ABS ?= $(abspath $(ZIO) )
SVEC_SW_ABS ?= $(abspath $(SVEC_SW) ) SVEC_SW_ABS ?= $(abspath $(SVEC_SW) )
VMEBUS_ABS ?= $(abspath $(VMEBUS) )
export FMC_BUS_ABS export FMC_BUS_ABS
export ZIO_ABS export ZIO_ABS
export SVEC_SW_ABS export SVEC_SW_ABS
export VMEBUS_ABS
DIRS = $(FMC_BUS_ABS) $(ZIO_ABS) kernel tools lib libtools DIRS = $(FMC_BUS_ABS) $(ZIO_ABS) kernel tools lib libtools
......
CONFIG_FMC_ADC_SVEC ?= CONFIG_VME CONFIG_FMC_ADC_SVEC ?= CONFIG_VME
SVEC_SW_EXTRA_SYMBOLS-$(CONFIG_FMC_ADC_SVEC) := $(SVEC_SW_ABS)/kernel/Module.symvers.vmebus SVEC_SW_EXTRA_SYMBOLS-$(CONFIG_FMC_ADC_SVEC) := $(VMEBUS_ABS)/driver/Module.symvers
KBUILD_EXTRA_SYMBOLS := \ KBUILD_EXTRA_SYMBOLS := \
$(ZIO_ABS)/Module.symvers \ $(ZIO_ABS)/Module.symvers \
$(FMC_BUS_ABS)/kernel/Module.symvers \ $(FMC_BUS_ABS)/kernel/Module.symvers \
...@@ -28,6 +28,7 @@ ccflags-y += -DGIT_VERSION=\"$(GIT_VERSION)\" \ ...@@ -28,6 +28,7 @@ ccflags-y += -DGIT_VERSION=\"$(GIT_VERSION)\" \
-I$(src) -I$(src)
ccflags-$(CONFIG_FMC_ADC_SVEC) += -I$(SVEC_SW_ABS)/kernel ccflags-$(CONFIG_FMC_ADC_SVEC) += -I$(SVEC_SW_ABS)/kernel
ccflags-$(CONFIG_FMC_ADC_SVEC) += -I$(VMEBUS_ABS)/include
ccflags-$(CONFIG_FMC_ADC_DEBUG) += -DDEBUG ccflags-$(CONFIG_FMC_ADC_DEBUG) += -DDEBUG
ccflags-$(CONFIG_FMC_ADC_SVEC) += -DCONFIG_FMC_ADC_SVEC ccflags-$(CONFIG_FMC_ADC_SVEC) += -DCONFIG_FMC_ADC_SVEC
......
...@@ -8,12 +8,14 @@ LINUX ?= /lib/modules/$(shell uname -r)/build ...@@ -8,12 +8,14 @@ LINUX ?= /lib/modules/$(shell uname -r)/build
FMC_BUS ?= ../fmc-bus FMC_BUS ?= ../fmc-bus
ZIO ?= ../zio ZIO ?= ../zio
SVEC_SW ?= ../svec-sw SVEC_SW ?= ../svec-sw
VMEBUS ?= $(REPO_PARENT)/vmebridge
# FMC_BUS_ABS and ZIO_ABS has to be absolut path, # FMC_BUS_ABS and ZIO_ABS has to be absolut path,
# due to beeing passed to the Kbuild # due to beeing passed to the Kbuild
FMC_BUS_ABS ?= $(abspath $(FMC_BUS) ) FMC_BUS_ABS ?= $(abspath $(FMC_BUS) )
ZIO_ABS ?= $(abspath $(ZIO) ) ZIO_ABS ?= $(abspath $(ZIO) )
SVEC_SW_ABS ?= $(abspath $(SVEC_SW) ) SVEC_SW_ABS ?= $(abspath $(SVEC_SW) )
VMEBUS_ABS ?= $(abspath $(VMEBUS) )
GIT_VERSION = $(shell git describe --always --dirty --long --tags) GIT_VERSION = $(shell git describe --always --dirty --long --tags)
export GIT_VERSION export GIT_VERSION
...@@ -26,7 +28,8 @@ export ZIO_VERSION ...@@ -26,7 +28,8 @@ export ZIO_VERSION
all modules: all modules:
$(MAKE) -C $(LINUX) M=$(CURDIR) FMC_BUS_ABS=$(FMC_BUS_ABS) \ $(MAKE) -C $(LINUX) M=$(CURDIR) FMC_BUS_ABS=$(FMC_BUS_ABS) \
ZIO_ABS=$(ZIO_ABS) SVEC_SW_ABS=$(SVEC_SW_ABS) modules ZIO_ABS=$(ZIO_ABS) SVEC_SW_ABS=$(SVEC_SW_ABS) \
VMEBUS_ABS=$(VMEBUS_ABS) modules
install modules_install: modules install modules_install: modules
$(MAKE) -C $(LINUX) M=$(CURDIR) modules_install $(MAKE) -C $(LINUX) M=$(CURDIR) modules_install
......
This diff is collapsed.
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