Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr-switch-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
white-rabbit
wr-switch-sw
Commits
fdc17107
Commit
fdc17107
authored
Jul 25, 2012
by
Tomasz Wlostowski
Committed by
Alessandro Rubini
Jul 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rt: use libsoftpll from ptp-noposix
parent
3d4e68c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
Makefile
rt/Makefile
+7
-5
main.c
rt/main.c
+1
-1
No files found.
rt/Makefile
View file @
fdc17107
CROSS_COMPILE
?=
/opt/gcc-lm32/bin/
lm32-elf-
CROSS_COMPILE
?=
lm32-elf-
OBJS
=
main.o dev/uart.o dev/timer.o lib/mprintf.o dev/ad9516.o dev/softpll_ng.o ipc/minipc-mem-server.o ipc/rt_ipc.o
LIBSOFTPLL_DIR
=
../userspace/ptp-noposix/softpll
OBJS
=
main.o dev/uart.o dev/timer.o lib/mprintf.o dev/ad9516.o ipc/minipc-mem-server.o ipc/rt_ipc.o
$(LIBSOFTPLL_DIR)
/softpll_ng.o
CFLAGS_PLATFORM
=
-mmultiply-enabled
-mbarrel-shift-enabled
-Idev
LDFLAGS_PLATFORM
=
-mmultiply-enabled
-mbarrel-shift-enabled
-nostdlib
-T
target/lm32/ram.ld
...
...
@@ -9,8 +11,8 @@ OBJS_PLATFORM=target/lm32/crt0.o target/lm32/irq.o
CC
=
$(CROSS_COMPILE)
gcc
OBJCOPY
=
$(CROSS_COMPILE)
objcopy
OBJDUMP
=
$(CROSS_COMPILE)
objdump
CFLAGS
=
$(CFLAGS_PLATFORM)
-ffunction-sections
-fdata-sections
-O3
-Iinclude
-include
include/trace.h
-ffreestanding
-Iipc
LDFLAGS
=
$(LDFLAGS_PLATFORM)
-
ffunction-sections
-fdata
-sections
-O3
-Iinclude
-ffreestanding
CFLAGS
=
$(CFLAGS_PLATFORM)
-ffunction-sections
-fdata-sections
-O3
-Iinclude
-include
include/trace.h
-ffreestanding
-Iipc
-I
$(LIBSOFTPLL_DIR)
-I
.
LDFLAGS
=
$(LDFLAGS_PLATFORM)
-
Wl
,--gc
-sections
-O3
-Iinclude
-ffreestanding
SIZE
=
$(CROSS_COMPILE)
size
OBJS
+=
$(OBJS_PLATFORM)
...
...
@@ -25,7 +27,7 @@ clean:
rm
-f
$(OBJS)
$(OUTPUT)
.elf
$(OUTPUT)
.bin
$(OUTPUT)
.ram
scp
:
all
scp rt_cpu.bin root@p
ts-test03.cern.ch
:/tftpboot/rootfs/wr/lib/firmware
scp rt_cpu.bin root@p
cbe12132
:/tftpboot/rootfs/wr/lib/firmware
%.o
:
%.c
${
CC
}
$(CFLAGS)
$(LIB_DIR)
-c
$^
-o
$@
...
...
rt/main.c
View file @
fdc17107
...
...
@@ -2,7 +2,7 @@
#include "uart.h"
#include "timer.h"
#include "
dev/
softpll_ng.h"
#include "softpll_ng.h"
#include "minipc.h"
...
...
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