mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-07 03:04:49 +00:00
Makefile: remove default BOARD and SCENARIO values
Remove the fact that a default BOARD and SCENARIO are used in case there was none provided by the user, nor any available from a previous build. Up until now, if that was the case, a build was triggered using a default set of BOARD and SCENARIO values. The 'make' command will now error out asking the user to specify those parameters. Tracked-On: #7112 Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
This commit is contained in:
parent
49e234129f
commit
af8b51a63f
@ -19,7 +19,7 @@ else
|
|||||||
endif
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# usage: determine_config <symbol> <default>
|
# usage: determine_config <symbol>
|
||||||
#
|
#
|
||||||
# BOARD and SCENARIO can be specified in the following places.
|
# BOARD and SCENARIO can be specified in the following places.
|
||||||
#
|
#
|
||||||
@ -28,8 +28,6 @@ endef
|
|||||||
#
|
#
|
||||||
# 2. Variables defined on the command line when invoking 'make'.
|
# 2. Variables defined on the command line when invoking 'make'.
|
||||||
#
|
#
|
||||||
# 3. Default values in this script.
|
|
||||||
#
|
|
||||||
# In place #2 it can be either a board/scenario name or path to an XML file. Depending on where these variables are
|
# In place #2 it can be either a board/scenario name or path to an XML file. Depending on where these variables are
|
||||||
# defined and their values, this script behaves as follows.
|
# defined and their values, this script behaves as follows.
|
||||||
#
|
#
|
||||||
@ -39,7 +37,7 @@ endef
|
|||||||
#
|
#
|
||||||
# * If a variable is defined in either #1 or #2 (but not both), that value is effective for the build.
|
# * If a variable is defined in either #1 or #2 (but not both), that value is effective for the build.
|
||||||
#
|
#
|
||||||
# * If a variable is defined in neither #1 nor #2, the default value is effective for the build.
|
# * If a variable is defined in neither #1 nor #2, the build terminates with an error message.
|
||||||
#
|
#
|
||||||
# If #2 gives a path to an XML file, the board/scenario defined in that file is used for the comparison above.
|
# If #2 gives a path to an XML file, the board/scenario defined in that file is used for the comparison above.
|
||||||
#
|
#
|
||||||
@ -73,10 +71,10 @@ ifneq ($($(1)),)
|
|||||||
else
|
else
|
||||||
ifdef CONFIG_$(1)
|
ifdef CONFIG_$(1)
|
||||||
override $(1) := $(CONFIG_$(1))
|
override $(1) := $(CONFIG_$(1))
|
||||||
else
|
|
||||||
override $(1) := $(2)
|
|
||||||
endif
|
|
||||||
override $(1)_FILE := $(HV_PREDEFINED_DATA_DIR)/$$(BOARD)/$$($(1)).xml
|
override $(1)_FILE := $(HV_PREDEFINED_DATA_DIR)/$$(BOARD)/$$($(1)).xml
|
||||||
|
else
|
||||||
|
$$(error There is no $(1) parameter specified on the command-line and none from a previous build. Please provide a valid $(1) parameter)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -180,8 +178,8 @@ endif
|
|||||||
# file. SCENARIO/SCENARIO_FILE are used in the same way. The following block translates the user-visible BOARD/SCENARIO
|
# file. SCENARIO/SCENARIO_FILE are used in the same way. The following block translates the user-visible BOARD/SCENARIO
|
||||||
# (which is multiplexed) to the internal representation.
|
# (which is multiplexed) to the internal representation.
|
||||||
|
|
||||||
$(eval $(call determine_config,BOARD,nuc11tnbi5))
|
$(eval $(call determine_config,BOARD))
|
||||||
$(eval $(call determine_config,SCENARIO,shared))
|
$(eval $(call determine_config,SCENARIO))
|
||||||
$(eval $(call determine_build_type,n))
|
$(eval $(call determine_build_type,n))
|
||||||
|
|
||||||
$(HV_BOARD_XML):
|
$(HV_BOARD_XML):
|
||||||
|
Loading…
Reference in New Issue
Block a user