Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Software for White Rabbit PTP Core
Manage
Activity
Members
Labels
Plan
Issues
35
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Software for White Rabbit PTP Core
Commits
35c1a5b5
Commit
35c1a5b5
authored
7 years ago
by
Michel Arruat
Committed by
Adam Wujek
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
liblinux: add git version and build info for liblinux
Signed-off-by:
Michel Arruat
<
michel.arruat@cern.ch
>
parent
546676e8
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
liblinux/Makefile
+4
-0
4 additions, 0 deletions
liblinux/Makefile
liblinux/devmap.c
+9
-1
9 additions, 1 deletion
liblinux/devmap.c
liblinux/libdevmap.h
+3
-1
3 additions, 1 deletion
liblinux/libdevmap.h
with
16 additions
and
2 deletions
liblinux/Makefile
+
4
−
0
View file @
35c1a5b5
...
...
@@ -7,7 +7,11 @@ SUPPORT_CERN_VMEBRIDGE ?= n
LIB
=
libdevmap.a
LOBJ
:=
devmap.o
GIT_VER
?=
$(
shell git describe
--always
--dirty
)
GIT_USR
?=
$(
shell git config
--get-all
user.name
)
CFLAGS
=
-Wall
-ggdb
-fPIC
-Werror
-I
./
-I
../include
CFLAGS
+=
-D__GIT_VER__
=
"
\"
$(
GIT_VER
)
\"
"
-D__GIT_USR__
=
"
\"
$(
GIT_USR
)
\"
"
LDFLAGS
=
-L
.
ifeq
($(SUPPORT_CERN_VMEBRIDGE), y)
...
...
This diff is collapsed.
Click to expand it.
liblinux/devmap.c
+
9
−
1
View file @
35c1a5b5
...
...
@@ -16,6 +16,9 @@
#include
"libdevmap.h"
static
const
char
*
const
libdevmap_version_s
=
"libdevmap version: "
__GIT_VER__
", by "
__GIT_USR__
" "
__TIME__
" "
__DATE__
;
#ifdef SUPPORT_CERN_VMEBRIDGE
#include
<libvmebus.h>
...
...
@@ -319,7 +322,7 @@ out:
return
NULL
;
}
c
har
*
dev_mapping_help
()
c
onst
char
*
const
dev_mapping_help
()
{
static
char
help_msg
[]
=
"Device mapping options:
\n
"
...
...
@@ -334,3 +337,8 @@ char *dev_mapping_help()
return
help_msg
;
}
const
char
*
const
dev_get_version
()
{
return
libdevmap_version_s
;
}
This diff is collapsed.
Click to expand it.
liblinux/libdevmap.h
+
3
−
1
View file @
35c1a5b5
...
...
@@ -35,7 +35,9 @@ extern struct mapping_desc *dev_map(struct mapping_args *map_args,
uint32_t
map_length
);
extern
void
dev_unmap
(
struct
mapping_desc
*
dev
);
extern
struct
mapping_args
*
dev_parse_mapping_args
(
int
argc
,
char
*
argv
[]);
extern
char
*
dev_mapping_help
();
extern
const
char
*
const
dev_mapping_help
();
extern
const
char
*
const
dev_get_version
();
/** @}*/
#endif //__LIBDEVMAP_H__
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment