From: "Jan Beulich" Subject: Re: [PATCH] x86/EFI: define and use EFI_DIR make variable, defaulting to /usr/lib64/efi Date: Mon, 23 Jul 2012 10:07:25 +0100 Message-ID: <500D306D020000780008FD10@nat28.tlf.novell.com> References: <500D1E36020000780008FC69@nat28.tlf.novell.com> <20120723080523.GA9403@aepfle.de> <500D2576020000780008FCAF@nat28.tlf.novell.com> <1343033009.3007.4.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1343033009.3007.4.camel@zakaz.uk.xensource.com> 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: Ian Campbell Cc: Olaf Hering , Matt Wilson , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 23.07.12 at 10:43, Ian Campbell wrote: > On Mon, 2012-07-23 at 09:20 +0100, Jan Beulich wrote: >> >>> On 23.07.12 at 10:05, Olaf Hering wrote: >> > On Mon, Jul 23, Jan Beulich wrote: >> > >> >> >>> On 17.07.12 at 01:50, Matt Wilson wrote: >> >> > # HG changeset patch >> >> > # User Matt Wilson >> >> > # Date 1342481836 0 >> >> > # Branch efi >> >> > # Node ID dd1ab0cae2c870942c2e1b6bc3a507b1a40dae16 >> >> > # Parent 9950f2dc2ee6dfd172258a5a4ee29809b0ff8263 >> >> > x86/EFI: define and use EFI_DIR make variable, defaulting to > /usr/lib64/efi >> >> > >> >> > After commit 25594:ad08cd8e7097, EFI Xen binaries were installed to >> >> > /efi instead of /usr/lib64/efi. This patch restores the previous >> >> > behviour established in commit 23645:638f31a30b6c. >> >> >> >> I don't follow - what you say suggests that $(LIBDIR) is empty, >> >> which certainly isn't the case for me and hence would need >> >> explanation of the circumstances under which this happens. >> > >> > how is LIBDIR set in your environment? >> >> It's not set at all, I'm using what gets defined in config/*.mk. > > 25594:ad08cd8e7097 moved LIBDIR to configure and config/Tools.mk so it's > not available under xen any more because a) we decided that we didn't > want to require configure to be run before building the hypervisor and > b) nobody spotted that the EFI stuff under xen/ used LIBDIR (it's not > built by make dist? that's what I checked when I tested it). It may not get built if your tool chain is too old. Do you see xen/xen.efi after the build? If so, I'd also expect it to get installed. In any case, moving LIBDIR to the tools' configury process may need to be revisisted. > What is this stuff installed in /usr/lib*/efi anyway? I suppose it isn't > boot time stuff (which should go in /boot or /boot/efi). It *is* boot time stuff, and is does *not* belong into /boot. When putting this together, I was told that the EFI partition has to be considered volatile (i.e. may get destroyed and re-created at any time). This is why elilo.efi also has its real home under /usr, not under /boot/efi. > We already have EFI_MOUNTPOINT under xen/*, I think EFI_DIR under there > (or in config/*) is fine also. That part wasn't controversial (if generally useful), but imo it shouldn't expand to an open-coded path (unless put into config/x86_64.mk). Jan