Commit 3fbd4379 authored by Federico Vaga's avatar Federico Vaga

sw: Makefile cleanup

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 3a188bd0
...@@ -7,9 +7,10 @@ REPO_PARENT ?= $(shell /bin/pwd)/.. ...@@ -7,9 +7,10 @@ REPO_PARENT ?= $(shell /bin/pwd)/..
DIRS = kernel DIRS = kernel
.PHONY: all clean modules install modules_install $(DIRS) .PHONY: all clean modules install modules_install coccicheck $(DIRS)
all clean modules install coccicheck modules_install: $(DIRS) all clean : $(DIRS)
install modules_install coccicheck modules: kernel
clean: TARGET = clean clean: TARGET = clean
modules: TARGET = modules modules: TARGET = modules
...@@ -17,8 +18,5 @@ coccicheck: TARGET = coccicheck ...@@ -17,8 +18,5 @@ coccicheck: TARGET = coccicheck
install: TARGET = install install: TARGET = install
modules_install: TARGET = modules_install modules_install: TARGET = modules_install
ENV_VAR := CONFIG_FPGA_MGR_BACKPORT_PATH=$(CONFIG_FPGA_MGR_BACKPORT_PATH)
ENV_VAR += CONFIG_FPGA_MGR_BACKPORT=$(CONFIG_FPGA_MGR_BACKPORT)
$(DIRS): $(DIRS):
$(MAKE) -C $@ $(ENV_VAR) $(TARGET) $(MAKE) -C $@ $(ENV_VAR) $(TARGET)
...@@ -43,7 +43,7 @@ CHEBY ?= /usr/bin/cheby ...@@ -43,7 +43,7 @@ CHEBY ?= /usr/bin/cheby
all: modules all: modules
.PHONY: all modules clean help install modules_install spec-core-fpga.h .PHONY: all modules clean help install modules_install coccicheck spec-core-fpga.h
spec-core-fpga.h: spec-core-fpga.h:
ifeq ($(DKMS), 0) ifeq ($(DKMS), 0)
...@@ -58,4 +58,11 @@ endif ...@@ -58,4 +58,11 @@ endif
install: modules_install install: modules_install
clean: clean-spec-core-fpga.h clean: clean-spec-core-fpga.h
modules help coccicheck modules_install clean: spec-core-fpga.h modules help coccicheck modules_install clean: spec-core-fpga.h
$(MAKE) -C $(LINUX) M=$(shell pwd) VERSION=$(VERSION) CONFIG_FPGA_MGR_BACKPORT_PATH_ABS=$(CONFIG_FPGA_MGR_BACKPORT_PATH_ABS) CONFIG_FPGA_MGR_BACKPORT=$(CONFIG_FPGA_MGR_BACKPORT) FMC_ABS=$(FMC_ABS) I2C_ABS=$(I2C_ABS) SPI_ABS=$(SPI_ABS) $@ $(MAKE) -C $(LINUX) M=$(shell pwd) \
VERSION=$(VERSION) \
CONFIG_FPGA_MGR_BACKPORT_PATH_ABS=$(CONFIG_FPGA_MGR_BACKPORT_PATH_ABS) \
CONFIG_FPGA_MGR_BACKPORT=$(CONFIG_FPGA_MGR_BACKPORT) \
FMC_ABS=$(FMC_ABS) \
I2C_ABS=$(I2C_ABS) \
SPI_ABS=$(SPI_ABS) \
$@
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