wok-current view etherboot/stuff/etherboot-net.u @ rev 17829

Up:spk(1.4.3)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sun Mar 22 22:37:15 2015 +0100 (2015-03-22)
parents
children
line source
1 Patch from network_boot_floppy+cd+hd_540.zip at http://sourceforge.net/projects/thinstation
2 --- etherboot-5.4.3/src/Makefile.main 2007-02-24 15:44:59.000000000 +0100
3 +++ etherboot-5.4.3/src/Makefile.main 2008-04-08 15:06:47.000000000 +0200
4 @@ -382,6 +382,27 @@
5 $(BIN)/%.zbin: $(BIN)/%.bin $(BIN)/nrv2b $(MAKEDEPS)
6 $(BIN)/nrv2b e $< $@
8 +# Rule for the multi-NIC image. (by Paolo Salvan)
9 +NETOBJS:=
10 +# Note: the 3c90x.o driver should be linked BEFORE the 3c595.o
11 +# otherwise 3c905b cards will be (badly) handled by the 3c595 driver as 3c900b cards
12 +NETOBJS+= $(BIN)/3c90x.o
13 +# PCI cards...
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
15 +# ISA cards...
16 +NETOBJS+= $(BIN)/3c503.o $(BIN)/ne.o $(BIN)/wd.o $(BIN)/3c529.o $(BIN)/3c509.o
17 +# Exclude these drivers + the belows to create the .COM image, max 65280 byte...
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
19 +# Try excluding this big and rarely-used driver if you get "ERROR: code size exceeds limit!" at build-time
20 +# or system resets/hungs-up during image decompression at run-time
21 +# (uncompressed image could have exceeded low-memory...)
22 +NETOBJS+= $(BIN)/tg3.o
23 +# This driver has slow autoprobing and is rarely used, so it is better to exclude it...
24 +#NETOBJS+= $(BIN)/3c515.o
25 +
26 +$(BIN)/etherboot-net.o: $(NETOBJS)
27 + $(LD) -r $(NETOBJS) -o $@
28 +
29 # Housekeeping
31 clean:
33 --- etherboot-5.4.3/src/core/main.c 2007-02-24 15:44:59.000000000 +0100
34 +++ etherboot-5.4.3/src/core/main.c 2008-04-08 15:11:46.000000000 +0200
35 @@ -471,6 +471,11 @@
36 #ifdef DNS_RESOLVER
37 const char *resolvt;
38 #endif
39 + char *name_tmp = fname;
40 + while ( *name_tmp != 0 ) {
41 + if ( memcmp(name_tmp, ".zpxe", 6 ) == 0 ) {*name_tmp=0;} else {++name_tmp;}
42 + }
43 +
44 ip.s_addr = arptable[ARP_SERVER].ipaddr.s_addr;
45 name = fname;
46 url_port = -1;