misc: Add Makefile for misc directory

This patch adds build architecture for misc directory and support cbc_lifecycle
build.

Signed-off-by: Yu Wang <yu1.wang@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Yu Wang 2018-05-30 17:23:37 +08:00 committed by lijinxia
parent dcb8a75dee
commit d04b1419b2
2 changed files with 29 additions and 3 deletions

View File

@ -9,10 +9,11 @@ ROOT_OUT := $(shell mkdir -p $(O);cd $(O);pwd)
HV_OUT := $(ROOT_OUT)/hypervisor
DM_OUT := $(ROOT_OUT)/devicemodel
TOOLS_OUT := $(ROOT_OUT)/tools
MISC_OUT := $(ROOT_OUT)/misc
export TOOLS_OUT
.PHONY: all hypervisor devicemodel tools
all: hypervisor devicemodel tools
.PHONY: all hypervisor devicemodel tools misc
all: hypervisor devicemodel tools misc
hypervisor:
make -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT) PLATFORM=$(PLATFORM) RELEASE=$(RELEASE) clean
@ -34,12 +35,16 @@ tools:
make -C $(T)/tools/acrntrace OUT_DIR=$(TOOLS_OUT)
make -C $(T)/tools/acrn-crashlog OUT_DIR=$(TOOLS_OUT) RELEASE=$(RELEASE)
misc: tools
mkdir -p $(MISC_OUT)
make -C $(T)/misc OUT_DIR=$(MISC_OUT)
.PHONY: clean
clean:
rm -rf $(ROOT_OUT)
.PHONY: install
install: hypervisor-install devicemodel-install tools-install
install: hypervisor-install devicemodel-install tools-install misc-install
hypervisor-install:
make -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT) PLATFORM=$(PLATFORM) RELEASE=$(RELEASE) install
@ -55,3 +60,6 @@ tools-install:
make -C $(T)/tools/acrn-manager OUT_DIR=$(TOOLS_OUT) install
make -C $(T)/tools/acrntrace OUT_DIR=$(TOOLS_OUT) install
make -C $(T)/tools/acrn-crashlog OUT_DIR=$(TOOLS_OUT) install
misc-install:
make -C $(T)/misc OUT_DIR=$(MISC_OUT) install

18
misc/Makefile Normal file
View File

@ -0,0 +1,18 @@
T := $(CURDIR)
.PHONY: all cbc_lifecycle
all: cbc_lifecycle
cbc_lifecycle:
make -C $(T)/cbc_lifecycle OUT_DIR=$(OUT_DIR)
.PHONY: clean
clean:
make -C $(T)/cbc_lifecycle clean
rm -rf $(OUT_DIR)
.PHONY: install
install: cbc_lifecycle-install
cbc_lifecycle-install:
make -C $(T)/cbc_lifecycle OUT_DIR=$(OUT_DIR) install