From: "Jan Beulich" Subject: Re: [PATCH V4 15/15] Add ARM EFI boot support Date: Fri, 12 Sep 2014 08:17:04 +0100 Message-ID: <5412BA10020000780003452A@mail.emea.novell.com> References: <1410310325-4509-1-git-send-email-roy.franz@linaro.org> <1410310325-4509-16-git-send-email-roy.franz@linaro.org> <5411D36D0200007800033FD7@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roy Franz Cc: keir , Ian Campbell , tim , xen-devel , Stefano Stabellini , Fu Wei List-Id: xen-devel@lists.xenproject.org >>> On 12.09.14 at 00:26, wrote: > On Thu, Sep 11, 2014 at 7:53 AM, Jan Beulich wrote: >>>>> On 10.09.14 at 02:52, wrote: >>> --- a/xen/common/Makefile >>> +++ b/xen/common/Makefile >>> @@ -67,4 +67,5 @@ subdir-$(x86_64) += hvm >>> subdir-$(coverage) += gcov >>> >>> subdir-y += libelf >>> +subdir-$(CONFIG_EFI) += efi >>> subdir-$(HAS_DEVICE_TREE) += libfdt >> >> Hmm, this will suggest to the reader that either x86 doesn't support >> EFI, or it gets built this way too. Both of which is wrong. I think the >> symlink mechanism should be used the same way as for x86. > > The common build infrastructure works quite nicely for ARM. I can > create an arch/arm/efi, and > make symlink, etc. like x86, but this seems silly to me. The x86 EFI > build is special in the way > it autodetects toolchain capability, but I don't think that these > complications (or side effects of these > x86 specific complications) should be copied for symmetry with x86 as > the only reason. > > If the Makefile is misleading, I'd rather address that with a comment > in the Makefile That's an option, but with the symlinking to be done at build time, I think doing it universally rather than just for x86 also has benefits. Jan