Makefile: do not override RELEASE when build with XML

SCENARIO XML file has included RELEASE or DEBUG info already, so if RELEASE
is not specified in make command, Makefile should not override RELEASE info
in SCENARIO XML. If RELEASE is specified in make command, then RELEASE info
in SCENARIO XML could be overridden by make command.

The patch also fixed a issue that get correct board defconfig when build
hypervisor from TARGET_DIR;

Tracked-On: #4688

Signed-off-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
Victor Sun
2020-04-20 13:51:37 +08:00
committed by wenlingz
parent 27fb606d7a
commit 00a38e89c4
3 changed files with 18 additions and 5 deletions

View File

@@ -101,7 +101,6 @@ else
FIRMWARE ?= uefi
endif
RELEASE ?= 1
SCENARIO ?= sdc
O ?= build