diff options
authorPeter Korsgaard <>2018-03-12 22:36:03 (GMT)
committerPeter Korsgaard <>2018-03-14 07:39:12 (GMT)
commit32d2de2a6fb823a8eacb02d203b260c729522837 (patch)
parented0d9d6f36dfc3e99ee70cc34de0c380925e871f (diff)
buildroot-32d2de2a6fb823a8eacb02d203b260c729522837.tar.bz2 explicitly set <pkg>_VERSION / _SOURCE for robustness
Recently a build failure was reported which was traced back to to the fact that the user had a TOOLCHAIN_VERSION environment variable set which leads to a strange looking error message: toolchain/toolchain/ *** TOOLCHAIN_SITE cannot be empty when TOOLCHAIN_SOURCE is not. Stop. Environment variables automatically gets converted to make variables by GNU make - E.G. from the manual ( Variables in make can come from the environment in which make is run. Every environment variable that make sees when it starts up is transformed into a make variable with the same name and value So we end up in make with TOOLCHAIN_VERSION set to the value of the environment variable. As virtual packages do not have a version, there is no explicit TOOLCHAIN_VERSION = .. line in overriding this value, and the logic in package/ sets a default value for TOOLCHAIN_SOURCE when TOOLCHAIN_VERSION is set, and finally errors out as TOOLCHAIN_SITE isn't set. As a workaround, explicitly set <pkg>_VERSION and <pkg>_SOURCE to the empty string in the virtual package infrastructure. Signed-off-by: Peter Korsgaard <>
1 files changed, 5 insertions, 0 deletions
diff --git a/package/ b/package/
index 0de79d4..05bd63e 100644
--- a/package/
+++ b/package/
@@ -41,6 +41,11 @@ $$(error No implementation selected for virtual package $(1). Configuration erro
+# explicitly set these so we do not get confused by environment
+# variables with the same names.
+$(2)_VERSION =
+$(2)_SOURCE =
# Add dependency against the provider