67 # The '\#' <=> '\ 'dance is needed to keep values with space in them connected. |
67 # The '\#' <=> '\ 'dance is needed to keep values with space in them connected. |
68 USER_MAKE_VARS := $(subst \#,\ , $(filter-out $(addsuffix =%, $(INIT_CONTROL_VARIABLES)), \ |
68 USER_MAKE_VARS := $(subst \#,\ , $(filter-out $(addsuffix =%, $(INIT_CONTROL_VARIABLES)), \ |
69 $(subst \ ,\#,$(MAKEOVERRIDES)))) |
69 $(subst \ ,\#,$(MAKEOVERRIDES)))) |
70 |
70 |
71 # Setup information about available configurations, if any. |
71 # Setup information about available configurations, if any. |
72 build_dir=$(topdir)/build |
72 ifeq ($(CUSTOM_BUILD_DIR), ) |
|
73 build_dir=$(topdir)/build |
|
74 else |
|
75 build_dir=$(CUSTOM_BUILD_DIR) |
|
76 endif |
73 all_spec_files=$(wildcard $(build_dir)/*/spec.gmk) |
77 all_spec_files=$(wildcard $(build_dir)/*/spec.gmk) |
74 # Extract the configuration names from the path |
78 # Extract the configuration names from the path |
75 all_confs=$(patsubst %/spec.gmk, %, $(patsubst $(build_dir)/%, %, $(all_spec_files))) |
79 all_confs=$(patsubst %/spec.gmk, %, $(patsubst $(build_dir)/%, %, $(all_spec_files))) |
76 |
80 |
77 # Check for unknown command-line variables |
81 # Check for unknown command-line variables |
340 ############################################################################## |
344 ############################################################################## |
341 # Helper functions for the 'main' target. These functions assume a single, |
345 # Helper functions for the 'main' target. These functions assume a single, |
342 # proper and existing SPEC is included. |
346 # proper and existing SPEC is included. |
343 ############################################################################## |
347 ############################################################################## |
344 |
348 |
345 include $(SRC_ROOT)/make/common/MakeBase.gmk |
349 include $(TOPDIR)/make/common/MakeBase.gmk |
346 |
350 |
347 # Define basic logging setup |
351 # Define basic logging setup |
348 BUILD_LOG := $(OUTPUT_ROOT)/build.log |
352 BUILD_LOG := $(OUTPUT_ROOT)/build.log |
349 BUILD_PROFILE_LOG := $(OUTPUT_ROOT)/build-profile.log |
353 BUILD_PROFILE_LOG := $(OUTPUT_ROOT)/build-profile.log |
350 |
354 |