From patchwork Fri Feb 3 19:21:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 93315 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp738675qgi; Fri, 3 Feb 2017 11:22:32 -0800 (PST) X-Received: by 10.107.143.86 with SMTP id r83mr11016936iod.121.1486149752005; Fri, 03 Feb 2017 11:22:32 -0800 (PST) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id j74si4168028ioj.69.2017.02.03.11.22.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Feb 2017 11:22:31 -0800 (PST) Received-SPF: neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZjQB-0006a7-S1; Fri, 03 Feb 2017 19:21:23 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZjQA-0006Ym-4r for xen-devel@lists.xen.org; Fri, 03 Feb 2017 19:21:22 +0000 Received: from [85.158.143.35] by server-2.bemta-6.messagelabs.com id 1E/29-22326-138D4985; Fri, 03 Feb 2017 19:21:21 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJLMWRWlGSWpSXmKPExsVysyfVTdfwxpQ Ig8UNTBZLPi5mcWD0OLr7N1MAYxRrZl5SfkUCa8adx3YF07krnt65ydrAuJ2zi5GLQ0hgE6PE 2U8bmCGc04wSm7/OYuxi5ORgE9CUuPP5ExOILSIgLXHt82WwOLOAg8Sbj/dYuhg5OIQFbCT+N 1iBhFkEVCV2nbkHVsIr4CJx6Nt0VhBbQkBO4uSxyawTGDkXMDKsYtQoTi0qSy3SNbTQSyrKTM 8oyU3MzNE1NDDTy00tLk5MT81JTCrWS87P3cQI9BYDEOxgvLkx4BCjJAeTkiiv/vUpEUJ8Sfk plRmJxRnxRaU5qcWHGGU4OJQkeGVAcoJFqempFWmZOcCwgUlLcPAoifAqgqR5iwsSc4sz0yFS pxh1OU7dOP2SSYglLz8vVUqc1wGkSACkKKM0D24ELIQvMcpKCfMyAh0lxFOQWpSbWYIq/4pRn INRSZjXCmQKT2ZeCdymV0BHMAEd8fPxJJAjShIRUlINjFlrGCzene0S+Lhea6cZ46rl0bP3r0 leeDCTdeODr7ta+D2LQ/JqFZ3bePm/5a9XkHsesurmXPYt7fI52mxnJG6wu54o6xSc63X9xu2 XL6fOFWXsXDRno5pVecriQ9c/pG2fuiBnvWSsxOllLot213yIeHCLd3vey7tNtmLebMHdc+M3 auw59FmJpTgj0VCLuag4EQCyll4JXAIAAA== X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-2.tower-21.messagelabs.com!1486149680!42103431!1 X-Originating-IP: [217.140.101.70] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.1.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 55745 invoked from network); 3 Feb 2017 19:21:20 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-2.tower-21.messagelabs.com with SMTP; 3 Feb 2017 19:21:20 -0000 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 52B08AD7; Fri, 3 Feb 2017 11:21:20 -0800 (PST) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.218.32]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B6AB23F242; Fri, 3 Feb 2017 11:21:19 -0800 (PST) From: Julien Grall To: xen-devel@lists.xen.org Date: Fri, 3 Feb 2017 19:21:13 +0000 Message-Id: <1486149673-20646-1-git-send-email-julien.grall@arm.com> X-Mailer: git-send-email 1.9.1 Cc: Julien Grall , sstabellini@kernel.org Subject: [Xen-devel] [PATCH] xen/arm: Remove the makefile target xen.axf X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" Since commit 4557c22 "xen: arm: rewrite start of day page table and cpu bring up", Xen requires to be launched in NS HYP/EL2. xen.axf is generated in order to directly boot Xen on ARM models (e.g Foundation). However they usually start in secure mode, which mean Xen cannot boot. The way forward to boot Xen on models is using either EFI or bootwrapper [1]. [1] https://git.kernel.org/cgit/linux/kernel/git/mark/boot-wrapper-aarch64.git/ Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- xen/arch/arm/Makefile | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/xen/arch/arm/Makefile b/xen/arch/arm/Makefile index 7afb8a3..91cb3f3 100644 --- a/xen/arch/arm/Makefile +++ b/xen/arch/arm/Makefile @@ -70,18 +70,12 @@ else all_symbols = endif -$(TARGET): $(TARGET)-syms $(TARGET).axf +$(TARGET): $(TARGET)-syms $(OBJCOPY) -O binary -S $< $@ ifeq ($(CONFIG_ARM_64),y) ln -sf $(notdir $@) ../../$(notdir $@).efi endif -$(TARGET).axf: $(TARGET)-syms - # XXX: VE model loads by VMA so instead of - # making a proper ELF we link with LMA == VMA and adjust crudely - $(OBJCOPY) --change-addresses +0x80000000 $< $@ - $(STRIP) $@ - ifeq ($(CONFIG_LTO),y) # Gather all LTO objects together prelink_lto.o: $(ALL_OBJS) @@ -130,5 +124,4 @@ dtb.o: $(CONFIG_DTB_FILE) clean:: rm -f asm-offsets.s xen.lds rm -f $(BASEDIR)/.xen-syms.[0-9]* - rm -f $(TARGET).axf rm -f $(TARGET).efi