qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 3/4] Update makefile to build roms


From: Anthony Liguori
Subject: [Qemu-devel] Re: [PATCH 3/4] Update makefile to build roms
Date: Sun, 17 May 2009 10:53:12 -0500
User-agent: Thunderbird 2.0.0.21 (X11/20090320)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]