Skip to content

Commit

Permalink
Make debian package for SAI VirtualSwitch (sonic-net#60)
Browse files Browse the repository at this point in the history
* Make debian package for SAI VirtualSwitch
* Change output lib from libsaivs to libsai
* Update .gitignore for virtual switch lib
  • Loading branch information
kcudnik authored and stcheng committed Aug 18, 2016
1 parent 26b2c90 commit 2028daf
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ debian/libsairedis.debhelper.log
debian/libsairedis.postinst.debhelper
debian/libsairedis.postrm.debhelper
debian/libsairedis.substvars
debian/libsaivs-dev.debhelper.log
debian/libsaivs-dev.substvars
debian/libsaivs.debhelper.log
debian/libsaivs.postinst.debhelper
debian/libsaivs.postrm.debhelper
debian/libsaivs.substvars
debian/syncd.debhelper.log
debian/syncd.postinst.debhelper
debian/syncd.postrm.debhelper
Expand All @@ -21,6 +27,8 @@ debian/syncd.substvars

debian/libsairedis-dev/
debian/libsairedis/
debian/libsaivs-dev/
debian/libsaivs/
debian/syncd/
debian/tmp/

Expand Down
10 changes: 10 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,13 @@ Depends: libsairedis (= ${binary:Version})
Section: libdevel
Description: This package contains development files for SAI-Redis.

Package: libsaivs
Architecture: any
Section: libs
Description: This package contains SAI-VirtualSwitch implementation for SONiC project.

Package: libsaivs-dev
Architecture: any
Depends: libsaivs (= ${binary:Version})
Section: libdevel
Description: This package contains development files for SAI-VirtualSwitch.
2 changes: 1 addition & 1 deletion debian/libsairedis.install
Original file line number Diff line number Diff line change
@@ -1 +1 @@
usr/lib/*/lib*.so.*
usr/lib/*/libsairedis*.so.*
2 changes: 2 additions & 0 deletions debian/libsaivs-dev.dirs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
usr/lib
usr/include
2 changes: 2 additions & 0 deletions debian/libsaivs-dev.links
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
/usr/lib/${DEB_HOST_MULTIARCH}/libsai.so.0 /usr/lib/${DEB_HOST_MULTIARCH}/libsai.so
1 change: 1 addition & 0 deletions debian/libsaivs.dirs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/lib
1 change: 1 addition & 0 deletions debian/libsaivs.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/lib/*/libsai.so.*
8 changes: 4 additions & 4 deletions vslib/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ else
DBGFLAGS = -g
endif

lib_LTLIBRARIES = libsaivs.la
lib_LTLIBRARIES = libsai.la

libsaivs_la_SOURCES = sai_vs_acl.cpp \
libsai_la_SOURCES = sai_vs_acl.cpp \
sai_vs_buffer.cpp \
sai_vs_fdb.cpp \
sai_vs_hash.cpp \
Expand Down Expand Up @@ -47,6 +47,6 @@ libsaivs_la_SOURCES = sai_vs_acl.cpp \
../../common/saiattributelist.cpp


libsaivs_la_CPPFLAGS = $(DBGFLAGS) $(AM_CPPFLAGS) $(CFLAGS_COMMON)
libsai_la_CPPFLAGS = $(DBGFLAGS) $(AM_CPPFLAGS) $(CFLAGS_COMMON)

libsaivs_la_LIBADD = -lhiredis -lswsscommon
libsai_la_LIBADD = -lhiredis -lswsscommon

0 comments on commit 2028daf

Please sign in to comment.