Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
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
Commits
2ea60dcb
Commit
2ea60dcb
authored
Apr 05, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drv: rename GIT_VERSION to just VERSION
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
6edffd1c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
Kbuild
kernel/Kbuild
+1
-1
Makefile
kernel/Makefile
+4
-3
spec-core.c
kernel/spec-core.c
+1
-1
No files found.
kernel/Kbuild
View file @
2ea60dcb
...
...
@@ -11,7 +11,7 @@ CONFIG_FPGA_MGR_BACKPORT_INCLUDE := -I$(CONFIG_FPGA_MGR_BACKPORT_PATH_ABS)/inclu
CONFIG_FPGA_MGR_BACKPORT_INCLUDE += -I$(CONFIG_FPGA_MGR_BACKPORT_PATH_ABS)/include/linux
ccflags-y += -DADDITIONAL_VERSIONS="$(SUBMODULE_VERSIONS)"
ccflags-y += -D
GIT_VERSION=\"$(GIT_
VERSION)\"
ccflags-y += -D
VERSION=\"$(
VERSION)\"
ccflags-y += -Wall -Werror
ccflags-$(CONFIG_FPGA_MGR_BACKPORT) += -DCONFIG_FPGA_MGR_BACKPORT
...
...
kernel/Makefile
View file @
2ea60dcb
...
...
@@ -3,18 +3,19 @@
REPO_PARENT
?=
$(
shell
/bin/pwd
)
/../..
-include
$(REPO_PARENT)/parent_common.mk
LINUX
?=
/lib/modules/
$(
shell
uname
-r
)
/build
KVERSION
?=
$(
shell
uname
-r
)
LINUX
?=
/lib/modules/
$(KVERSION)
/build
CONFIG_FPGA_MGR_BACKPORT_PATH_ABS
?=
$
(
abspath
$(CONFIG_FPGA_MGR_BACKPORT_PATH)
)
GIT_
VERSION
=
$(
shell
git describe
--dirty
--long
--tags
)
VERSION
=
$(
shell
git describe
--dirty
--long
--tags
)
all
:
modules
.PHONY
:
all modules clean help install modules_install
modules help install modules_install
:
$(MAKE)
-C
$(LINUX)
M
=
$(
shell
pwd
)
GIT_VERSION
=
$(GIT_
VERSION)
CONFIG_FPGA_MGR_BACKPORT_PATH_ABS
=
$(CONFIG_FPGA_MGR_BACKPORT_PATH_ABS)
CONFIG_FPGA_MGR_BACKPORT
=
$(CONFIG_FPGA_MGR_BACKPORT)
$@
$(MAKE)
-C
$(LINUX)
M
=
$(
shell
pwd
)
VERSION
=
$(
VERSION)
CONFIG_FPGA_MGR_BACKPORT_PATH_ABS
=
$(CONFIG_FPGA_MGR_BACKPORT_PATH_ABS)
CONFIG_FPGA_MGR_BACKPORT
=
$(CONFIG_FPGA_MGR_BACKPORT)
$@
# be able to run the "clean" rule even if $(LINUX) is not valid
clean
:
...
...
kernel/spec-core.c
View file @
2ea60dcb
...
...
@@ -249,7 +249,7 @@ module_pci_driver(spec_driver);
MODULE_AUTHOR
(
"Federico Vaga <federico.vaga@cern.ch>"
);
MODULE_LICENSE
(
"GPL v2"
);
MODULE_VERSION
(
GIT_
VERSION
);
MODULE_VERSION
(
VERSION
);
MODULE_DESCRIPTION
(
"spec driver"
);
ADDITIONAL_VERSIONS
;
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