From b63705c8768e26fc295f750ac9f865fb4c9d8066 Mon Sep 17 00:00:00 2001 From: vincent-xs <114104889+vincent-xs@users.noreply.github.com> Date: Thu, 21 Sep 2023 15:48:13 -0400 Subject: [PATCH] update p4 compile dependancy to avoid parallel docker runs (#443) for both the json and the p4rt.txt --- dash-pipeline/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dash-pipeline/Makefile b/dash-pipeline/Makefile index eecf8679f..77eafe36b 100644 --- a/dash-pipeline/Makefile +++ b/dash-pipeline/Makefile @@ -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 \