mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 10:04:42 +00:00
tools: acrn-crashlog: framework of acrn-crashlog
This is the first patch of acrn-crashlog. This patch initializes the framework of acrn-crashlog: acrnprobe, common, data, and usercrash. And it initializes the Makefile for each part. Signed-off-by: Liu Xinwu <xinwu.liu@intel.com> Signed-off-by: CHEN Gang <gang.c.chen@intel.com> Reviewed-by: Zhang Yanmin <yanmin.zhang@intel.com> Reviewed-by: Liu Chuansheng <chuansheng.liu@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com> Acked-by: Eddie Dong <Eddie.dong@intel.com>
This commit is contained in:
30
tools/acrn-crashlog/Makefile
Normal file
30
tools/acrn-crashlog/Makefile
Normal file
@@ -0,0 +1,30 @@
|
||||
#
|
||||
# ACRN-Crashlog Makefile
|
||||
#
|
||||
|
||||
BASEDIR := $(shell pwd)
|
||||
OUT_DIR ?= $(BASEDIR)
|
||||
BUILDDIR := $(OUT_DIR)/acrn-crashlog
|
||||
CC := gcc
|
||||
RM = rm
|
||||
|
||||
CFLAGS := -Wall -Wextra -pedantic
|
||||
CFLAGS += -m64 -D_GNU_SOURCE -DDEBUG_ACRN_CRASHLOG
|
||||
INCLUDE := -I $(BASEDIR)/common/include
|
||||
export INCLUDE
|
||||
export BUILDDIR
|
||||
|
||||
.PHONY:all
|
||||
all:
|
||||
$(MAKE) -C common
|
||||
$(MAKE) -C acrnprobe
|
||||
$(MAKE) -C usercrash
|
||||
|
||||
.PHONY:clean
|
||||
clean:
|
||||
$(MAKE) -C common clean
|
||||
$(MAKE) -C acrnprobe clean
|
||||
$(MAKE) -C usercrash clean
|
||||
@if [ -d "$(BUILDDIR)" ]; then \
|
||||
$(RM) -rf $(BUILDDIR); \
|
||||
fi
|
||||
Reference in New Issue
Block a user