Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
85
Issues
85
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
White Rabbit Switch - Software
Commits
31a319a3
Commit
31a319a3
authored
Jun 11, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace: moved tools to separate subdirectory, updated makefiles
parent
cf4a9cf7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
40 additions
and
422 deletions
+40
-422
Makefile
userspace/Makefile
+1
-3
Makefile
userspace/rtu_stat/Makefile
+0
-40
Makefile
userspace/spll_dbg_proxy/Makefile
+0
-34
Makefile
userspace/tools/Makefile
+39
-0
driver_stuff.h
userspace/tools/driver_stuff.h
+0
-0
rtu_stat.c
userspace/tools/rtu_stat.c
+0
-0
softpll_regs.h
userspace/tools/softpll_regs.h
+0
-0
spll_dbg_proxy.c
userspace/tools/spll_dbg_proxy.c
+0
-0
term.c
userspace/tools/term.c
+0
-0
term.h
userspace/tools/term.h
+0
-0
wr_mon.c
userspace/tools/wr_mon.c
+0
-0
wr_phytool.c
userspace/tools/wr_phytool.c
+0
-0
Makefile
userspace/wr_mon/Makefile
+0
-33
endpoint-regs.h
userspace/wr_phytool/endpoint-regs.h
+0
-312
No files found.
userspace/Makefile
View file @
31a319a3
...
...
@@ -13,9 +13,7 @@ WR_INSTALL_ROOT ?= $(WRS_OUTPUT_DIR)/images/wr
WRDEV_DIR
?=
$(WRS_BASE_DIR)
/..
# subdirectories we want to compile
SUBDIRS
=
mini-rpc libswitchhw
#libptpnetif
SUBDIRS
+=
wrsw_hal wrsw_rtud spll_dbg_proxy
SUBDIRS
+=
wr_mon rtu_stat
#test_rtu
SUBDIRS
=
mini-rpc ptp-noposix libswitchhw wrsw_hal wrsw_rtud tools
# all variables are exported
export
...
...
userspace/rtu_stat/Makefile
deleted
100644 → 0
View file @
cf4a9cf7
# # Standard stanza for cross-compilation (courtesy of the linux makefile)
AS
=
$(CROSS_COMPILE)
as
LD
=
$(CROSS_COMPILE)
ld
CC
=
$(CROSS_COMPILE)
gcc
CPP
=
$(CC)
-E
AR
=
$(CROSS_COMPILE)
ar
NM
=
$(CROSS_COMPILE)
nm
STRIP
=
$(CROSS_COMPILE)
strip
OBJCOPY
=
$(CROSS_COMPILE)
objcopy
OBJDUMP
=
$(CROSS_COMPILE)
objdump
OBJS
=
rtu_stat.o ../ptp-noposix/libptpnetif/hal_client.o
CFLAGS
=
-O2
-I
../include
-DDEBUG
-I
$(LINUX)
/include
-I
../ptp-noposix/libptpnetif
\
-I
../wrsw_hal
-I
../wrsw_rtud
-I
../mini-rpc
-g
LDFLAGS
=
-L
$(WR_INSTALL_ROOT)
/lib
-L
../mini-rpc
-lminipc
BINARY
=
rtu_stat
all
:
$(BINARY)
$(BINARY)
:
$(OBJS)
${
CC
}
$^
$(LDFLAGS)
-o
$@
clean
:
rm
-f
$(BINARY)
*
.o
*
~
install
:
install
-d
$(WR_INSTALL_ROOT)
/bin
install
$(BINARY)
$(WR_INSTALL_ROOT)
/bin
# local deprecated rules follow, don't use
run
:
all
-
scp
$(BINARY)
root@192.168.1.16:/tmp
-
scp
$(BINARY)
root@192.168.1.13:/tmp
deploy
:
all
scp
$(BINARY)
$(WR_INSTALL_ROOT)
/bin
\ No newline at end of file
userspace/spll_dbg_proxy/Makefile
deleted
100644 → 0
View file @
cf4a9cf7
CC
=
$(CROSS_COMPILE)
gcc
OBJS
=
spll_dbg_proxy.o
BINARY
=
spll_dbg_proxy
# We must include stuff from wr_ipc, which is installed.
# If this is built under build scripts, it's $WRS_OUTPUT_DIR/images/wr
WR_INSTALL_ROOT
?=
/usr/lib/white-rabbit
WR_INCLUDE
=
$(WR_INSTALL_ROOT)
/include
WR_LIB
=
$(WR_INSTALL_ROOT)
/lib
CFLAGS
=
-g
-Wall
-DDEBUG
-I
../include
-I
$(WR_INCLUDE)
LDFLAGS
=
-L
$(WR_LIB)
-L
../libswitchhw
-llua
-lm
-ldl
-lswitchhw
all
:
$(BINARY)
$(BINARY)
:
$(OBJS)
$(CC)
-o
$@
$^
$(LDFLAGS)
clean
:
rm
-f
$(BINARY)
$(OBJS)
install
:
install
-d
$(WR_INSTALL_ROOT)
/bin
install
$(BINARY)
$(WR_INSTALL_ROOT)
/bin
# deprecated: internal stuff.
scp
:
all
scp
$(BINARY)
root@pts-test03:/tftpboot/rootfs/wr/bin
userspace/
wr_phytool
/Makefile
→
userspace/
tools
/Makefile
View file @
31a319a3
TOOLS
=
rtu_stat wr_mon wr_phytool spll_dbg_proxy
# # Standard stanza for cross-compilation (courtesy of the linux makefile)
AS
=
$(CROSS_COMPILE)
as
LD
=
$(CROSS_COMPILE)
ld
CC
=
$(CROSS_COMPILE)
gcc
...
...
@@ -9,25 +12,28 @@ STRIP = $(CROSS_COMPILE)strip
OBJCOPY
=
$(CROSS_COMPILE)
objcopy
OBJDUMP
=
$(CROSS_COMPILE)
objdump
CFLAGS
=
-O2
-I
../../kernel/wbgen-regs
-DDEBUG
-I
$(LINUX)
/include
-I
../ptp-noposix/libptpnetif
\
-I
../wrsw_hal
-I
../wrsw_rtud
-I
../mini-rpc
-g
-I
../ptp-noposix/PTPWRd
-I
../include
OBJS
=
wr_phytool.o ../ptp-noposix/libptpnetif/ptpd_netif.o ../ptp-noposix/libptpnetif/hal_client.o ../wrsw_hal/rt_client.o
LDFLAGS
=
-L
$(WR_INSTALL_ROOT)
/lib
-L
../mini-rpc
-L
../ptp-noposix
-L
../libswitchhw
-lminipc
-lptpnetif
-lswitchhw
CFLAGS
+=
-O2
-DDEBUG
-I
$(LINUX)
/include
-I
../include
\
-I
../ptp-noposix/libptpnetif
-I
../wrsw_hal
-I
../mini-rpc
all
:
$(TOOLS)
LDFLAGS
=
-L
$(WR_INSTALL_ROOT)
/lib
-L
../mini-rpc
-L
../ptp-noposix/libptpnetif
\
-lminipc
rtu_stat
:
rtu_stat.o
${
CC
}
-o
$@
$^
$(LDFLAGS)
BINARY
=
wr_phytool
wr_mon
:
wr_mon.o term.o
${
CC
}
-o
$@
$^
$(LDFLAGS)
all
:
$(BINARY)
wr_phytool
:
wr_phytool.o ../wrsw_hal/rt_client.o
${
CC
}
-o
$@
$^
$(LDFLAGS)
wr_phytool
:
$(OBJS)
${
CC
}
$^
$(LDFLAGS)
-o
$@
spll_dbg_proxy
:
spll_dbg_proxy.o
${
CC
}
-o
$@
$^
$(LDFLAGS)
clean
:
rm
-f
$(
BINARY
)
*
.o
*
~
rm
-f
$(
TOOLS
)
*
.o
*
~
install
:
install
-d
$(WR_INSTALL_ROOT)
/bin
install
$(
BINARY
)
$(WR_INSTALL_ROOT)
/bin
install
$(
TOOLS
)
$(WR_INSTALL_ROOT)
/bin
userspace/
wr_phytool
/driver_stuff.h
→
userspace/
tools
/driver_stuff.h
View file @
31a319a3
File moved
userspace/
rtu_stat
/rtu_stat.c
→
userspace/
tools
/rtu_stat.c
View file @
31a319a3
File moved
userspace/
spll_dbg_proxy
/softpll_regs.h
→
userspace/
tools
/softpll_regs.h
View file @
31a319a3
File moved
userspace/
spll_dbg_proxy
/spll_dbg_proxy.c
→
userspace/
tools
/spll_dbg_proxy.c
View file @
31a319a3
File moved
userspace/
wr_mon
/term.c
→
userspace/
tools
/term.c
View file @
31a319a3
File moved
userspace/
wr_mon
/term.h
→
userspace/
tools
/term.h
View file @
31a319a3
File moved
userspace/
wr_mon
/wr_mon.c
→
userspace/
tools
/wr_mon.c
View file @
31a319a3
File moved
userspace/
wr_phytool
/wr_phytool.c
→
userspace/
tools
/wr_phytool.c
View file @
31a319a3
File moved
userspace/wr_mon/Makefile
deleted
100644 → 0
View file @
cf4a9cf7
# # Standard stanza for cross-compilation (courtesy of the linux makefile)
AS
=
$(CROSS_COMPILE)
as
LD
=
$(CROSS_COMPILE)
ld
CC
=
$(CROSS_COMPILE)
gcc
CPP
=
$(CC)
-E
AR
=
$(CROSS_COMPILE)
ar
NM
=
$(CROSS_COMPILE)
nm
STRIP
=
$(CROSS_COMPILE)
strip
OBJCOPY
=
$(CROSS_COMPILE)
objcopy
OBJDUMP
=
$(CROSS_COMPILE)
objdump
MON_OBJS
=
wr_mon.o term.o ../ptp-noposix/libptpnetif/hal_client.o
CFLAGS
+=
-O2
-DDEBUG
-I
$(LINUX)
/include
-I
../include
\
-I
../ptp-noposix/libptpnetif
-I
../ptp-noposix/wrsw_hal
-I
../mini-rpc
LDFLAGS
=
-L
$(WR_INSTALL_ROOT)
/lib
-L
../mini-rpc
-L
../ptp-noposix/libptpnetif
\
-lminipc
BINARY
=
wr_mon
all
:
$(BINARY)
wr_mon
:
$(MON_OBJS)
${
CC
}
$^
$(LDFLAGS)
-o
$@
clean
:
rm
-f
$(BINARY)
*
.o
*
~
install
:
install
-d
$(WR_INSTALL_ROOT)
/bin
install
$(BINARY)
$(WR_INSTALL_ROOT)
/bin
userspace/wr_phytool/endpoint-regs.h
deleted
100644 → 0
View file @
cf4a9cf7
This diff is collapsed.
Click to expand it.
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