mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-20 04:33:55 +00:00
Makefile: do not define default BOARD/SCENARIO in top-level Makefile
The top-level Makefile should not define any default value as the hypervisor may have its own configurations set by previous builds. This patch also changes the hypervisor default RELEASE to `n`. Tracked-On: #5772 Signed-off-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
parent
73a85e425e
commit
c507acb6ab
10
Makefile
10
Makefile
@ -63,16 +63,6 @@ else
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
BOARD ?= kbl-nuc-i7
|
|
||||||
|
|
||||||
ifeq ($(BOARD), apl-nuc)
|
|
||||||
override BOARD := nuc6cayh
|
|
||||||
else ifeq ($(BOARD), kbl-nuc-i7)
|
|
||||||
override BOARD := nuc7i7dnb
|
|
||||||
endif
|
|
||||||
|
|
||||||
SCENARIO ?= industry
|
|
||||||
|
|
||||||
O ?= build
|
O ?= build
|
||||||
ROOT_OUT := $(shell mkdir -p $(O);cd $(O);pwd)
|
ROOT_OUT := $(shell mkdir -p $(O);cd $(O);pwd)
|
||||||
HV_OUT := $(ROOT_OUT)/hypervisor
|
HV_OUT := $(ROOT_OUT)/hypervisor
|
||||||
|
@ -141,6 +141,13 @@ ifdef RELEASE
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Backward-compatibility for BOARD=apl-nuc or BOARD=kbl-nuc
|
||||||
|
ifeq ($(BOARD), apl-nuc)
|
||||||
|
override BOARD := nuc6cayh
|
||||||
|
else ifeq ($(BOARD), kbl-nuc-i7)
|
||||||
|
override BOARD := nuc7i7dnb
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(findstring $(MAKECMDGOALS),distclean),)
|
ifeq ($(findstring $(MAKECMDGOALS),distclean),)
|
||||||
-include $(HV_CONFIG_MK)
|
-include $(HV_CONFIG_MK)
|
||||||
endif
|
endif
|
||||||
@ -181,7 +188,7 @@ endif
|
|||||||
|
|
||||||
$(eval $(call determine_config,BOARD,nuc7i7dnb))
|
$(eval $(call determine_config,BOARD,nuc7i7dnb))
|
||||||
$(eval $(call determine_config,SCENARIO,industry))
|
$(eval $(call determine_config,SCENARIO,industry))
|
||||||
$(eval $(call determine_build_type,y))
|
$(eval $(call determine_build_type,n))
|
||||||
|
|
||||||
$(HV_BOARD_XML):
|
$(HV_BOARD_XML):
|
||||||
@if [ ! -f $(HV_BOARD_XML) ]; then \
|
@if [ ! -f $(HV_BOARD_XML) ]; then \
|
||||||
|
Loading…
Reference in New Issue
Block a user