Skip to content

Commit d04b141

Browse files
ywan170lijinxia
authored andcommitted
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>
1 parent dcb8a75 commit d04b141

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

Makefile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ ROOT_OUT := $(shell mkdir -p $(O);cd $(O);pwd)
99
HV_OUT := $(ROOT_OUT)/hypervisor
1010
DM_OUT := $(ROOT_OUT)/devicemodel
1111
TOOLS_OUT := $(ROOT_OUT)/tools
12+
MISC_OUT := $(ROOT_OUT)/misc
1213
export TOOLS_OUT
1314

14-
.PHONY: all hypervisor devicemodel tools
15-
all: hypervisor devicemodel tools
15+
.PHONY: all hypervisor devicemodel tools misc
16+
all: hypervisor devicemodel tools misc
1617

1718
hypervisor:
1819
make -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT) PLATFORM=$(PLATFORM) RELEASE=$(RELEASE) clean
@@ -34,12 +35,16 @@ tools:
3435
make -C $(T)/tools/acrntrace OUT_DIR=$(TOOLS_OUT)
3536
make -C $(T)/tools/acrn-crashlog OUT_DIR=$(TOOLS_OUT) RELEASE=$(RELEASE)
3637

38+
misc: tools
39+
mkdir -p $(MISC_OUT)
40+
make -C $(T)/misc OUT_DIR=$(MISC_OUT)
41+
3742
.PHONY: clean
3843
clean:
3944
rm -rf $(ROOT_OUT)
4045

4146
.PHONY: install
42-
install: hypervisor-install devicemodel-install tools-install
47+
install: hypervisor-install devicemodel-install tools-install misc-install
4348

4449
hypervisor-install:
4550
make -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT) PLATFORM=$(PLATFORM) RELEASE=$(RELEASE) install
@@ -55,3 +60,6 @@ tools-install:
5560
make -C $(T)/tools/acrn-manager OUT_DIR=$(TOOLS_OUT) install
5661
make -C $(T)/tools/acrntrace OUT_DIR=$(TOOLS_OUT) install
5762
make -C $(T)/tools/acrn-crashlog OUT_DIR=$(TOOLS_OUT) install
63+
64+
misc-install:
65+
make -C $(T)/misc OUT_DIR=$(MISC_OUT) install

misc/Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
T := $(CURDIR)
2+
3+
.PHONY: all cbc_lifecycle
4+
all: cbc_lifecycle
5+
6+
cbc_lifecycle:
7+
make -C $(T)/cbc_lifecycle OUT_DIR=$(OUT_DIR)
8+
9+
.PHONY: clean
10+
clean:
11+
make -C $(T)/cbc_lifecycle clean
12+
rm -rf $(OUT_DIR)
13+
14+
.PHONY: install
15+
install: cbc_lifecycle-install
16+
17+
cbc_lifecycle-install:
18+
make -C $(T)/cbc_lifecycle OUT_DIR=$(OUT_DIR) install

0 commit comments

Comments
 (0)