hv:fix need to make twice in hypervisor folder

now the dependency is like this in Makefile:
  acrn.bin << xxxx.a << xxxx.obj
if excute 'make' in hypervsior fold for the first time,
it can generate acrn.bin, if excute 'make' for second
time, it can not do the final link because there are
the same timestamp for acrn.bin and xxxx.a generated by
previous build, add PHONY to fix this issue.

Tracked-On: #3542
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
Mingqiang Chi 2019-08-06 11:46:55 +08:00 committed by ACRN System Integration
parent 4dfd5d6ae6
commit 973ba5b63f
1 changed files with 2 additions and 0 deletions

View File

@ -317,6 +317,8 @@ MODULES += $(LIB_DEBUG)
endif
MODULES += $(SYS_INIT_MOD)
.PHONY: $(MODULES)
DISTCLEAN_OBJS := $(shell find $(BASEDIR) -name '*.o')
VERSION := $(HV_OBJDIR)/include/version.h