Commit a8ed2205 authored by Federico Vaga's avatar Federico Vaga

Makefile: do not use check-fmc-bus script

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent c4391382
FMC_DRV ?= $(shell ./check-fmc-bus)
export FMC_DRV
FMC_BUS ?= $(shell pwd)/fmc-bus
export FMC_BUS
RUNME := $(shell test -d $(FMC_DRV) || git submodule update --init)
RUNME := $(shell test -d $(FMC_BUS) || git submodule update --init)
DIRS = $(FMC_DRV) kernel tools
DIRS = $(FMC_BUS) kernel tools
all clean modules install modules_install:
for d in $(DIRS); do $(MAKE) -C $$d $@ || exit 1; done
include scripts/gateware.mk
\ No newline at end of file
include scripts/gateware.mk
#!/bin/sh
cd $(dirname $0)
# If this project _and_ fmc-bus are submodules of ../, pick ../fmc-bus
FMC_SUBDIR=$(/bin/pwd)/fmc-bus/kernel
FMC_DOTDOT=$(/bin/pwd)/../fmc-bus/kernel
THIS=$(basename $(/bin/pwd))
if ! test -f ../.gitmodules; then
echo $FMC_SUBDIR
exit 0
fi
if ! grep "submodule \"$THIS\"" ../.gitmodules > /dev/null; then
echo $FMC_SUBDIR
exit 0
fi
if ! grep "submodule \"fmc-bus\"" ../.gitmodules > /dev/null; then
echo $FMC_SUBDIR
exit 0
fi
echo $FMC_DOTDOT
\ No newline at end of file
LINUX ?= /lib/modules/$(shell uname -r)/build
FMC_DRV ?= $(shell ../check-fmc-bus)
export FMC_DRV
FMC_BUS ?= $(shell pwd)/../fmc-bus
export FMC_BUS
GIT_VERSION = $(shell git describe --dirty --long --tags)
......@@ -12,7 +12,7 @@ else
ccflags-y += -DCERN_SUPER_MODULE=""
endif
ccflags-y += -I$(FMC_DRV)/include
ccflags-y += -I$(FMC_BUS)/kernel/include
ccflags-y += -DDEBUG
ccflags-y += -DGIT_VERSION=\"$(GIT_VERSION)\"
......
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