summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/pkg-python.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/pkg-python.mk b/package/pkg-python.mk
index e436f22aaa..5f137d58f9 100644
--- a/package/pkg-python.mk
+++ b/package/pkg-python.mk
@@ -94,7 +94,7 @@ ifndef $(2)_SETUP_TYPE
ifdef $(3)_SETUP_TYPE
$(2)_SETUP_TYPE = $($(3)_SETUP_TYPE)
else
- $$(error "$(1): Unknown or undefined <pkg>_SETUP_TYPE")
+ $$(error "$(2)_SETUP_TYPE must be set")
endif
endif
@@ -124,6 +124,8 @@ $(2)_BASE_BUILD_TGT = build
$(2)_BASE_BUILD_OPT =
$(2)_BASE_INSTALL_OPT = $$(HOST_PKG_PYTHON_SETUPTOOLS_INSTALL_OPT)
endif
+else
+$$(error "Invalid $(2)_SETUP_TYPE. Valid options are 'distutils' or 'setuptools'")
endif
# The below statement intends to calculate the dependencies of host
OpenPOWER on IntegriCloud