[P4-dev] How to compile a specific backend
cascaval at barefootnetworks.com
Wed Oct 11 13:24:14 EDT 2017
You can selectively enable only the backends that you need when you configure using cmake, using the following options -- set to OFF the ones you don't need:
OPTION (ENABLE_DOCS "Build the documentation" OFF)
OPTION (ENABLE_P4RUNTIME_TO_PD "Build the P4Runtime PD Generator" ON)
OPTION (ENABLE_BMV2 "Build the BMV2 backend (required for the full test suite)" ON)
OPTION (ENABLE_EBPF "Build the EBPF backend (required for the full test suite)" ON)
OPTION (ENABLE_P4TEST "Build the P4Test backend (required for the full test suite)" ON)
OPTION (ENABLE_P4C_GRAPHS "Build the p4c-graphs backend" ON)
> On Oct 11, 2017, at 05:33, gyanesh patra <pgyanesh.patra at gmail.com> wrote:
> I have some changes to the backend "graphs" locally. To test the code, I am always doing "make -j4" under "p4c/build" directory.
> Is there any other faster manner to compile a specific "backend" instead trying to compile the whole "p4c"?
> P Gyanesh Kumar Patra
> P4-dev mailing list
> P4-dev at lists.p4.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the P4-dev