[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH]: Implement bzip2 and LZMA loaders / fixed patch for Xen 3.4.1
On Fri, 21 Aug 2009, Pasi Kärkkäinen wrote: > On Fri, Aug 21, 2009 at 11:12:00PM +0300, Pasi Kärkkäinen wrote: > > On Fri, Aug 21, 2009 at 11:13:23AM +0100, Keir Fraser wrote: > > > On 21/08/2009 10:54, "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx> wrote: > > > > > > >> Good point. pvgrub should support these aswell. > > > >> > > > >> Keir: Would you like to add those libs to stubdom? > > > >> > > > >> (Note the lzma.h is coming from that "xz" package..) > > > > > > > > No. :-) But feel free to make a patch! You'll just need to modify > > > > libxc/Makefile too to force those libs on instead of off, as well as > > > > download and build the libs of course. > > > > > > Actually I just checked in c/s 20105 to get rid of the minios-specific > > > hack > > > in that Makefile. So all you need to do is patch to download and build the > > > libs. If you make a patch, I will arrange for the lib tarballs to be > > > hosted > > > on xenbits and adjust the patch URLs appropriately. > > > > > > > I can now see why you didn't want to do that.. :) I managed to get the libs > > to > > compile, but now I'm having other problems.. > > > > "make stubdom" gets to the point where it compiles ioemu-stubdom, but it > > fails > > to link because xen-unstable.hg/stubdom/mini-os-x86_32-ioemu/mini-os.o has > > undefined references in xc_try_bzip2_decode and xc_try_lzma_decode > > functions.. > > > > I guess only pvgrub would need to have this stuff in? I've been trying to > > figure out how the makefile magic works, but haven't really understood it > > yet. > > > > Any tips how to make ioemu-stubdom compile/link without including > > bzip2/lzma stuff into it? > > > > Actually I guess I could add the missing libs to extras/mini-os/Makefile to > APP_LDLIBS to get them included into ioemu-stubdom? > > Is that the right way to do it? > bzlib and lzma are libxc dependencies now, so firstly you have to add the two libraries to the stubdom build system, take a look at pciutils in stubdom/Makefile, that is a good example of how a new library is added. Then you also need to add them both at least to the libxc target, take a look at zlib (and cross-zlib), that should be close to what you need. Finally you need to tweak the libxc Makefile for the stubdom case so that the two libraries are correctly added to zlib-options. Have fun! ;) _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |