scons: Update the Kconfig build options
The CL updates the Kconfig: 1. Replace the USE_NULL_ISA with BUILD_ISA 2. The USE_XXX_ISAs are depends on BUILD_ISA 3. If the BUILD_ISA is set, at least one of USE_XXX_ISAs must be set 4. Refactor the USE_KVM option Change-Id: I2a600dea9fb671263b0191c46c5790ebbe91a7b8
This commit is contained in:
@@ -56,20 +56,17 @@ Import('*')
|
||||
#
|
||||
#################################################################
|
||||
|
||||
if env['CONF']['USE_ARM_ISA']:
|
||||
isa = 'arm'
|
||||
elif env['CONF']['USE_MIPS_ISA']:
|
||||
isa = 'mips'
|
||||
elif env['CONF']['USE_POWER_ISA']:
|
||||
isa = 'power'
|
||||
elif env['CONF']['USE_RISCV_ISA']:
|
||||
isa = 'riscv'
|
||||
elif env['CONF']['USE_SPARC_ISA']:
|
||||
isa = 'sparc'
|
||||
elif env['CONF']['USE_X86_ISA']:
|
||||
isa = 'x86'
|
||||
elif env['CONF']['USE_NULL_ISA']:
|
||||
isa = 'null'
|
||||
if env['CONF']['BUILD_ISA']:
|
||||
if (
|
||||
not env['CONF']['USE_ARM_ISA'] and
|
||||
not env['CONF']['USE_MIPS_ISA'] and
|
||||
not env['CONF']['USE_POWER_ISA'] and
|
||||
not env['CONF']['USE_RISCV_ISA'] and
|
||||
not env['CONF']['USE_SPARC_ISA'] and
|
||||
not env['CONF']['USE_X86_ISA']
|
||||
):
|
||||
error("At least one ISA need to be set")
|
||||
|
||||
|
||||
amdgpu_isa = ['gcn3', 'vega']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user