mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-27 23:15:00 +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:
@@ -44,7 +44,7 @@ def main():
|
||||
if sym_val.find("=") == -1:
|
||||
continue
|
||||
sym_name, val = sym_val.split("=")[:2]
|
||||
if sym_name in kconfig.syms.keys():
|
||||
if sym_name in kconfig.syms.keys() and val:
|
||||
cmdline_conf[sym_name] = val
|
||||
|
||||
# Check if the old .config conflicts with those specified on cmdline
|
||||
|
||||
Reference in New Issue
Block a user