[gPXE] compress gPXE

Stefan Hajnoczi stefanha at gmail.com
Tue Feb 16 08:06:43 EST 2010


On Tue, Feb 16, 2010 at 12:33 PM, Luca <lucarx76 at gmail.com> wrote:
> OK. Is compression enabled/disabled by
> #define COMPRESS 1
>
> in src/arch/i386/libprefix.S?

There is logic in Makefile.housekeeping to build a .zbin file and use
util/zbin.c to perform fixups after compressing.

Compression is enabled by default in all image types.

>> Which driver are you building in?
>
> I can use rtl8139 or e1000.

Try rtl8139 because it is small.  (You can do "make
bin/10ec8139.rom.sizes" to see object file sizes before compression.)

> So with the configuration settings you suggested, PXE and UNDI will not be
> in the .rom image, right?

Yes, that is the intention.  The objects linked into the ROM can be
checked by looking at the sizes output (or the
bin/10ec8139.rom.tmp.map file) and there are a bunch of pxe_*.o files
that should be omitted.

I built a HTTPS-only, non-PXE 8139 ROM and get 48128 bytes.

Stefan


More information about the gPXE mailing list