Commit d9843590 authored by Federico Vaga's avatar Federico Vaga

sw: add coccicheck target and redirect install

why I added coccicheck does not need explanations

install is to install the kernel, we need to do modules_install
for kernel modules
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent e7dc9fb5
...@@ -9,10 +9,11 @@ DIRS = kernel ...@@ -9,10 +9,11 @@ DIRS = kernel
.PHONY: all clean modules install modules_install $(DIRS) .PHONY: all clean modules install modules_install $(DIRS)
all clean modules install modules_install: $(DIRS) all clean modules install coccicheck modules_install: $(DIRS)
clean: TARGET = clean clean: TARGET = clean
modules: TARGET = modules modules: TARGET = modules
coccicheck: TARGET = coccicheck
install: TARGET = install install: TARGET = install
modules_install: TARGET = modules_install modules_install: TARGET = modules_install
......
...@@ -50,13 +50,12 @@ ifeq ($(DKMS), 0) ...@@ -50,13 +50,12 @@ ifeq ($(DKMS), 0)
$(CHEBY) --gen-c -i $(HDL_DIR)/rtl/spec_base_regs.cheby > $@ $(CHEBY) --gen-c -i $(HDL_DIR)/rtl/spec_base_regs.cheby > $@
endif endif
modules help install modules_install: spec-core-fpga.h 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) $@
# be able to run the "clean" rule even if $(LINUX) is not valid
clean:
rm -rf *.o *~ .*.cmd *.ko *.mod.c .tmp_versions Module.symvers \
Module.markers modules.order
ifeq ($(DKMS), 0) ifeq ($(DKMS), 0)
rm -f spec-core-fpga.h rm -f spec-core-fpga.h
endif endif
install: modules_install
clean: 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) $@
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