From 9c48fc4ac51e0dd684ef703c2d31dba377bfccd2 Mon Sep 17 00:00:00 2001 From: Tianhua Sun Date: Fri, 9 Aug 2019 09:02:56 +0800 Subject: [PATCH] hv: fix failed to build release version build with Kconfig setting Hardcode "RELEASE=0" will cause the value of "CONFIG_RELEASE" to be 'n' in kconfig.mk, it will be overwritten "CONFIG_RELEASE" with Kconfig setting. Tracked-On: #3565 Signed-off-by: Tianhua Sun Reviewed-by: Junjie Mao --- hypervisor/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hypervisor/Makefile b/hypervisor/Makefile index 660818a42..286d72a72 100644 --- a/hypervisor/Makefile +++ b/hypervisor/Makefile @@ -19,7 +19,6 @@ HV_OBJDIR ?= $(CURDIR)/build HV_MODDIR ?= $(HV_OBJDIR)/modules HV_FILE := acrn SUB_MAKEFILES := $(wildcard */Makefile) -RELEASE ?= 0 LIB_MOD = $(HV_MODDIR)/lib_mod.a BOOT_MOD = $(HV_MODDIR)/boot_mod.a @@ -111,7 +110,7 @@ else LDFLAGS += -static endif -ifeq ($(RELEASE),y) +ifeq (y, $(CONFIG_RELEASE)) LDFLAGS += -s endif