Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC ADC 100M 14b 4cha - Software
Commits
190537c7
Commit
190537c7
authored
Oct 26, 2015
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: split Makefile into Makefile and Kbuild
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
84ef3a49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
49 deletions
+49
-49
Kbuild
kernel/Kbuild
+49
-0
Makefile
kernel/Makefile
+0
-49
No files found.
kernel/Kbuild
0 → 100644
View file @
190537c7
CONFIG_FMC_ADC_SVEC ?= CONFIG_VME
KBUILD_EXTRA_SYMBOLS := \
$(ZIO)/Module.symvers \
$(FMC_BUS)/kernel/Module.symvers
# For this CSM_VERSION, please see ohwr.org/csm documentation
ifdef CONFIG_CSM_VERSION
ccflags-y += -D"CERN_SUPER_MODULE=MODULE_VERSION(\"$(CONFIG_CSM_VERSION)\")"
else
ccflags-y += -DCERN_SUPER_MODULE=""
endif
# The library includes <sdb.h>, so point -I directtly there
# include our header before to avoid conflicts with the kernel
LINUXINCLUDE := -I$(FMC_BUS)/kernel/include $(LINUXINCLUDE)
ccflags-y += -DGIT_VERSION=\"$(GIT_VERSION)\" \
-I$(ZIO)/include \
-I$(SPEC_SW)/kernel \
-I$(SVEC_SW)/kernel \
-I$(src)
ccflags-$(CONFIG_FMC_ADC_DEBUG) += -DDEBUG
ccflags-$(CONFIG_FMC_ADC_SVEC) += -DCONFIG_FMC_ADC_SVEC
# Extract ZIO minimum compatible version
ccflags-y += -D__ZIO_MIN_MAJOR_VERSION=$(shell echo $(ZIO_VERSION) | cut -d '-' -f 2 | cut -d '.' -f 1; )
ccflags-y += -D__ZIO_MIN_MINOR_VERSION=$(shell echo $(ZIO_VERSION) | cut -d '-' -f 2 | cut -d '.' -f 2; )
subdirs-ccflags-y = $(ccflags-y)
obj-m := fmc-adc-100m14b.o
fmc-adc-100m14b-y = fa-core.o
fmc-adc-100m14b-y += fa-zio-drv.o
fmc-adc-100m14b-y += fa-calibration.o
fmc-adc-100m14b-y += fa-regtable.o
fmc-adc-100m14b-y += fa-zio-trg.o
fmc-adc-100m14b-y += fa-irq.o
fmc-adc-100m14b-y += onewire.o
fmc-adc-100m14b-y += spi.o
fmc-adc-100m14b-y += fmc-util.o
fmc-adc-100m14b-y += fa-spec-core.o
fmc-adc-100m14b-y += fa-spec-regtable.o
fmc-adc-100m14b-y += fa-spec-dma.o
fmc-adc-100m14b-y += fa-spec-irq.o
fmc-adc-100m14b-$(CONFIG_FMC_ADC_SVEC) += fa-svec-core.o
fmc-adc-100m14b-$(CONFIG_FMC_ADC_SVEC) += fa-svec-regtable.o
fmc-adc-100m14b-$(CONFIG_FMC_ADC_SVEC) += fa-svec-dma.o
kernel/Makefile
View file @
190537c7
...
...
@@ -4,58 +4,9 @@ ZIO ?= $(src)/../zio
FMC_BUS
?=
$(src)
/../fmc-bus
SPEC_SW
?=
$(src)
/../spec-sw
SVEC_SW
?=
$(src)
/../svec-sw
CONFIG_FMC_ADC_SVEC
?=
CONFIG_VME
KBUILD_EXTRA_SYMBOLS
:=
\
$(ZIO)
/Module.symvers
\
$(FMC_BUS)
/kernel/Module.symvers
GIT_VERSION
=
$(
shell
cd
$(src)
;
git describe
--always
--dirty
--long
--tags
)
# For this CSM_VERSION, please see ohwr.org/csm documentation
ifdef
CONFIG_CSM_VERSION
ccflags-y
+=
-D
"CERN_SUPER_MODULE=MODULE_VERSION(
\"
$(CONFIG_CSM_VERSION)
\"
)"
else
ccflags-y
+=
-DCERN_SUPER_MODULE
=
""
endif
# The library includes <sdb.h>, so point -I directtly there
# include our header before to avoid conflicts with the kernel
LINUXINCLUDE
:=
-I
$(FMC_BUS)
/kernel/include
$(LINUXINCLUDE)
ccflags-y
+=
-DGIT_VERSION
=
\"
$(GIT_VERSION)
\"
\
-I
$(ZIO)
/include
\
-I
$(SPEC_SW)
/kernel
\
-I
$(SVEC_SW)
/kernel
\
-I
$(src)
ccflags-$(CONFIG_FMC_ADC_DEBUG)
+=
-DDEBUG
ccflags-$(CONFIG_FMC_ADC_SVEC)
+=
-DCONFIG_FMC_ADC_SVEC
# Extract ZIO minimum compatible version
ccflags-y
+=
-D__ZIO_MIN_MAJOR_VERSION
=
$(
shell
echo
$(ZIO_VERSION)
|
cut
-d
'-'
-f
2 |
cut
-d
'.'
-f
1
;
)
ccflags-y
+=
-D__ZIO_MIN_MINOR_VERSION
=
$(
shell
echo
$(ZIO_VERSION)
|
cut
-d
'-'
-f
2 |
cut
-d
'.'
-f
2
;
)
subdirs-ccflags-y
=
$
(
ccflags-y
)
obj-m
:=
fmc-adc-100m14b.o
fmc-adc-100m14b-y
=
fa-core.o
fmc-adc-100m14b-y
+=
fa-zio-drv.o
fmc-adc-100m14b-y
+=
fa-calibration.o
fmc-adc-100m14b-y
+=
fa-regtable.o
fmc-adc-100m14b-y
+=
fa-zio-trg.o
fmc-adc-100m14b-y
+=
fa-irq.o
fmc-adc-100m14b-y
+=
onewire.o
fmc-adc-100m14b-y
+=
spi.o
fmc-adc-100m14b-y
+=
fmc-util.o
fmc-adc-100m14b-y
+=
fa-spec-core.o
fmc-adc-100m14b-y
+=
fa-spec-regtable.o
fmc-adc-100m14b-y
+=
fa-spec-dma.o
fmc-adc-100m14b-y
+=
fa-spec-irq.o
fmc-adc-100m14b-$(CONFIG_FMC_ADC_SVEC)
+=
fa-svec-core.o
fmc-adc-100m14b-$(CONFIG_FMC_ADC_SVEC)
+=
fa-svec-regtable.o
fmc-adc-100m14b-$(CONFIG_FMC_ADC_SVEC)
+=
fa-svec-dma.o
all modules
:
$(MAKE)
-C
$(LINUX)
M
=
$(
shell
/bin/pwd
)
modules
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment