Skip to content

Commit

Permalink
Add p4 pipeline json to debian package
Browse files Browse the repository at this point in the history
Signed-off-by: Ze Gan <[email protected]>
  • Loading branch information
Pterosaur committed Mar 23, 2024
1 parent 9eff6d7 commit 342edc0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dash-pipeline/SAI/debian/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ all: debs
debs: libsai-dev_$(VERSION)_amd64.deb libsai_$(VERSION)_amd64.deb

libsai-dev_$(VERSION)_amd64.deb: ../SAI/inc/*.h ../SAI/experimental/*.h
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-dev_$(VERSION)_amd64/usr/include/sai
find -type d |xargs chmod go-w
install -vCD -m 644 ../SAI/inc/*.h libsai-dev_$(VERSION)_amd64/usr/include/sai/
Expand All @@ -16,6 +18,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 342edc0

Please sign in to comment.