HV:Acrn-hypvervisor Root Directory Clean-up and create misc/ folder for Acrn daemons, services and tools.

This patch is to clean-up acrn-hypervisor root directory, targt only 5 folders under acrn-hypervisor:1.hypervisor,2.devicemodel,3.misc,4.doc,5.build

Tracked-On: #3482
Signed-off-by: Terry Zou <terry.zou@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Terry Zou
2019-07-29 12:21:54 +08:00
committed by Xie, Nanlin
parent 555a03db99
commit a9c38a5cfb
119 changed files with 62 additions and 57 deletions

View File

@@ -0,0 +1,23 @@
objects = log_sys.o \
strutils.o \
cmdutils.o \
fsutils.o
all: check_obj $(objects)
check_obj:
@if [ ! -d $(BUILDDIR)/common/obj ]; then \
mkdir -p $(BUILDDIR)/common/obj/; \
fi
$(objects):%.o:%.c
$(CC) -c $(CFLAGS) $(INCLUDE) $< -o $(BUILDDIR)/common/obj/$@
.PHONY:clean
clean:
@echo "Clean objects and binaries"
@if [ -d $(BUILDDIR)/common/obj ]; then \
find $(BUILDDIR)/common/obj -name "*.o" -exec $(RM) {} \; 2>&1 || exit 0; \
fi
@if [ -d $(BUILDDIR)/common/obj ]; then \
$(RM) -r $(BUILDDIR)/common/obj ; \
fi