Skip to content

Commit

Permalink
add debug debian package (sonic-net#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
lguohan authored May 1, 2017
1 parent 96f07a7 commit 43813c1
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 4 deletions.
45 changes: 45 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,48 @@ Architecture: any
Depends: libsaimetadata (= ${binary:Version})
Section: libdevel
Description: This package contains development files for SAI-Metadata.

Package: syncd-dbg
Architecture: any
Section: debug
Priority: extra
Depends:
syncd (= ${binary:Version}),
${misc:Depends}
Description: debugging symbols for syncd

Package: syncd-rpc-dbg
Architecture: any
Section: debug
Priority: extra
Depends:
syncd-rpc (= ${binary:Version}),
${misc:Depends}
Description: debugging symbols for syncd-rpc

Package: libsairedis-dbg
Architecture: any
Section: debug
Priority: extra
Depends:
libsairedis (= ${binary:Version}),
${misc:Depends}
Description: debugging symbols for libsairedis

Package: libsaivs-dbg
Architecture: any
Section: debug
Priority: extra
Depends:
libsaivs (= ${binary:Version}),
${misc:Depends}
Description: debugging symbols for libsaivs

Package: libsaimetadata-dbg
Architecture: any
Section: debug
Priority: extra
Depends:
libsaimetadata (= ${binary:Version}),
${misc:Depends}
Description: debugging symbols for libsaimetadata
15 changes: 11 additions & 4 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ binary: binary-syncd binary-syncd-rpc
binary-syncd:
$(shell echo > /tmp/syncd-build)
dh clean --with autotools-dev
dh build -N syncd-rpc --with autotools-dev
dh binary -N syncd-rpc --with autotools-dev
dh build -N syncd-rpc -N syncd-rpc-dbg --with autotools-dev
dh binary -N syncd-rpc -N syncd-rpc-dbg --with autotools-dev

binary-syncd-rpc:
$(shell echo '--enable-rpcserver=yes' > /tmp/syncd-build)
dh clean --with autotools-dev
dh build -N syncd --with autotools-dev
dh binary -N syncd --with autotools-dev
dh build -N syncd -N syncd-dbg --with autotools-dev
dh binary -N syncd -N syncd-dbg --with autotools-dev

# dh_make generated override targets
# This is example for Cmake (See https://bugs.debian.org/641051 )
Expand All @@ -56,3 +56,10 @@ override_dh_installinit:

override_dh_shlibdeps:
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info

override_dh_strip:
dh_strip -psyncd-rpc --dbg-package=syncd-rpc-dbg
dh_strip -psyncd --dbg-package=syncd-dbg
dh_strip -plibsairedis --dbg-package=libsairedis-dbg
dh_strip -plibsaivs --dbg-package=libsaivs-dbg
dh_strip -plibsaimetadata --dbg-package=libsaimetadata-dbg

0 comments on commit 43813c1

Please sign in to comment.