Add bf-p4c compiler output from BF SDE 9.0.0 (part 1)
Change-Id: I589644d529edcf7f534c5f4fe5085ba1a9fa7bac
diff --git a/src/main/p4/tofino-compile.sh b/src/main/p4/build.sh
similarity index 96%
rename from src/main/p4/tofino-compile.sh
rename to src/main/p4/build.sh
index cab4c0c..3ceea41 100755
--- a/src/main/p4/tofino-compile.sh
+++ b/src/main/p4/build.sh
@@ -34,7 +34,7 @@
# PWD is the directory where this script is called from (should be the root of
# this repo).
-P4C_OUT=${PWD}/p4c-out/${PROFILE}
+P4C_OUT=${PWD}/tmp/${PROFILE}
# DIR is this file directory.
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@@ -61,7 +61,7 @@
mkdir -p ${P4C_OUT}/${pltf}
(
set -x
- $P4C_CMD --arch v1model -g \
+ $P4C_CMD --arch v1model -g --create-graphs --verbose 2 \
-o ${P4C_OUT}/${pltf} -I ${P4_SRC_DIR} \
${pp_flags} ${OTHER_PP_FLAGS} \
--p4runtime-files ${P4C_OUT}/${pltf}/p4info.txt \