Received: from eggs.gnu.org ([208.118.235.92]:37986) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVktN-0007Gd-VK for qemu-devel@nongnu.org; Fri, 26 Apr 2013 11:49:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVktJ-0001lU-SJ for qemu-devel@nongnu.org; Fri, 26 Apr 2013 11:48:57 -0400 Received: from e06smtp17.uk.ibm.com ([195.75.94.113]:59738) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVktJ-0001lE-J2 for qemu-devel@nongnu.org; Fri, 26 Apr 2013 11:48:53 -0400 Received: from /spool/local by e06smtp17.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 26 Apr 2013 16:46:05 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 5E52B219005F for ; Fri, 26 Apr 2013 16:51:16 +0100 (BST) Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by b06cxnps4076.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r3QFm9RE48365758 for ; Fri, 26 Apr 2013 15:48:09 GMT Received: from d06av01.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r3QFmJnI002449 for ; Fri, 26 Apr 2013 09:48:19 -0600 Date: Fri, 26 Apr 2013 17:48:18 +0200 From: Dominik Dingel Message-ID: <20130426174818.0b672fcb@BR9TG4T3.de.ibm.com> In-Reply-To: <7760C04D-FD36-4F41-BEEA-D8422E93D2D4@suse.de> References: <1366978377-16823-1-git-send-email-dingel@linux.vnet.ibm.com> <1366978377-16823-5-git-send-email-dingel@linux.vnet.ibm.com> <7760C04D-FD36-4F41-BEEA-D8422E93D2D4@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 04/10] S390: check if BIOS is available and create links List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Christian Borntraeger , qemu-devel@nongnu.org On Fri, 26 Apr 2013 17:23:18 +0200 Alexander Graf wrote: > > On 26.04.2013, at 14:12, Dominik Dingel wrote: > > > Signed-off-by: Dominik Dingel > > > > Check if the BIOS is available before loading it into the memory. > > Create the needed Links for build. > > > > Add a if the BIOS is available, also add the needed links for the build > > process. > > > > diff --git a/configure b/configure > > index 19777de..2bbbd54 100755 > > --- a/configure > > +++ b/configure > > @@ -4541,6 +4541,7 @@ for bios_file in \ > > $source_path/pc-bios/*.aml \ > > $source_path/pc-bios/*.rom \ > > $source_path/pc-bios/*.dtb \ > > + $source_path/pc-bios/*.img \ > > $source_path/pc-bios/openbios-* \ > > $source_path/pc-bios/palcode-* > > do > > diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c > > index 9758529..36daa67 100644 > > --- a/hw/s390x/ipl.c > > +++ b/hw/s390x/ipl.c > > @@ -95,6 +95,10 @@ static int s390_ipl_init(SysBusDevice *dev) > > } > > > > bios_filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, bios_name); > > + if (bios_filename == NULL) { > > + hw_error("could not find stage1 bootloader\n"); > > + } > > + > > bios_size = load_elf(bios_filename, NULL, NULL, &ipl->start_addr, NULL, > > NULL, 1, ELF_MACHINE, 0); > > if (bios_size == -1UL) { > > diff --git a/pc-bios/s390-ccw/Makefile b/pc-bios/s390-ccw/Makefile > > index ad55a14..1e6ab1e 100644 > > --- a/pc-bios/s390-ccw/Makefile > > +++ b/pc-bios/s390-ccw/Makefile > > @@ -21,6 +21,7 @@ s390-ccw.elf: $(OBJECTS) > > > > s390-ccw.img: s390-ccw.elf > > $(call quiet-command,strip $< -o $@," Stripping $(TARGET_DIR)$@") > > + ln -s -f `pwd`/$@ ../$@ > > I don't think we do this for any other blobs, so why should we here? > > Alex In case we are not running on the s390 platform we need the link to the shipped binary. But if we are running on the s390 platform we like to build the rom in the s390-ccw build folder. After that we either copy or link it to the pc-bios location. I personally preferred the link version. Dominik > > > > clean: > > rm -f *.o *.d *.img *.elf *~ > > -- > > 1.7.9.5 > > >