Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple VME FMC Carrier SVEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
Simple VME FMC Carrier SVEC - Software
Commits
84340369
Commit
84340369
authored
Oct 16, 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
28431f5d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
26 deletions
+27
-26
Kbuild
kernel/Kbuild
+26
-0
Makefile
kernel/Makefile
+1
-26
No files found.
kernel/Kbuild
0 → 100644
View file @
84340369
# 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 += -I$(FMC_BUS)/kernel/include
ccflags-y += -DDEBUG
ccflags-y += -DGIT_VERSION=\"$(GIT_VERSION)\"
KBUILD_EXTRA_SYMBOLS += $(obj)/Module.symvers.vme
KBUILD_EXTRA_SYMBOLS += $(obj)/Module.symvers.fmc
obj-m := svec.o
svec-objs := svec-drv.o
svec-objs += svec-sysfs.o
svec-objs += svec-fmc.o
svec-objs += svec-i2c.o
svec-objs += svec-irq.o
svec-objs += svec-vic.o
kernel/Makefile
View file @
84340369
...
...
@@ -4,32 +4,7 @@ FMC_BUS ?= $(shell pwd)/../fmc-bus
export
FMC_BUS
GIT_VERSION
=
$(
shell
git describe
--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
+=
-DDEBUG
ccflags-y
+=
-DGIT_VERSION
=
\"
$(GIT_VERSION)
\"
KBUILD_EXTRA_SYMBOLS
+=
$(obj)
/Module.symvers.vme
KBUILD_EXTRA_SYMBOLS
+=
$(obj)
/Module.symvers.fmc
obj-m
:=
svec.o
svec-objs
:=
svec-drv.o
svec-objs
+=
svec-sysfs.o
svec-objs
+=
svec-fmc.o
svec-objs
+=
svec-i2c.o
svec-objs
+=
svec-irq.o
svec-objs
+=
svec-vic.o
export
GIT_VERSION
all
:
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