Makefile: create top-level target for the ACRN life_mngr

The ACRN life_mngr is not built by default as it is a component
that will run in the User VM. Instead we create a 'life_mngr'
(and 'life_mngr-install') targets to build it individually from
the top-level folder.

Tracked-On: #5660
Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
This commit is contained in:
Geoffroy Van Cutsem 2021-03-03 15:07:34 +01:00 committed by wenlingz
parent f007fc501a
commit 52d2b0954a
1 changed files with 9 additions and 2 deletions

View File

@ -75,7 +75,7 @@ HV_CFG_LOG = $(HV_OUT)/cfg.log
VM_CONFIGS_DIR = $(T)/misc/config_tools
ASL_COMPILER ?= $(shell which iasl)
.PHONY: all hypervisor devicemodel tools doc
.PHONY: all hypervisor devicemodel tools life_mngr doc
all: hypervisor devicemodel tools
@cat $(HV_CFG_LOG)
@ -121,6 +121,10 @@ tools:
mkdir -p $(TOOLS_OUT)
$(MAKE) -C $(T)/misc OUT_DIR=$(TOOLS_OUT) RELEASE=$(RELEASE)
life_mngr:
mkdir -p $(TOOLS_OUT)
$(MAKE) -C $(T)/misc OUT_DIR=$(TOOLS_OUT) RELEASE=$(RELEASE) life_mngr
doc:
$(MAKE) -C $(T)/doc html BUILDDIR=$(DOC_OUT)
@ -130,7 +134,7 @@ clean:
$(MAKE) -C $(T)/doc BUILDDIR=$(DOC_OUT) clean
rm -rf $(ROOT_OUT)
.PHONY: install
.PHONY: install life_mngr-install
install: hypervisor-install devicemodel-install tools-install
hypervisor-install:
@ -168,3 +172,6 @@ devicemodel-install:
tools-install:
$(MAKE) -C $(T)/misc OUT_DIR=$(TOOLS_OUT) RELEASE=$(RELEASE) install
life_mngr-install:
$(MAKE) -C $(T)/misc OUT_DIR=$(TOOLS_OUT) RELEASE=$(RELEASE) acrn-life-mngr-install