--- a/make/InitSupport.gmk Sat Oct 14 09:51:25 2017 +0100
+++ b/make/InitSupport.gmk Mon Oct 16 08:43:42 2017 +0200
@@ -70,10 +70,10 @@
$(subst \ ,\#,$(MAKEOVERRIDES))))
# Setup information about available configurations, if any.
- ifeq ($(CUSTOM_BUILD_DIR), )
+ ifneq ($(CUSTOM_ROOT), )
+ build_dir=$(CUSTOM_ROOT)/build
+ else
build_dir=$(topdir)/build
- else
- build_dir=$(CUSTOM_BUILD_DIR)
endif
all_spec_files=$(wildcard $(build_dir)/*/spec.gmk)
# Extract the configuration names from the path
@@ -227,7 +227,11 @@
else
# Use spec.gmk files in the build output directory
ifeq ($$(all_spec_files),)
- $$(info Error: No configurations found for $$(topdir).)
+ ifneq ($(CUSTOM_ROOT), )
+ $$(info Error: No configurations found for $$(CUSTOM_ROOT).)
+ else
+ $$(info Error: No configurations found for $$(topdir).)
+ endif
$$(info Please run 'bash configure' to create a configuration.)
$$(info )
$$(error Cannot continue)