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
84
Issues
84
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
9a77f753
Commit
9a77f753
authored
Sep 16, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace: build libsdb and sdb-read
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
7a367286
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
Makefile
userspace/Makefile
+2
-1
.gitignore
userspace/tools/.gitignore
+1
-0
Makefile
userspace/tools/Makefile
+7
-1
No files found.
userspace/Makefile
View file @
9a77f753
...
...
@@ -12,7 +12,8 @@ WR_INSTALL_ROOT ?= $(WRS_OUTPUT_DIR)/images/wr
WRDEV_DIR
?=
$(WRS_BASE_DIR)
/..
# subdirectories we want to compile
SUBDIRS
=
libptpnetif mini-rpc libswitchhw libsdb wrsw_hal wrsw_rtud tools snmpd
SUBDIRS
=
libptpnetif mini-rpc libswitchhw libsdb
\
wrsw_hal wrsw_rtud tools snmpd
# all variables are exported
export
...
...
userspace/tools/.gitignore
View file @
9a77f753
...
...
@@ -15,3 +15,4 @@ lm32-vuart
tru_mon
wrs_pstats
wrs_vlans
sdb-read
userspace/tools/Makefile
View file @
9a77f753
...
...
@@ -2,6 +2,7 @@ TOOLS = rtu_stat wr_mon wr_phytool spll_dbg_proxy load-lm32 load-virtex com
TOOLS
+=
mapper wmapper
TOOLS
+=
wrs_version wr_date wr_management lm32-vuart wrs_pstats
TOOLS
+=
wrs_vlans
TOOLS
+=
sdb-read
# # Standard stanza for cross-compilation (courtesy of the linux makefile)
...
...
@@ -27,6 +28,7 @@ CFLAGS = -O2 -g -Wall \
-I
../wrsw_hal
\
-I
../wrsw_rtud
\
-I
../mini-rpc
\
-I
../libsdb
\
-I
../ptp-noposix/PTPWRd
\
-I
../include
...
...
@@ -37,7 +39,8 @@ endif
LDFLAGS
=
-L
../mini-rpc
\
-L
../libptpnetif
\
-L
../libswitchhw
\
-lminipc
-lptpnetif
-lswitchhw
-llua
-lm
-ldl
-L
../libsdb
\
-lminipc
-lptpnetif
-lswitchhw
-lsdbfs
-llua
-lm
-ldl
all
:
$(TOOLS)
...
...
@@ -86,6 +89,9 @@ lm32-vuart: lm32-vuart.o
wrs_vlans
:
wrs_vlans.o
${
CC
}
-o
$@
$^
$(LDFLAGS)
sdb-read
:
sdb-read.o
${
CC
}
-o
$@
$^
$(LDFLAGS)
clean
:
rm
-f
$(TOOLS)
*
.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