Skip to content

Commit

Permalink
build saiserver and saiserver-dbg packages (#888)
Browse files Browse the repository at this point in the history
Signed-off-by: Guohan Lu <gulv@microsoft.com>
  • Loading branch information
lguohan authored Nov 8, 2018
1 parent 842bc88 commit 13d8b44
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 1 deletion.
11 changes: 11 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ Priority: optional
Build-Depends: dh-exec (>=0.3), debhelper (>= 9)
Standards-Version: 0.9.4

Package: saiserver
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Pre-Depends}
Description: This package contains SAI thrift server

Package: saiserver-dbg
Architecture: any
Depends: saiserver (= ${binary:Version}), ${misc:Depends}
Section: debug
Description: debugging symbols for SAI thrift server

Package: libsaithrift-dev
Architecture: any
Depends: ${shlibs:Depends}
Expand Down
2 changes: 2 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ override_dh_auto_clean:
dh_auto_clean
rm -rf *.egg-info

override_dh_strip:
dh_strip -psaiserver --dbg-package=saiserver-dbg
1 change: 1 addition & 0 deletions debian/saiserver.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
debian/usr/sbin/saiserver usr/sbin
1 change: 1 addition & 0 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ sai_ut:
clean :
rm -f $(TESTS) $(USER_ODIR)/gtest.a $(USER_ODIR)/gtest_main.a $(USER_ODIR)/*.o
make -C sai_ut clean
make -C saithrift clean


###########################################################
Expand Down
Binary file removed test/sai_ut/switching/sai_fdb_unit_test.o
Binary file not shown.
3 changes: 2 additions & 1 deletion test/saithrift/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ SAIDIR = ./include
SRC = ./src
THRIFT = /usr/bin/thrift
CTYPESGEN = /usr/local/bin/ctypesgen.py
LIBS = -lthrift -lpthread -lsai
LIBS = -lthrift -lpthread -lsai
SAI_LIBRARY_DIR ?= $(SAI_PREFIX)/lib
LDFLAGS = -L$(SAI_LIBRARY_DIR) -Wl,-rpath=$(SAI_LIBRARY_DIR)
CPP_SOURCES = \
Expand Down Expand Up @@ -88,6 +88,7 @@ saiserver: $(ODIR)/saiserver.o $(ODIR)/librpcserver.a

install-lib: $(ODIR)/librpcserver.a
$(INSTALL) -D $(ODIR)/librpcserver.a $(DESTDIR)/usr/lib/librpcserver.a
$(INSTALL) -D saiserver $(DESTDIR)/usr/sbin/saiserver
$(INSTALL) -D $(SRC)/switch_sai_rpc_server.h $(DESTDIR)/usr/include/switch_sai_rpc_server.h

install-pylib: $(PY_SOURCES) $(SAI_PY_HEADERS)
Expand Down

0 comments on commit 13d8b44

Please sign in to comment.