HV: introduce scenario Kconfig for sharing mode

Previously the vm_configs[] is defined separately for sharing mode and
partition mode, but the concept of hypervisor mode will be removed. Instead
we will introduce scenario Kconfig for hypervisor to load different vm
configurations.

SDC(Software Defined Cockpit) is a typical scenario that ACRN supported
so we introduce this scenario for previously sharing mode and move its
configurations to scenarios/sdc folder. The configuration could be used
for all boards reference.

Tracked-On: #2291

Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Victor Sun
2019-04-02 11:04:36 +08:00
committed by wenlingz
parent 564c9dcb79
commit 56c193851a
12 changed files with 62 additions and 45 deletions

View File

@@ -39,6 +39,11 @@ include $(BASEDIR)/../scripts/deps.mk
include scripts/kconfig/kconfig.mk
#initialize scenarios name
ifeq ($(CONFIG_SDC),y)
SCENARIO_NAME := sdc
endif
LD_IN_TOOL = scripts/genld.sh
BASH = $(shell which bash)
@@ -110,6 +115,7 @@ INCLUDE_PATH += bsp/include
INCLUDE_PATH += boot/include
INCLUDE_PATH += $(HV_OBJDIR)/include
INCLUDE_PATH += arch/x86/configs/$(CONFIG_BOARD)
INCLUDE_PATH += scenarios/$(SCENARIO_NAME)
CC ?= gcc
AS ?= as
@@ -140,6 +146,8 @@ C_SRCS += arch/x86/configs/vm_config.c
C_SRCS += arch/x86/configs/$(CONFIG_BOARD)/ve820.c
ifeq ($(CONFIG_PARTITION_MODE),y)
C_SRCS += arch/x86/configs/$(CONFIG_BOARD)/pt_dev.c
else
C_SRCS += scenarios/$(SCENARIO_NAME)/pt_dev.c
endif
C_SRCS += arch/x86/configs/$(CONFIG_BOARD)/board.c