Makefile: do not rm board acpi info header
The $(BOARD)_acpi_info.h is generated by acrn-config tool, remove this header in make clean would cause failure when user finish configuring in webUI and start to make acrn-hypervisor by the command "make hypervisor BOARD=xxx SCENARIO=yyy" because we mandatory do make clean before making hypervisor. The patch replace the file removal with a warning string to hint user to check the file validity. Tracked-On: #3779 Signed-off-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
parent
28e24c4198
commit
f657bae0a8
6
Makefile
6
Makefile
|
@ -23,6 +23,7 @@ DOC_OUT := $(ROOT_OUT)/doc
|
||||||
BUILD_VERSION ?=
|
BUILD_VERSION ?=
|
||||||
BUILD_TAG ?=
|
BUILD_TAG ?=
|
||||||
DEFAULT_MENU_CONFIG_FILE ?= $(T)/hypervisor/build/.config
|
DEFAULT_MENU_CONFIG_FILE ?= $(T)/hypervisor/build/.config
|
||||||
|
GENED_ACPI_INFO_HEADER = $(T)/hypervisor/arch/x86/configs/$(BOARD)/$(BOARD)_acpi_info.h
|
||||||
|
|
||||||
ifneq ($(BOARD_FILE),)
|
ifneq ($(BOARD_FILE),)
|
||||||
override BOARD_FILE := $(shell if [ -f $(BOARD_FILE) ]; then realpath $(BOARD_FILE); fi)
|
override BOARD_FILE := $(shell if [ -f $(BOARD_FILE) ]; then realpath $(BOARD_FILE); fi)
|
||||||
|
@ -120,7 +121,10 @@ hypervisor:
|
||||||
echo "CONFIG_ENFORCE_VALIDATED_ACPI_INFO=y" >> $(HV_OUT)/.config; \
|
echo "CONFIG_ENFORCE_VALIDATED_ACPI_INFO=y" >> $(HV_OUT)/.config; \
|
||||||
elif [ "$(SCENARIO)" ]; then \
|
elif [ "$(SCENARIO)" ]; then \
|
||||||
echo "CONFIG_$(shell echo $(SCENARIO) | tr a-z A-Z)=y" >> $(HV_OUT)/.config; \
|
echo "CONFIG_$(shell echo $(SCENARIO) | tr a-z A-Z)=y" >> $(HV_OUT)/.config; \
|
||||||
fi \
|
fi; \
|
||||||
|
if [ -f $(GENED_ACPI_INFO_HEADER) ] && [ "$(CONFIG_XML_ENABLED)" != "true" ]; then \
|
||||||
|
echo "Warning: Find acrn-config tool generated $(GENED_ACPI_INFO_HEADER), please double check its validity."; \
|
||||||
|
fi; \
|
||||||
fi
|
fi
|
||||||
$(MAKE) -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT) BOARD_FILE=$(BOARD_FILE) SCENARIO_FILE=$(SCENARIO_FILE)
|
$(MAKE) -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT) BOARD_FILE=$(BOARD_FILE) SCENARIO_FILE=$(SCENARIO_FILE)
|
||||||
#ifeq ($(FIRMWARE),uefi)
|
#ifeq ($(FIRMWARE),uefi)
|
||||||
|
|
|
@ -446,7 +446,6 @@ $(HV_OBJDIR)/$(HV_FILE).out: $(MODULES)
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -f $(VERSION)
|
rm -f $(VERSION)
|
||||||
rm -f $(SOURCE_ACPI_INFO_HEADER)
|
|
||||||
rm -rf $(HV_OBJDIR)
|
rm -rf $(HV_OBJDIR)
|
||||||
|
|
||||||
.PHONY: distclean
|
.PHONY: distclean
|
||||||
|
|
Loading…
Reference in New Issue