wok-next annotate etherboot/stuff/etherboot-net.u @ rev 11721

giflib: Add libungif compatibility.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Feb 20 14:11:54 2012 -0500 (2012-02-20)
parents
children
rev   line source
pascal@515 1 Patch from network_boot_floppy+cd+hd_540.zip at http://sourceforge.net/projects/thinstation
pascal@515 2 --- etherboot-5.4.3/src/Makefile.main 2007-02-24 15:44:59.000000000 +0100
pascal@515 3 +++ etherboot-5.4.3/src/Makefile.main 2008-04-08 15:06:47.000000000 +0200
pascal@515 4 @@ -382,6 +382,27 @@
pascal@515 5 $(BIN)/%.zbin: $(BIN)/%.bin $(BIN)/nrv2b $(MAKEDEPS)
pascal@515 6 $(BIN)/nrv2b e $< $@
pascal@515 7
pascal@515 8 +# Rule for the multi-NIC image. (by Paolo Salvan)
pascal@515 9 +NETOBJS:=
pascal@515 10 +# Note: the 3c90x.o driver should be linked BEFORE the 3c595.o
pascal@515 11 +# otherwise 3c905b cards will be (badly) handled by the 3c595 driver as 3c900b cards
pascal@515 12 +NETOBJS+= $(BIN)/3c90x.o
pascal@515 13 +# PCI cards...
pascal@515 14 +NETOBJS+= $(BIN)/3c595.o $(BIN)/davicom.o $(BIN)/eepro100.o $(BIN)/ns8390.o $(BIN)/pcnet32.o $(BIN)/prism2_plx.o $(BIN)/rtl8139.o $(BIN)/sis900.o $(BIN)/tulip.o $(BIN)/via-rhine.o $(BIN)/r8169.o $(BIN)/forcedeth.o $(BIN)/ns83820.o $(BIN)/eepro.o $(BIN)/e1000.o
pascal@515 15 +# ISA cards...
pascal@515 16 +NETOBJS+= $(BIN)/3c503.o $(BIN)/ne.o $(BIN)/wd.o $(BIN)/3c529.o $(BIN)/3c509.o
pascal@515 17 +# Exclude these drivers + the belows to create the .COM image, max 65280 byte...
pascal@515 18 +NETOBJS+= $(BIN)/sk_g16.o $(BIN)/depca.o $(BIN)/cs89x0.o $(BIN)/prism2_pci.o $(BIN)/smc9000.o $(BIN)/natsemi.o $(BIN)/epic100.o $(BIN)/sundance.o $(BIN)/w89c840.o $(BIN)/tlan.o
pascal@515 19 +# Try excluding this big and rarely-used driver if you get "ERROR: code size exceeds limit!" at build-time
pascal@515 20 +# or system resets/hungs-up during image decompression at run-time
pascal@515 21 +# (uncompressed image could have exceeded low-memory...)
pascal@515 22 +NETOBJS+= $(BIN)/tg3.o
pascal@515 23 +# This driver has slow autoprobing and is rarely used, so it is better to exclude it...
pascal@515 24 +#NETOBJS+= $(BIN)/3c515.o
pascal@515 25 +
pascal@515 26 +$(BIN)/etherboot-net.o: $(NETOBJS)
pascal@515 27 + $(LD) -r $(NETOBJS) -o $@
pascal@515 28 +
pascal@515 29 # Housekeeping
pascal@515 30
pascal@515 31 clean:
pascal@515 32
pascal@515 33 --- etherboot-5.4.3/src/core/main.c 2007-02-24 15:44:59.000000000 +0100
pascal@515 34 +++ etherboot-5.4.3/src/core/main.c 2008-04-08 15:11:46.000000000 +0200
pascal@515 35 @@ -471,6 +471,11 @@
pascal@515 36 #ifdef DNS_RESOLVER
pascal@515 37 const char *resolvt;
pascal@515 38 #endif
pascal@515 39 + char *name_tmp = fname;
pascal@515 40 + while ( *name_tmp != 0 ) {
pascal@515 41 + if ( memcmp(name_tmp, ".zpxe", 6 ) == 0 ) {*name_tmp=0;} else {++name_tmp;}
pascal@515 42 + }
pascal@515 43 +
pascal@515 44 ip.s_addr = arptable[ARP_SERVER].ipaddr.s_addr;
pascal@515 45 name = fname;
pascal@515 46 url_port = -1;