mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
HV: make: skip duplicated PLATFORM= on command line
Since .config has PLATFORM now, it is expected that the PLATFORM= command line option is no longer necessary as long as a proper .config exists. This patch implements this expectation. Now the platform to be selected is determined by the following steps. 1. If PLATFORM= is provided on the command line, the specified value is used. 2. If there is no PLATFORM= on the command line and PLATFORM is defined in config.mk, its value is used. 3. If neither PLATFORM= on the command line nor config.mk is available, a predefined default value is used. v1 -> v2: * 'make oldconfig' should not pass CONFIG_xxx to the script since config.mk can be out-dated. * Change the default value of PLATFORM to SBL for backward compatibility of 'make all'. Signed-off-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com> Acked-by: Geoffroy VanCutsem <geoffroy.vancutsem@intel.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
choice
|
||||
prompt "Platform"
|
||||
default PLATFORM_UEFI
|
||||
default PLATFORM_SBL
|
||||
|
||||
config PLATFORM_UEFI
|
||||
bool "UEFI"
|
||||
@@ -11,6 +11,11 @@ config PLATFORM_SBL
|
||||
|
||||
endchoice
|
||||
|
||||
config PLATFORM
|
||||
string
|
||||
default "uefi" if PLATFORM_UEFI
|
||||
default "sbl" if PLATFORM_SBL
|
||||
|
||||
config NR_IOAPICS
|
||||
int "Maximum number of IOAPICs supported"
|
||||
default 1
|
||||
|
Reference in New Issue
Block a user