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
d3b860f2
Commit
d3b860f2
authored
Feb 14, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec and whiterabbit: Makefile fixes
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
c663b16d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
28 deletions
+21
-28
Makefile
arch-spec/Makefile
+15
-21
Makefile
proto-ext-whiterabbit/Makefile
+6
-7
No files found.
arch-spec/Makefile
View file @
d3b860f2
# Alessandro Rubini for CERN, 2011 -- public domain
CFLAGS
+=
-ffreestanding
-Os
\
CFLAGS
+=
-ffreestanding
-Os
\
-ffunction-sections
-fdata-sections
\
-mmultiply-enabled
-mbarrel-shift-enabled
-mmultiply-enabled
-mbarrel-shift-enabled
\
ARCH_LDFLAGS
=
-nostdlib
-static
-T
$(ARCH)
.lds
# Root of wrpc-sw project
WRPCSW_ROOT
=
..
WRPCSW_ROOT
?
=
..
# FIXME ptp-noposix root; used till everything common would not be put in
# wrpc-sw
CFLAGS
+=
-I
$(WRPCSW_ROOT)
/include
-I
$(WRPCSW_ROOT)
/softpll
\
-I
$(WRPCSW_ROOT)
/boards/spec
\
# FIXME ptp-noposix root; used temporarily until we clean up
PTPNOPOSIX_ROOT
=
$(WRPCSW_ROOT)
/ptp-noposix
CFLAGS
+=
-I
$(WRPCSW_ROOT)
/include
-I
$(PTPNOPOSIX_ROOT)
/softpll
\
-I
$(WRPCSW_ROOT)
/boards/spec
-ffunction-sections
-fdata-sections
CFLAGS
+=
-I
$(PTPNOPOSIX_ROOT)
/PTPWRd/dep
-I
$(PTPNOPOSIX_ROOT)
/PTPWRd
# All files are under A (short for ARCH): I'm lazy
A
:=
arch-
$(ARCH)
LIBARCH
:=
$A
/libarch.a
LIBS
+=
-L
$A
-larch
OBJ-libarch
:=
$A
/spec-socket.o
\
$A
/spec-io.o
\
$A
/spec-timer.o
\
...
...
@@ -28,23 +34,11 @@ OBJ-libarch := $A/spec-socket.o \
$A
/spec-calibration.o
\
lib/div64.o
specdev-objects
:=
$(WRPCSW_ROOT)
/dev/uart.o
\
$(WRPCSW_ROOT)
/dev/syscon.o
\
$(WRPCSW_ROOT)
/dev/ep_pfilter.o
\
$(WRPCSW_ROOT)
/dev/endpoint.o
\
$(WRPCSW_ROOT)
/dev/pps_gen.o
\
$(WRPCSW_ROOT)
/dev/minic.o
\
$(WRPCSW_ROOT)
/arch/lm32/irq.o
\
$(WRPCSW_ROOT)
/dev/sdb.o
\
$(WRPCSW_ROOT)
/lib/net.o
\
$(WRPCSW_ROOT)
/wrc_ptp_ppsi.o
\
$(PTPNOPOSIX_ROOT)
/softpll/softpll_ng.o
\
$(PTPNOPOSIX_ROOT)
/libposix/freestanding-wrapper.o
\
$(LIBARCH)
:
$(OBJ-libarch)
$(AR)
r
$@
$^
all
:
$(TARGET).o $(LIBARCH)
$(TARGET).o
:
$(LIBARCH)
ppsi-bin
:
$(TARGET) $(TARGET).bin
# to build the target, we need -lstd again, in case we call functions that
...
...
proto-ext-whiterabbit/Makefile
View file @
d3b860f2
# Hosted environment: build the final exectuable
# All files are under directory D: I'm lazy
D
:=
proto-ext-whiterabbit
LIBWR
:=
$D
/libwr.a
LIBS
+=
-L
$D
-lwr
# don't link as a library, but as a big object. Otherwise we loose open/close
LIBWRO
:=
$D
/libwr.o
LIBS
+=
$(LIBWRO)
OBJ-libwr
:=
$D
/fsm-table.o
\
$D
/state-initializing.o
\
...
...
@@ -32,7 +31,7 @@ OBJ-libwr := $D/fsm-table.o \
$D
/wr-msg.o
\
$D
/wr-servo.o
$(TARGET).o
:
$(LIBWR)
$(TARGET).o
:
$(LIBWR
O
)
$(LIBWR)
:
$(OBJ-libwr)
$(
AR)
r
$@
$^
$(LIBWR
O
)
:
$(OBJ-libwr)
$(
LD)
-r
$^
-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