Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
30
Issues
30
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Schedules
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
White Rabbit core collection
Commits
51d12350
Commit
51d12350
authored
Jun 09, 2017
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: add git version and build info to wr-streamers and wrpc-diags
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
18fe747d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
Makefile
tools/Makefile
+1
-1
wr-streamers.c
tools/wr-streamers.c
+7
-0
wrpc-diags.c
tools/wrpc-diags.c
+7
-0
No files found.
tools/Makefile
View file @
51d12350
...
...
@@ -2,6 +2,7 @@ EB ?= no
SDBFS
?=
no
CFLAGS
=
-Wall
-ggdb
-I
../include
-I
../liblinux
-I
../liblinux/extest
CFLAGS
+=
-D__GIT_VER__
=
"
\"
$(GIT_VER)
\"
"
-D__GIT_USR__
=
"
\"
$(GIT_USR)
\"
"
LDFLAGS
=
-lutil
-L
../liblinux
-ldevmap
-L
../liblinux/extest
-lextest
LDFLAGS
+=
-lreadline
ALL
=
genraminit genramvhd genrammif
...
...
@@ -50,7 +51,6 @@ wrpc-dump: wrpc-dump.c dump-info-host.o
$(CC)
$(CFLAGS)
-I
../ppsi/include
-I
../ppsi/arch-wrpc/include
-I
..
\
-I
../softpll
\
$^
-o
$@
\
-D__GIT_VER__
=
"
\"
$(GIT_VER)
\"
"
-D__GIT_USR__
=
"
\"
$(GIT_USR)
\"
"
wr-streamers
:
wr-streamers.c
$(CC)
$(CFLAGS)
$^
$(LDFLAGS)
-o
$@
...
...
tools/wr-streamers.c
View file @
51d12350
...
...
@@ -337,10 +337,17 @@ struct cmd_desc wrstm_cmd[WRSTM_CMD_NB + 1] = {
{
0
,
},
};
void
print_version
(
void
)
{
fprintf
(
stderr
,
"Built in wrpc-sw repo ver:%s, by %s on %s %s
\n
"
,
__GIT_VER__
,
__GIT_USR__
,
__TIME__
,
__DATE__
);
}
static
void
wrstm_help
(
char
*
prog
)
{
fprintf
(
stderr
,
"%s [options]
\n
"
,
prog
);
fprintf
(
stderr
,
"%s
\n
"
,
dev_mapping_help
());
print_version
();
}
static
void
sig_hndl
()
...
...
tools/wrpc-diags.c
View file @
51d12350
...
...
@@ -284,10 +284,17 @@ static int read_diags(struct cmd_desc *cmdd, struct atom *atoms)
return
1
;
}
void
print_version
(
void
)
{
fprintf
(
stderr
,
"Built in wrpc-sw repo ver:%s, by %s on %s %s
\n
"
,
__GIT_VER__
,
__GIT_USR__
,
__TIME__
,
__DATE__
);
}
static
void
wrcdiag_help
(
char
*
prog
)
{
fprintf
(
stderr
,
"%s [options]
\n
"
,
prog
);
fprintf
(
stderr
,
"%s
\n
"
,
dev_mapping_help
());
print_version
();
}
static
void
sig_hndl
()
...
...
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