Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
40
Issues
40
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
PPSi
Commits
ff8de09e
Commit
ff8de09e
authored
Mar 10, 2023
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/ppsi_conf: add version information
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
e63c05d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
Makefile
tools/Makefile
+8
-1
ppsi_conf.c
tools/ppsi_conf.c
+2
-0
No files found.
tools/Makefile
View file @
ff8de09e
...
...
@@ -10,6 +10,8 @@ OBJCOPY = $(CROSS_COMPILE)objcopy
OBJDUMP
=
$(CROSS_COMPILE)
objdump
include
../.config
GIT_VER
=
$(
shell
git describe
--always
--dirty
)
GIT_USR
=
$(
shell
git config
--get
user.name
)
CFLAGS
=
-Wall
-ggdb
-I
../include
-I
../arch-
$(CONFIG_ARCH)
/include
PROGS
=
\
...
...
@@ -35,8 +37,13 @@ $(PROGS): $(wildcard *.h) $(wildcard ../include/ppsi/*.h)
ptpdump
:
dump-main.o dump-funcs.o
$(CC)
$(LDFLAGS)
dump-main.o dump-funcs.o
-o
$@
ppsi_conf
:
CFLAGS+=-I../arch-wrs/mini-rpc -L../arch-wrs/mini-rpc
ppsi_conf
:
LDFLAGS+=-lminipc
ppsi_conf
:
CFLAGS+=
\
-I../arch-wrs/mini-rpc
\
-L../arch-wrs/mini-rpc
\
-D__GIT_USR__="
\"
${GIT_USR}
\"
"
\
-D__GIT_VER__="
\"
${GIT_VER}
\"
"
\
clean
:
rm
-f
$(PROGS)
*
.o
*
~
...
...
tools/ppsi_conf.c
View file @
ff8de09e
...
...
@@ -61,6 +61,8 @@ void help(char *prgname)
" --priority2=<num> - set priority 2 to <num>
\n
"
" --tracking=<on|off|enable|disable|1|0>
\n
"
" - enable/disable tracking in servo
\n
"
"
\n\n
"
"Version: "
__GIT_VER__
" compiled by "
__GIT_USR__
" on "
__DATE__
", "
__TIME__
"
\n
"
);
exit
(
1
);
}
...
...
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