Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
Software for White Rabbit PTP Core
Commits
4d8eaf1d
Commit
4d8eaf1d
authored
Oct 20, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mprintf: make it a config item, always selected
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
f2145e24
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
1 deletion
+16
-1
Kconfig
Kconfig
+4
-0
Makefile
Makefile
+2
-0
wrc.h
include/wrc.h
+7
-0
lib.mk
lib/lib.mk
+3
-1
No files found.
Kconfig
View file @
4d8eaf1d
mainmenu "WR PTP Core software configuration"
mainmenu "WR PTP Core software configuration"
config MPRINTF
boolean
default y
config ETHERBONE
config ETHERBONE
boolean "Compile Etherbone support in wrpc-sw"
boolean "Compile Etherbone support in wrpc-sw"
help
help
...
...
Makefile
View file @
4d8eaf1d
...
@@ -20,6 +20,8 @@ obj-y += wrc_main.o wrc_ptp.o monitor/monitor.o
...
@@ -20,6 +20,8 @@ obj-y += wrc_main.o wrc_ptp.o monitor/monitor.o
cflags-y
=
-include
$(CURDIR)
/include/generated/autoconf.h
\
cflags-y
=
-include
$(CURDIR)
/include/generated/autoconf.h
\
-Iinclude
-I
.
-Iinclude
-I
.
cflags-$(CONFIG_PP_PRINTF)
+=
-I
$(CURDIR)/pp_printf
cflags-$(CONFIG_PTP_NOPOSIX)
+=
\
cflags-$(CONFIG_PTP_NOPOSIX)
+=
\
-ffreestanding
\
-ffreestanding
\
-DPTPD_FREESTANDING
\
-DPTPD_FREESTANDING
\
...
...
include/wrc.h
View file @
4d8eaf1d
...
@@ -7,8 +7,15 @@
...
@@ -7,8 +7,15 @@
* one function and doesn't deserve an header of its own.
* one function and doesn't deserve an header of its own.
* Also, this brings in very common and needed headers
* Also, this brings in very common and needed headers
*/
*/
#ifdef CONFIG_MPRINTF
int
mprintf
(
char
const
*
format
,
...)
int
mprintf
(
char
const
*
format
,
...)
__attribute__
((
format
(
printf
,
1
,
2
)));
__attribute__
((
format
(
printf
,
1
,
2
)));
#else
#include <pp-printf.h>
#define mprintf pp_printf
#define vprintf pp_vprintf
#define sprintf pp_sprintf
#endif
void
wrc_mon_gui
(
void
);
void
wrc_mon_gui
(
void
);
void
shell_init
(
void
);
void
shell_init
(
void
);
...
...
lib/lib.mk
View file @
4d8eaf1d
obj-y += lib/mprintf.o lib/util.o
obj-$(CONFIG_MPRINTF) += lib/mprintf.o
obj-y += lib/util.o
obj-$(CONFIG_ETHERBONE) += lib/arp.o lib/icmp.o lib/ipv4.o lib/bootp.o
obj-$(CONFIG_ETHERBONE) += lib/arp.o lib/icmp.o lib/ipv4.o lib/bootp.o
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