From patchwork Mon Jul 2 16:19:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 140826 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp139815ljj; Mon, 2 Jul 2018 09:21:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf4KZcydlFcB9MtPeCIzxHUf6O11lfMd/p+SY//ybBD+VmBND9ORXIaAV3bueHNDHOA58C9 X-Received: by 2002:a02:9c33:: with SMTP id q48-v6mr19610035jak.103.1530548490152; Mon, 02 Jul 2018 09:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530548490; cv=none; d=google.com; s=arc-20160816; b=QkNq0evOCjt2oCY+mhRi+eQXGxjgGQOLJwxuVH2S+RBLgYp5i5z4At4LNc/P9svqt8 41r0JiCEuS21nhRQ09OPkzc6982Y2jx3GD8DsmbdzKHOImBNDeP0IlZxcsL4gWC5/Cy+ QKU85qZgoMfkLaNO2gQkTI768khfTFO6P2XjjLEBZ+LwzcQq8kbqwrYYch9vC9ob1pQx Ruk4uF6wFrv/EnALVDVOccbgUcJsihPNU19mYDvDIFrgZaEHfV6JgtNM0Id9RPGattUr YKVbFjHiA4AZoX8FoZ4+gtgktDPUap12W11UoA+dOySjfr7zFRzYTe6EaUqCEPfD2ZjT NHEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:references:in-reply-to:message-id:date:to:from :arc-authentication-results; bh=upsAuc29RYiNgUrMwEGdPgoXfi/+JJvTTRwziSaX6gk=; b=ErEHlkD2dabojyhK09XTv/ryOwLXspgXhvLFefuJvECBrhVgkWIdQ+kpE+stxDdp5/ s34i3o2iz12L66hizDyCzAT/XhmVgDApboNc9PtQNEzwVvlNPdQ4blkQ2RgeMFvWC2CH un7G1wmuU3ZP1elAq4SKY6H5JvuGPrtkvkdqqPS6c/S0uQeqzy9Z3d2By0oQnQFUjeSf RnPIeaKhQ27EfbWkZ/j1XrZGMhDB/VsEmCmf3ExhRI9uT4z6J6qKosSDnnFXvguQcqOC PLo3KawP5EOVaSCyujgLOH9NHRFvgcM9sBoWDr+wkv2KoTMtt2DBC/P3vBpJ/rt+ZqUl Rm9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id r8-v6si3304853jad.22.2018.07.02.09.21.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Jul 2018 09:21:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1fa1Xy-0006rG-M1; Mon, 02 Jul 2018 16:19:26 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1fa1Xx-0006qK-KA for xen-devel@lists.xen.org; Mon, 02 Jul 2018 16:19:25 +0000 X-Inumbo-ID: ab80b0eb-7e13-11e8-8089-bc764e045a96 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTP id ab80b0eb-7e13-11e8-8089-bc764e045a96; Mon, 02 Jul 2018 18:19:18 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D3B881650; Mon, 2 Jul 2018 09:19:24 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.206.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 15E7F3F5BA; Mon, 2 Jul 2018 09:19:22 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Mon, 2 Jul 2018 17:19:08 +0100 Message-Id: <20180702161910.2013-6-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180702161910.2013-1-julien.grall@arm.com> References: <20180702161910.2013-1-julien.grall@arm.com> Subject: [Xen-devel] [PATCH v2 5/7] xen: Don't build libelf for Arm X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Wei Liu , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Julien Grall , Jan Beulich MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Now that ELF support has been dropped to boot Dom0, no-one is using libelf within the hypervisor. Introduce a config option to select libelf on x86 and keep unselected for Arm. Signed-off-by: Julien Grall Acked-by: Jan Beulich Reviewed-by: Stefano Stabellini --- Changes in v2: - Rename HAS_ELF to NEEDS_LIBELF --- xen/arch/x86/Kconfig | 1 + xen/common/Kconfig | 3 +++ xen/common/Makefile | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/Kconfig b/xen/arch/x86/Kconfig index f64fc56739..c75f0526d8 100644 --- a/xen/arch/x86/Kconfig +++ b/xen/arch/x86/Kconfig @@ -24,6 +24,7 @@ config X86 select HAS_PDX select HAS_UBSAN select HAS_VPCI if !PV_SHIM_EXCLUSIVE + select NEEDS_LIBELF select NUMA config ARCH_DEFCONFIG diff --git a/xen/common/Kconfig b/xen/common/Kconfig index 9043dce937..d4c0951a24 100644 --- a/xen/common/Kconfig +++ b/xen/common/Kconfig @@ -44,6 +44,9 @@ config HAS_GDBSX config HAS_IOPORTS bool +config NEEDS_LIBELF + bool + config NEEDS_LIST_SORT bool diff --git a/xen/common/Makefile b/xen/common/Makefile index 24d4752ccc..b3e0b0ebf4 100644 --- a/xen/common/Makefile +++ b/xen/common/Makefile @@ -78,5 +78,5 @@ obj-$(CONFIG_TMEM) += $(tmem-y) subdir-$(CONFIG_COVERAGE) += coverage subdir-$(CONFIG_UBSAN) += ubsan -subdir-y += libelf +subdir-$(CONFIG_NEEDS_LIBELF) += libelf subdir-$(CONFIG_HAS_DEVICE_TREE) += libfdt