Skip to content

Commit

Permalink
[debian]: Add p4 pipeline json to debian package (#541)
Browse files Browse the repository at this point in the history
We want to install the libsai debian package into SONiC. The libsai with p4 pipeline configuration is one to one mapping. So this configuration should also be added to the package.

Signed-off-by: Ze Gan <[email protected]>
  • Loading branch information
Pterosaur authored Mar 26, 2024
1 parent 9eff6d7 commit cc28133
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dash-pipeline/SAI/debian/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ libsai-dev_$(VERSION)_amd64.deb: ../SAI/inc/*.h ../SAI/experimental/*.h
dpkg-deb --build --root-owner-group libsai-dev_$(VERSION)_amd64

libsai_$(VERSION)_amd64.deb: ../lib/libsai.so
mkdir -p -m 755 libsai_$(VERSION)_amd64/etc/dash
install -vCD ../../bmv2/dash_pipeline.bmv2/* libsai_$(VERSION)_amd64/etc/dash/
mkdir -p -m 755 libsai_$(VERSION)_amd64/usr/lib/x86_64-linux-gnu/
find -type d |xargs chmod go-w
install -vCD ../lib/libsai.so libsai_$(VERSION)_amd64/usr/lib/x86_64-linux-gnu/libsai.so
Expand Down

0 comments on commit cc28133

Please sign in to comment.