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
50
Issues
50
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
68ad6479
Commit
68ad6479
authored
Oct 22, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all archs: print commit hash at startup
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
e733ca9d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
2 deletions
+13
-2
Makefile
Makefile
+4
-0
unix-startup.c
arch-unix/unix-startup.c
+2
-0
wrc_ptp_ppsi.c
arch-wrpc/wrc_ptp_ppsi.c
+2
-1
wrs-startup.c
arch-wrs/wrs-startup.c
+3
-0
bare-startup.c
lib-bare/bare-startup.c
+2
-1
No files found.
Makefile
View file @
68ad6479
...
...
@@ -27,12 +27,16 @@ OBJDUMP = $(CROSS_COMPILE)objdump
# Instead of repeating "ppsi" over and over, bless it TARGET
TARGET
=
ppsi
# we should use linux/scripts/setlocalversion instead...
VERSION
=
$(
shell
git describe
--always
--dirty
)
# The main target is the big object file.
all
:
$(TARGET).o
# CFLAGS to use. Both this Makefile (later) and app-makefile may grow CFLAGS
CFLAGS
=
$(USER_CFLAGS)
CFLAGS
+=
-Wall
-O2
-ggdb
-Iinclude
-fno-common
CFLAGS
+=
-DPPSI_VERSION
=
\"
$(VERSION)
\"
# to avoid ifdef as much as possible, I use the kernel trick for OBJ variables
OBJ-y
:=
fsm.o diag.o
...
...
arch-unix/unix-startup.c
View file @
68ad6479
...
...
@@ -39,6 +39,8 @@ int main(int argc, char **argv)
setbuf
(
stdout
,
NULL
);
pp_printf
(
"PPSi. Commit %s, built on "
__DATE__
"
\n
"
,
PPSI_VERSION
);
ppg
=
&
ppg_static
;
ppg
->
defaultDS
=
&
defaultDS
;
ppg
->
currentDS
=
&
currentDS
;
...
...
arch-wrpc/wrc_ptp_ppsi.c
View file @
68ad6479
...
...
@@ -67,7 +67,8 @@ int wrc_ptp_init()
uart_init_hw
();
uart_init_sw
();
pp_printf
(
"PPSi for WRPC. Compiled on "
__DATE__
"
\n
"
);
pp_printf
(
"PPSi for WRPC. Commit %s, built on "
__DATE__
"
\n
"
,
PPSI_VERSION
);
return
0
;
}
...
...
arch-wrs/wrs-startup.c
View file @
68ad6479
...
...
@@ -46,6 +46,9 @@ int main(int argc, char **argv)
setbuf
(
stdout
,
NULL
);
pp_printf
(
"PPSi. Commit %s, built on "
__DATE__
"
\n
"
,
PPSI_VERSION
);
hal_ch
=
minipc_client_create
(
WRSW_HAL_SERVER_ADDR
,
MINIPC_FLAG_VERBOSE
);
if
(
!
hal_ch
)
{
/* FIXME should we retry with minipc_client_create? */
...
...
lib-bare/bare-startup.c
View file @
68ad6479
...
...
@@ -39,7 +39,8 @@ int ppsi_main(int argc, char **argv)
struct
pp_instance
*
ppi
=
&
ppi_static
;
/* no malloc, one instance */
struct
bare_timex
t
;
pp_printf
(
"ppsi starting. Built on %s
\n
"
,
__DATE__
);
pp_printf
(
"PPSi, bare kernel. Commit %s, built on "
__DATE__
"
\n
"
,
PPSI_VERSION
);
ppi
->
glbs
=
ppg
;
ppg
->
defaultDS
=
&
defaultDS
;
...
...
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