Commit d2488fc1 authored by Federico Vaga's avatar Federico Vaga

do not use anymore check-fmc-bus

Mainly for compatibility (simplification) with the CERN super module.
Insted of using a script to guess which fmc-bus define, assume always
that parent project define the FMC_BUS to use.
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 156b2ea2
# by default use the fmc-bus within the repository
# We have a problem here: this package may be a submodule of something FMC_BUS ?= $(shell pwd)/fmc-bus/
# else (for example: fine-delay). If this is the case, fmc-bus is on ../ export FMC_BUS
# This external script returns the pathname of the "kernel" subdir of fmc-bus FMC_DRV ?= $(FMC_BUS)/kernel/
FMC_DRV ?= $(shell ./check-fmc-bus)
export FMC_DRV export FMC_DRV
RUNME := $(shell test -d $(FMC_DRV) || git submodule update --init) RUNME := $(shell test -d $(FMC_DRV) || git submodule update --init)
DIRS = $(FMC_DRV) kernel tools DIRS = $(FMC_BUS) kernel tools
all clean modules install modules_install: all clean modules install modules_install:
for d in $(DIRS); do $(MAKE) -C $$d $@ || exit 1; done for d in $(DIRS); do $(MAKE) -C $$d $@ || exit 1; done
#!/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 LINUX ?= /lib/modules/$(shell uname -r)/build
FMC_DRV ?= $(shell ../check-fmc-bus) # by default use the fmc-bus within the repository
export FMC_DRV FMC_BUS ?= $(shell pwd)/../fmc-bus/
FMC_DRV ?= $(FMC_BUS)/kernel/
KBUILD_EXTRA_SYMBOLS := $(FMC_DRV)/Module.symvers KBUILD_EXTRA_SYMBOLS := $(FMC_DRV)/Module.symvers
......
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