Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
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
Mock Turtle
Commits
cc34a5ff
Commit
cc34a5ff
authored
Oct 21, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:drv: create kbuild file
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
09a797a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
29 deletions
+40
-29
Kbuild
software/kernel/Kbuild
+39
-0
Makefile
software/kernel/Makefile
+1
-29
No files found.
software/kernel/Kbuild
0 → 100644
View file @
cc34a5ff
# SPDX-License-Identifier: CC0-1.0
#
# SPDX-FileCopyrightText: 2019 CERN
# add versions of supermodule. It is useful when fine-delay-sw is included as sub-module
# of a bigger project that we want to track
ifdef CONFIG_SUPER_REPO
ifdef CONFIG_SUPER_REPO_VERSION
SUBMODULE_VERSIONS += MODULE_INFO(version_$(CONFIG_SUPER_REPO),\"$(CONFIG_SUPER_REPO_VERSION)\");
endif
endif
# 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
ccflags-y += -DGIT_VERSION=\"$(GIT_VERSION)\"
ccflags-y += -I$(src)
ifeq ($(DKMS), 0)
ccflags-y += -I$(src)/../include
endif
ccflags-$(CONFIG_TRTL_DEBUG) += -DDEBUG
subdirs-ccflags-y = $(ccflags-y)
obj-m := mockturtle.o
mockturtle-y := mockturtle-core.o
mockturtle-y += mockturtle-cpu.o
mockturtle-y += mockturtle-hmq.o
mockturtle-y += mockturtle-tty.o
mockturtle-y += mockturtle-dbg.o
mockturtle-y += mockturtle-dbg.o
mockturtle-y += mockturtle-compat.o
software/kernel/Makefile
View file @
cc34a5ff
...
...
@@ -14,36 +14,8 @@ DKMS ?= 0
GIT_VERSION
=
$(
shell
cd
$(src)
;
git describe
--always
--dirty
--long
--tags
)
VERSION
:=
$(
shell
git describe
--tags
--abbrev
=
0 |
tr
-d
'v'
)
# 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
ccflags-y
+=
-DGIT_VERSION
=
\"
$(GIT_VERSION)
\"
ccflags-y
+=
-I
$(src)
ifeq
($(DKMS),
0)
ccflags-y
+=
-I
$(src)
/../include
endif
ccflags-$(CONFIG_TRTL_DEBUG)
+=
-DDEBUG
subdirs-ccflags-y
=
$
(
ccflags-y
)
obj-m
:=
mockturtle.o
mockturtle-y
:=
mockturtle-core.o
mockturtle-y
+=
mockturtle-cpu.o
mockturtle-y
+=
mockturtle-hmq.o
mockturtle-y
+=
mockturtle-tty.o
mockturtle-y
+=
mockturtle-dbg.o
mockturtle-y
+=
mockturtle-dbg.o
mockturtle-y
+=
mockturtle-compat.o
all modules
:
hw_header
$(MAKE)
-C
$(LINUX)
M
=
$(
shell
/bin/pwd
)
modules
$(MAKE)
-C
$(LINUX)
M
=
$(
shell
/bin/pwd
)
DKMS
=
$(DKMS)
modules
hw_header
:
ifeq
($(DKMS),
0)
...
...
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