From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUVUQ-0000xh-JF for qemu-devel@nongnu.org; Tue, 02 Aug 2016 04:55:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUVUL-0005a1-GZ for qemu-devel@nongnu.org; Tue, 02 Aug 2016 04:55:54 -0400 Message-ID: <1470128146.30562.88.camel@redhat.com> From: Gerd Hoffmann Date: Tue, 02 Aug 2016 10:55:46 +0200 In-Reply-To: <1470116113.12584.10.camel@kernel.crashing.org> References: <1469608053.5978.132.camel@kernel.crashing.org> <20160728055102.GE2588@voom.fritz.box> <1470080328.30562.70.camel@redhat.com> <1470086678.5978.373.camel@kernel.crashing.org> <1470115519.30562.80.camel@redhat.com> <1470116113.12584.10.camel@kernel.crashing.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] ppc: Add MacOS VGA driver ROM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Benjamin Herrenschmidt Cc: David Gibson , Mark Cave-Ayland , qemu-ppc@nongnu.org, qemu-devel@nongnu.org, Alexander Graf On Di, 2016-08-02 at 15:35 +1000, Benjamin Herrenschmidt wrote: > On Tue, 2016-08-02 at 07:25 +0200, Gerd Hoffmann wrote: > > > That's the part we cannot provide unfortunately. There is sadly no > > > toolchain that can produce a MacOS PEF binary other than hosted in > > > MacOS itself. In fact I don't think Apple XCode can either, which > > > leaves us with CodeWarrior (commercial) or MPW (which I think at some > > > point became free but I didn't find it and it doesn't work on OS X > > > afaik). > >=20 > > Firmware builds often have specific requirements, such as only working > > on $arch due to firmware not being cross-buildable (thats why there are > > the prebuilt binaries in the first place). So if those makefile rules > > work only on macos with CodeWarrior installed that is perfectly fine. >=20 > Right though in that case it's not a Makefile, it's a CodeWarrior > project in .xml form ;-) It is included in the git repo. Good, that simplifies the makesfile rules to something like: macosdrivers: (cd $submodule: cw-build-tool $args $project.xml) cp -v $submodule/$binary ../pc-bios > CodeWarrior for MacOS X does come with command line versions of the > tools, I plan to look into doing a Makefile once I've sorted out the > various arguments for these things at least. Yes, you do that once, put it into roms/Makefile, and the next time you just do "make -C roms macosdrivers" instead of sorting out the various arguments *again*. Bonus: Any possible contributers will have an easier start too. cheers, Gerd