Rejuvenate (to some extent) the basic pipeconf

- Use auto-generated BasicConstants
- Implement own pipeliner that maps to table0 (will remove soon
interpreter mapping for index table IDs)

Change-Id: I19fd2091605edc0efbe62134e1ad8e3336089cde
diff --git a/pipelines/basic/src/main/resources/Makefile b/pipelines/basic/src/main/resources/Makefile
index ca8430b..2ea393e 100644
--- a/pipelines/basic/src/main/resources/Makefile
+++ b/pipelines/basic/src/main/resources/Makefile
@@ -1,4 +1,4 @@
-all: basic int
+all: basic int constants
 
 basic: basic.p4
 	p4c-bm2-ss --arch v1model -o p4c-out/bmv2/basic.json \
@@ -10,5 +10,10 @@
 		--p4runtime-file p4c-out/bmv2/int.p4info \
 		--p4runtime-format text int.p4
 
+constants:
+	onos-gen-p4-constants \
+		-o $(ONOS_ROOT)/pipelines/basic/src/main/java/org/onosproject/pipelines/basic/BasicConstants.java \
+		basic p4c-out/bmv2/basic.p4info
+
 clean:
 	rm -rf p4c-out/bmv2/*