From patchwork Tue Jun 5 17:12:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 137788 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1217232lji; Tue, 5 Jun 2018 10:15:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJO7by8y9g4Rv7Fz9UBnqVmhFpjboozMus1KkFqp6nrsSJmWK+wUACoeUgV78nGrj/ae07q X-Received: by 2002:a24:8385:: with SMTP id d127-v6mr91211ite.58.1528218936349; Tue, 05 Jun 2018 10:15:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528218936; cv=none; d=google.com; s=arc-20160816; b=jpraVc9xa5DSXlSdP+Qa5Qqa9jm8hTmxdTfGOG9S5QevU8SyHZzuWbM7YSnsDM4LVH cpyEDrc4Yfh4lHDvRUA15kMQdFvdpVoGyqy9kgqVOcjd65X43wWEfCbFaCdzEpEAKFLU RxtWYyTBLBCk+0NGouNBSLkvnGWHN7KtoFzV++RzEFgG5ZObnIz3dVgbR/W50B/DsR5H 0Zw0pp5vlMgVl7fMxTtg0R8imT9CHRphJNwxTEKS+856G6PM3Gydfgufpe2mKnc76PZu PZrTaZn6/kvVrSNx55IejlMbgNsgfoMNLjg5/0IgsgZ97PtbfCKLAOq+4auBOB7J0qN+ 8taA== 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=DKL2fJgeFHtiIjf4aB+GVMkmtsrSflzMENWwMs8OTvY=; b=gM/NUKcY0wS1wwKyHfhKlsW6I79hwkbYEk5xs2J/CdmWwTean+A99UrL+wtOonNW9M cRBEUZ5OLiIKOUnU4YF8ZEZDQdakiUa+uLmYrF2zcZhFYYYa1wu1DMRDbCucOtXQz5jE piscl5tDGLnsR/8qDGbeTHAOJxnxTiGyfudhYdNeDDehtkOrxSz3XnzfMP3MdEH0Wo2S P8mEuV2LI1kegKBHlWCChUOsHA6YtBtarcexetqGGj1777eS639LEzGtPJVfOOnxTL9o M6NRNQzwNwGeBK7qCn9PNZDWTxiyLhF++vOoIBK8hCVZNYPlSHafdVyO6Ja/CDVO1vtc r3PQ== 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 q130-v6si1781380itb.91.2018.06.05.10.15.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Jun 2018 10:15:36 -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 1fQFW0-0007xx-7v; Tue, 05 Jun 2018 17:13:00 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1fQFVy-0007xW-1b for xen-devel@lists.xenproject.org; Tue, 05 Jun 2018 17:12:58 +0000 X-Inumbo-ID: 609436ea-68e3-11e8-9728-bc764e045a96 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTP id 609436ea-68e3-11e8-9728-bc764e045a96; Tue, 05 Jun 2018 19:10:42 +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 7A0481435; Tue, 5 Jun 2018 10:12:56 -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 8C8D23F25D; Tue, 5 Jun 2018 10:12:54 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org, xen-devel@lists.xen.org Date: Tue, 5 Jun 2018 18:12:35 +0100 Message-Id: <20180605171237.30601-6-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180605171237.30601-1-julien.grall@arm.com> References: <20180605171237.30601-1-julien.grall@arm.com> Subject: [Xen-devel] [PATCH 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 Reviewed-by: Stefano Stabellini --- 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..3d388133ef 100644 --- a/xen/arch/x86/Kconfig +++ b/xen/arch/x86/Kconfig @@ -12,6 +12,7 @@ config X86 select HAS_CPUFREQ select HAS_EHCI select HAS_EX_TABLE + select HAS_ELF select HAS_GDBSX select HAS_IOPORTS select HAS_KEXEC diff --git a/xen/common/Kconfig b/xen/common/Kconfig index 9043dce937..3cf551c736 100644 --- a/xen/common/Kconfig +++ b/xen/common/Kconfig @@ -17,6 +17,9 @@ config HAS_ALTERNATIVE config HAS_DEVICE_TREE bool +config HAS_ELF + bool + config HAS_EX_TABLE bool diff --git a/xen/common/Makefile b/xen/common/Makefile index 24d4752ccc..3cc808bd83 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_HAS_ELF) += libelf subdir-$(CONFIG_HAS_DEVICE_TREE) += libfdt