Received: from eggs.gnu.org ([208.118.235.92]:47476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVlPY-0005b2-Ip for qemu-devel@nongnu.org; Fri, 26 Apr 2013 12:22:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVlPX-0005JT-5m for qemu-devel@nongnu.org; Fri, 26 Apr 2013 12:22:12 -0400 Received: from cantor2.suse.de ([195.135.220.15]:35175 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVlPW-0005JM-S4 for qemu-devel@nongnu.org; Fri, 26 Apr 2013 12:22:11 -0400 Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: Alexander Graf In-Reply-To: <20130426182034.645e4e4f@BR9TG4T3.de.ibm.com> Date: Fri, 26 Apr 2013 18:22:09 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: 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> <20130426174818.0b672fcb@BR9TG4T3.de.ibm.com> <5E09828A-CDA8-4727-9137-29C1B334B065@suse.de> <20130426182034.645e4e4f@BR9TG4T3.de.ibm.com> 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: Dominik Dingel Cc: Christian Borntraeger , qemu-devel@nongnu.org On 26.04.2013, at 18:20, Dominik Dingel wrote: > On Fri, 26 Apr 2013 17:57:44 +0200 > Alexander Graf wrote: >=20 >>=20 >> On 26.04.2013, at 17:48, Dominik Dingel wrote: >>=20 >>> On Fri, 26 Apr 2013 17:23:18 +0200 >>> Alexander Graf wrote: >>>=20 >>>>=20 >>>> On 26.04.2013, at 14:12, Dominik Dingel wrote: >>>>=20 >>>>> Signed-off-by: Dominik Dingel >>>>>=20 >>>>> Check if the BIOS is available before loading it into the memory. >>>>> Create the needed Links for build. >>>>>=20 >>>>> Add a if the BIOS is available, also add the needed links for the = build >>>>> process. >>>>>=20 >>>>> 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) >>>>> } >>>>>=20 >>>>> bios_filename =3D qemu_find_file(QEMU_FILE_TYPE_BIOS, = bios_name); >>>>> + if (bios_filename =3D=3D NULL) { >>>>> + hw_error("could not find stage1 bootloader\n"); >>>>> + } >>>>> + =20 >>>>> bios_size =3D load_elf(bios_filename, NULL, NULL, = &ipl->start_addr, NULL, >>>>> NULL, 1, ELF_MACHINE, 0); >>>>> if (bios_size =3D=3D -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) >>>>>=20 >>>>> s390-ccw.img: s390-ccw.elf >>>>> $(call quiet-command,strip $< -o $@," Stripping = $(TARGET_DIR)$@") >>>>> + ln -s -f `pwd`/$@ ../$@=20 >>>>=20 >>>> I don't think we do this for any other blobs, so why should we = here? >>>>=20 >>>> Alex >>>=20 >>> In case we are not running on the s390 platform we need the link to = the shipped binary.=20 >>> 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.=20 >>> I personally preferred the link version. >>=20 >> It's not what users expect when they compile code inside of pc-bios. = Please stick to whatever behavior other blobs that we compile on demand = have. >>=20 >>=20 >> Alex >>=20 >=20 > I checked on my current laptop, the thing is, if we build the blob, we = also want to use it. If we don't overwrite it the link, we will continue = to use the old shipped blob. >=20 > The linuxboot.img is imho wrong in it's way. As we build it, but the = link still points to the qemu shipped one. >=20 > So you change linuxboot.S. If you know rebuild qemu, do you want to = use the chaned version of linuxboot.img or the shipped one? >=20 > build/pc-bios$ diff ./optionrom/linuxboot.img = ../../qemu/pc-bios/linuxboot.bin=20 > Binary files ./optionrom/linuxboot.img and = ../../qemu/pc-bios/linuxboot.bin differ Then change the behavior for _all_ blobs. But I prefer consistency over = my personal opinion on whether one thing is more convenient or the other = :) Alex