Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
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 PCIe FMC carrier SPEC - Software
Commits
040c0cdb
Commit
040c0cdb
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
22af1794
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
45 deletions
+43
-45
Kbuild
kernel/Kbuild
+43
-0
Makefile
kernel/Makefile
+0
-45
No files found.
kernel/Kbuild
0 → 100644
View file @
040c0cdb
KBUILD_EXTRA_SYMBOLS := $(FMC_DRV)/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_DRV)/include -I$(src)/include/linux $(LINUXINCLUDE)
ccflags-y += -I$(src)/include
ccflags-y += $(WR_NIC_CFLAGS)
ccflags-y += -DGIT_VERSION=\"$(GIT_VERSION)\"
# this is a bad hack. Sometimes we are a submodule, and wr-nic can
# only compile with recent versions, so let the caller disable it
# FIXME: this is incorrect if we get copied to the kernel proper.
CONFIG_WR_NIC ?= m
obj-m += spec.o
obj-$(CONFIG_WR_NIC) += wr-nic.o
spec-y = spec-pci.o
spec-y += spec-fmc.o
spec-y += spec-i2c.o
spec-y += spec-vic.o
spec-y += loader-ll.o
spec-y += spec-gpio-no.o
spec-$(CONFIG_GPIOLIB) += spec-gpio.o
wr-nic-y = wr-nic-core.o
wr-nic-y += wr-nic-eth.o
wr-nic-y += wr-nic-dio.o
wr-nic-y += wr_nic/device.o
wr-nic-y += wr_nic/endpoint.o
wr-nic-y += wr_nic/ethtool.o
wr-nic-y += wr_nic/nic-core.o
wr-nic-y += wr_nic/timestamp.o
wr-nic-y += wr_nic/pps.o
wr-nic-$(CONFIG_GPIOLIB) += wr-nic-gpio.o
kernel/Makefile
View file @
040c0cdb
...
@@ -4,53 +4,8 @@ LINUX ?= /lib/modules/$(shell uname -r)/build
...
@@ -4,53 +4,8 @@ LINUX ?= /lib/modules/$(shell uname -r)/build
FMC_BUS
?=
$(
shell
pwd
)
/../fmc-bus/
FMC_BUS
?=
$(
shell
pwd
)
/../fmc-bus/
FMC_DRV
?=
$(FMC_BUS)
/kernel/
FMC_DRV
?=
$(FMC_BUS)
/kernel/
KBUILD_EXTRA_SYMBOLS
:=
$(FMC_DRV)
/Module.symvers
GIT_VERSION
=
$(
shell
cd
$(src)
;
git describe
--dirty
--long
--tags
)
GIT_VERSION
=
$(
shell
cd
$(src)
;
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_DRV)
/include
-I
$(src)
/include/linux
$(LINUXINCLUDE)
ccflags-y
+=
-I
$(src)
/include
ccflags-y
+=
$(WR_NIC_CFLAGS)
ccflags-y
+=
-DGIT_VERSION
=
\"
$(GIT_VERSION)
\"
# this is a bad hack. Sometimes we are a submodule, and wr-nic can
# only compile with recent versions, so let the caller disable it
# FIXME: this is incorrect if we get copied to the kernel proper.
CONFIG_WR_NIC
?=
m
obj-m
+=
spec.o
obj-$(CONFIG_WR_NIC)
+=
wr-nic.o
spec-y
=
spec-pci.o
spec-y
+=
spec-fmc.o
spec-y
+=
spec-i2c.o
spec-y
+=
spec-vic.o
spec-y
+=
loader-ll.o
spec-y
+=
spec-gpio-no.o
spec-$(CONFIG_GPIOLIB)
+=
spec-gpio.o
wr-nic-y
=
wr-nic-core.o
wr-nic-y
+=
wr-nic-eth.o
wr-nic-y
+=
wr-nic-dio.o
wr-nic-y
+=
wr_nic/device.o
wr-nic-y
+=
wr_nic/endpoint.o
wr-nic-y
+=
wr_nic/ethtool.o
wr-nic-y
+=
wr_nic/nic-core.o
wr-nic-y
+=
wr_nic/timestamp.o
wr-nic-y
+=
wr_nic/pps.o
wr-nic-$(CONFIG_GPIOLIB)
+=
wr-nic-gpio.o
all modules
:
all modules
:
$(MAKE)
-C
$(LINUX)
M
=
$(
shell
/bin/pwd
)
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