From: Doug Goldstein Subject: [RFC 29/29] build: convert kexec options to CONFIG_KEXEC Date: Mon, 5 Oct 2015 17:03:40 -0500 Message-ID: <1444082620-3253-30-git-send-email-cardoe@cardoe.com> References: <1444082620-3253-1-git-send-email-cardoe@cardoe.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1444082620-3253-1-git-send-email-cardoe@cardoe.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Doug Goldstein List-Id: xen-devel@lists.xenproject.org Replace kexec := y in Rules.mk with a Kconfig option called CONFIG_KEXEC Signed-off-by: Doug Goldstein --- xen/Rules.mk | 6 ------ xen/common/Kconfig | 11 +++++++++++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/xen/Rules.mk b/xen/Rules.mk index 0742b06..9480ad0 100644 --- a/xen/Rules.mk +++ b/xen/Rules.mk @@ -10,7 +10,6 @@ lock_profile ?= n crash_debug ?= n frame_pointer ?= n lto ?= n -kexec ?= y include $(BASEDIR)/include/config/auto.conf @@ -65,11 +64,6 @@ ifneq ($(max_phys_irqs),) CFLAGS-y += -DMAX_PHYS_IRQS=$(max_phys_irqs) endif -CONFIG_KEXEC-$(CONFIG_HAS_KEXEC) := $(kexec) -CONFIG_KEXEC := $(CONFIG_KEXEC-y) - -CFLAGS-$(CONFIG_KEXEC) += -DCONFIG_KEXEC - AFLAGS-y += -D__ASSEMBLY__ -include $(BASEDIR)/include/xen/config.h # Clang's built-in assembler can't handle .code16/.code32/.code64 yet diff --git a/xen/common/Kconfig b/xen/common/Kconfig index 58858d2..6de2cac 100644 --- a/xen/common/Kconfig +++ b/xen/common/Kconfig @@ -29,4 +29,15 @@ config HAS_KEXEC config HAS_GDBSX bool +# Enable/Disable kexec support +config KEXEC + def_bool y + depends on HAS_KEXEC + ---help--- + Allows a running Xen hypervisor to be replaced with another OS + without rebooting. This is primarily used to execute a crash + environment to collect information on a Xen hypervisor or dom0 crash. + + If unsure, say Y. + endmenu -- 2.4.9