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
4d261ef8
Commit
4d261ef8
authored
Feb 20, 2017
by
Alessandro Rubini
Committed by
Adam Wujek
Feb 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd_config: add ppsi configuration
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
a15f8233
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
Makefile
Makefile
+13
-4
cmd_config.c
shell/cmd_config.c
+3
-0
No files found.
Makefile
View file @
4d261ef8
...
...
@@ -159,9 +159,9 @@ $(obj-ppsi): gitmodules
sdb-lib/libsdbfs.a
:
$(MAKE)
-C
sdb-lib
$(OUTPUT).elf
:
$(LDS-y) $(AUTOCONF) gitmodules $(OUTPUT).o config.o
$(OUTPUT).elf
:
$(LDS-y) $(AUTOCONF) gitmodules $(OUTPUT).o config.o
pconfig.o
$(CC)
$(CFLAGS)
-D__GIT_VER__
=
"
\"
$(GIT_VER)
\"
"
-D__GIT_USR__
=
"
\"
$(GIT_USR)
\"
"
-c
revision.c
${
CC
}
-o
$@
revision.o config.o
$(OUTPUT)
.o
$(LDFLAGS)
${
CC
}
-o
$@
revision.o config.o
pconfig.o
$(OUTPUT)
.o
$(LDFLAGS)
${
OBJDUMP
}
-d
$(OUTPUT)
.elf
>
$(OUTPUT)
_disasm.S
$(SIZE)
$@
./save_size.sh
$(SIZE)
$@
...
...
@@ -172,12 +172,20 @@ $(OUTPUT).o: $(OBJS)
OBJCOPY-TARGET-$(CONFIG_LM32)
=
-O
elf32-lm32
-B
lm32
OBJCOPY-TARGET-$(CONFIG_HOST_PROCESS)
=
-O
elf64-x86-64
-B
i386
config.o
:
.config
config.o
:
.config
$(AUTOCONF)
grep
CONFIG .config
>
.config.bin
dd
bs
=
1
count
=
1
if
=
/dev/zero 2> /dev/null
>>
.config.bin
$(OBJCOPY)
-I
binary
$
(
OBJCOPY-TARGET-y
)
.config.bin
$@
rm
-f
.config.bin
ppsi/.config
:
$(obj-ppsi)
pconfig.o
:
ppsi/.config
grep
CONFIG ppsi/.config
>
.ppsiconfig.bin
dd
bs
=
1
count
=
1
if
=
/dev/zero 2> /dev/null
>>
.ppsiconfig.bin
$(OBJCOPY)
-I
binary
$
(
OBJCOPY-TARGET-y
)
.ppsiconfig.bin
$@
rm
-f
.ppsiconfig.bin
%.bin
:
%.elf
${
OBJCOPY
}
-O
binary
$^
$@
...
...
@@ -193,7 +201,8 @@ config.o: .config
$(AUTOCONF)
:
silentoldconfig gitmodules
clean
:
rm
-f
$(OBJS)
$(OUTPUT)
.o config.o revision.o
$(OUTPUT)
.elf
$(LDS)
\
rm
-f
$(OBJS)
$(OUTPUT)
.o config.o pconfig.o revision.o
$(OUTPUT)
.elf
\
$(LDS)
\
$(OUTPUT)
.bin rules-
*
.bin
\
$(OUTPUT)
.bram
$(OUTPUT)
.vhd
$(OUTPUT)
.mif
$(OUTPUT)
_disasm.S
$(MAKE)
-C
$(PPSI)
clean
...
...
shell/cmd_config.c
View file @
4d261ef8
...
...
@@ -12,11 +12,14 @@
#include <shell.h>
extern
char
_binary__config_bin_start
[];
extern
char
_binary__ppsiconfig_bin_start
[];
static
int
cmd_config
(
const
char
*
args
[])
{
pp_printf
(
" Current WRPC-SW configuration:
\n
"
);
puts
(
_binary__config_bin_start
);
pp_printf
(
" Current PPSi configuration:
\n
"
);
puts
(
_binary__ppsiconfig_bin_start
);
return
0
;
}
...
...
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