Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC Bus
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 Bus
Commits
8fd47ce3
Commit
8fd47ce3
authored
Oct 16, 2015
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefile: split Makefile into Makefile and Kbuild
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
74a29b07
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
32 deletions
+32
-32
Kbuild
kernel/Kbuild
+30
-0
Makefile
kernel/Makefile
+2
-32
No files found.
kernel/Kbuild
0 → 100644
View file @
8fd47ce3
ccflags-y += -I$(src)/include
obj-m = fmc.o
obj-m += fmc-fakedev.o
obj-m += fmc-trivial.o
obj-m += fmc-write-eeprom.o
obj-m += fmc-chardev.o
fmc-y = fmc-core.o
fmc-y += fmc-match.o
fmc-y += fmc-sdb.o
fmc-y += fru-parse.o
fmc-y += fmc-dump.o
fmc-y += fmc-debug.o
# 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$(src)/include -I$(src)/include/linux $(LINUXINCLUDE)
ccflags-y += -DGIT_VERSION=\"$(GIT_VERSION)\"
fmc-y += ../sdb-lib/access.o
fmc-y += ../sdb-lib/glue.o
kernel/Makefile
View file @
8fd47ce3
LINUX
?=
/lib/modules/
$(
shell
uname
-r
)
/build
ccflags-y
+=
-I
$(src)
/include
obj-m
=
fmc.o
obj-m
+=
fmc-fakedev.o
obj-m
+=
fmc-trivial.o
obj-m
+=
fmc-write-eeprom.o
obj-m
+=
fmc-chardev.o
fmc-y
=
fmc-core.o
fmc-y
+=
fmc-match.o
fmc-y
+=
fmc-sdb.o
fmc-y
+=
fru-parse.o
fmc-y
+=
fmc-dump.o
fmc-y
+=
fmc-debug.o
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
$(src)
/include
-I
$(src)
/include/linux
$(LINUXINCLUDE)
ccflags-y
+=
-DGIT_VERSION
=
\"
$(GIT_VERSION)
\"
GIT_VERSION
=
$(
shell
git describe
--dirty
--long
--tags
)
fmc-y
+=
../sdb-lib/access.o
fmc-y
+=
../sdb-lib/glue.o
export
GIT_VERSION
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