Makefile: Alter VPP_PYTHON_PREFIX for preloading deps 75/11475/2
authorEd Kern <ejk@cisco.com>
Mon, 2 Apr 2018 22:42:48 +0000 (16:42 -0600)
committerDamjan Marion <dmarion.lists@gmail.com>
Tue, 3 Apr 2018 19:58:00 +0000 (19:58 +0000)
Allow setting of VPP_PYTHON_PREFIX to alternate location
so the python prereqs can be installed into base image
Also added test-dep trigger to isolate dependency install
from actual test run

Change-Id: Ia80f5dbf71bc24eb46cd6586bcadd474ef822704
Signed-off-by: Ed Kern <ejk@cisco.com>
Makefile
test/Makefile

index 7007ac8..6dd2fc2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -330,7 +330,7 @@ wipe-release: test-wipe $(BR)/.deps.ok
 
 rebuild-release: wipe-release build-release
 
-export VPP_PYTHON_PREFIX=$(BR)/python
+export VPP_PYTHON_PREFIX ?= $(BR)/python
 
 libexpand = $(subst $(subst ,, ),:,$(foreach lib,$(1),$(BR)/install-$(2)-native/vpp/$(lib)/$(3)))
 
@@ -377,6 +377,9 @@ test-shell:
 test-shell-debug:
        $(call test,vpp,vpp_debug,shell)
 
+test-dep:
+       @make -C test test-dep
+
 test-doc:
        @make -C test doc
 
index 7984e31..cbeec79 100644 (file)
@@ -128,6 +128,8 @@ sanity: verify-no-running-vpp
 ext:
        make -C ext
 
+test-dep: verify-python-path $(PAPI_INSTALL_DONE)
+
 test: verify-python-path $(PAPI_INSTALL_DONE) ext sanity reset
        $(call retest-func)