Skip to content

Commit

Permalink
update p4 compile dependancy to avoid parallel docker runs (#443)
Browse files Browse the repository at this point in the history
for both the json and the p4rt.txt
  • Loading branch information
vincent-xs authored Sep 21, 2023
1 parent 1729021 commit b63705c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dash-pipeline/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ p4: $(P4_ARTIFACTS)
p4-clean:
rm -rf $(P4_OUTDIR)

$(P4_OUTDIR)/dash_pipeline.json: $(P4_OUTDIR)/dash_pipeline_p4rt.txt

# Compile P4 into bmv2 .json fle and P4info for SAI header autogeneration
$(P4_ARTIFACTS): $(P4_SRC)
$(P4_OUTDIR)/dash_pipeline_p4rt.txt: $(P4_SRC)
@echo "Compile P4 program $(P4_MAIN) for bmv2 ..."
mkdir -p $(P4_OUTDIR)
docker run \
Expand Down

0 comments on commit b63705c

Please sign in to comment.