Dscano / P4-Kataran

Apache License 2.0
1 stars 0 forks source link

Is there intended to be a Makefile checked in? #1

Open jafingerhut opened 3 hours ago

jafingerhut commented 3 hours ago

The README mentions a make command line to build the code, but I do not see a Makefile anywhere in this repository, so hard to understand how that command could work.

jafingerhut commented 3 hours ago

I'd recommend modifying the step-by-step build instructions in your README to something like this:

$ P4C_DIR=path/to/your/copy/of/p4c/repo
$ p4c-ebpf --arch psa --target kernel -o out.c main.p4
$ clang -I${P4C_DIR}/backends/ebpf/runtime -I${P4C_DIR}/backends/ebpf/runtime/usr/include -O2 -g -c -emit-llvm -o out.bc out.c