From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M5igI-0006Lk-Ab for qemu-devel@nongnu.org; Sun, 17 May 2009 11:53:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M5igC-0006LA-SM for qemu-devel@nongnu.org; Sun, 17 May 2009 11:53:40 -0400 Received: from [199.232.76.173] (port=34020 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5igC-0006L7-Lh for qemu-devel@nongnu.org; Sun, 17 May 2009 11:53:36 -0400 Received: from e31.co.us.ibm.com ([32.97.110.149]:57675) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M5igC-0001ee-9z for qemu-devel@nongnu.org; Sun, 17 May 2009 11:53:36 -0400 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e31.co.us.ibm.com (8.13.1/8.13.1) with ESMTP id n4HFniSG018989 for ; Sun, 17 May 2009 09:49:44 -0600 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n4HFrZqH250984 for ; Sun, 17 May 2009 09:53:35 -0600 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n4HFrYWs015841 for ; Sun, 17 May 2009 09:53:35 -0600 Message-ID: <4A1032E8.1090706@us.ibm.com> Date: Sun, 17 May 2009 10:53:12 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <1242574141-18488-1-git-send-email-aliguori@us.ibm.com> <1242574141-18488-4-git-send-email-aliguori@us.ibm.com> <4A103143.4010202@redhat.com> In-Reply-To: <4A103143.4010202@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 3/4] Update makefile to build roms List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Glauber Costa , Alex Graf , qemu-devel@nongnu.org, Dustin Kirkland Avi Kivity wrote: > Anthony Liguori wrote: >> We build the roms in a sub directory of the target build directory. >> This is >> anticipating a single source base (like uboot) that gets built >> differently for >> multiple target architectures (PPC, SH4, etc.). >> >> >> +# Per architecture ROMS >> +ROMS= >> +ifeq ($(TARGET_BASE_ARCH),i386) >> +ROMS+=gplbios vgabios >> +endif >> + >> > > ROMS-i386 = gplbios vgabios > ROMS = $(ROMS-$(TARGET_BASE_ARCH)) > > (make is not shell, it tolerates spaces around the equals sign) Yeah, this is still very rough. The build/install process is different for each rom so I'm probably going to need to do something fancier than what I have about. Perhaps something along a subdir-% rule for the sane ROMs that can be overridden for weirder ones. gplbios and vgabios are simple to build so it's where I started. > Also, I think you'll need to set up the cross-compiler here for > completeness, not that I think it will ever be used in anger. Yeah, also not yet fully bake yet but as you noticed, I've started that. The difficult part is cleaning up the build system of each of the ROMs. gpxe, in particular, looks to be a real pain to get buildable from a separate directory :-/ -- Regards, Anthony Liguori