acrn-hypervisor/hypervisor/arch/x86
Junjie Mao c4493cc1f8 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>
2018-06-15 15:50:09 +08:00
..
configs HV: config: add Kconfig and defconfigs for sbl & uefi 2018-06-08 17:21:13 +08:00
debug HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
guest hv: replace vlapic_init by vlapic_reset in vcpu_reset 2018-06-14 15:44:09 +08:00
assign.c irq: convert irq/vector numbers to unsigned 2018-06-12 10:21:58 +08:00
cpu_primary.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
cpu_state_tbl.c HV: make cpu state table static const 2018-06-14 13:39:59 +08:00
cpu.c hv: Fix typo of trampline with trampoline 2018-06-12 15:54:16 +08:00
cpuid.c hv: enable MTRR virtualization 2018-06-08 12:06:15 +08:00
ept.c instr_emul: refine decode_instruction with copy_from_gva 2018-06-11 12:14:43 +08:00
gdt.c HV: config: adapt to the generated config.h 2018-06-08 17:21:13 +08:00
idt.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
interrupt.c irq: convert irq/vector numbers to unsigned 2018-06-12 10:21:58 +08:00
intr_lapic.c hv: add suspend/resume callback for lapic. 2018-06-14 13:41:45 +08:00
intr_main.c license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
io.c license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
ioapic.c hv: Add suspend/resume callback for ioapic 2018-06-14 13:41:45 +08:00
irq.c irq: convert irq/vector numbers to unsigned 2018-06-12 10:21:58 +08:00
Kconfig HV: make: skip duplicated PLATFORM= on command line 2018-06-15 15:50:09 +08:00
mmu.c hv: add APIs to allow updating EPT mem type 2018-06-08 12:06:15 +08:00
mtrr.c hv: update EPT when guests change MTRRs 2018-06-08 12:06:15 +08:00
notify.c irq: convert irq/vector numbers to unsigned 2018-06-12 10:21:58 +08:00
pm.c hv: Add initialize pm.c 2018-06-14 13:41:45 +08:00
retpoline-thunk.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
softirq.c HV: bug fix in operating softirq 2018-06-14 13:41:12 +08:00
timer.c HV:treewide:C99-friendly per_cpu implementation change the per_cpu method 2018-06-05 17:09:00 +08:00
trampoline.S hv: Fix typo of trampline with trampoline 2018-06-12 15:54:16 +08:00
trusty.c trusty: invept should go through all vcpus 2018-06-07 12:28:18 +08:00
vmexit.c HV: Remove misuesed __unused 2018-06-14 13:42:42 +08:00
vmx_asm.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
vmx.c fix MISRA C"Literal zero used in pointer context" 2018-06-11 12:13:43 +08:00
vtd.c HV: Remove misuesed __unused 2018-06-14 13:42:42 +08:00