pimgen: Remove interfaces.d
Obtain the information encoded in this file via scanning
the filesystem for interface files.
Add an interfaces-dir option to specify the filesystem path to scan.
Change-Id: I7f5220b515a012d6c6e504f54e4fcb324e6f1f87
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>wip
diff --git a/Makefile.am b/Makefile.am
index 1697e2b..1243e21 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -26,8 +26,12 @@
clean-local: clean-extra
+if IFACES_PATH
+PIMGEN_ARGS=-i $(IFACES_PATH)
+endif
+
generated.cpp:
- $(AM_V_GEN)$(PYTHON) $(top_srcdir)/pimgen.py -d $(extra_yamldir)/.. -o $(builddir) generate-cpp
+ $(AM_V_GEN)$(PYTHON) $(top_srcdir)/pimgen.py $(PIMGEN_ARGS) -d $(extra_yamldir)/.. -o $(builddir) generate-cpp
SUBDIRS = . test