bootdisk: mkimages (HEAD) [malekith]

PLD CVS pld-cvs-commit w pld.org.pl
Pon, 29 Lip 2002, 13:02:04 CEST


Module name:	bootdisk
Changes by:	malekith	02/07/29 13:02:01

Modified files:
	mkimages

Log message:
- use $ARCH rather then uname -m
- don't add enitre eth-mod on 2.2, just add few modules as in 2.4 (they got
  too big)

Index: mkimages
===================================================================
RCS file: /cvsroot/bootdisk/mkimages,v
diff -d -u -r1.12 -r1.13
--- mkimages	2002/04/25 14:40:16	1.12
+++ mkimages	2002/07/29 11:02:00	1.13
@@ -62,7 +62,7 @@
 
 set_bootloader () {
   boot_loader=rc-boot
-  case `uname -m` in
+  case $ARCH in
   ppc )
     boot_loader=yaboot
     ;;
@@ -102,25 +102,23 @@
   kernel_opt=""
 fi
 
-if [ "$KERNEL_VERCODE" -gt 2 ] ; then
-  eth_addons=
-  for f in 3c59x.o 8139too.o 8390.o dmfe.o eepro100.o ne.o \
-	   ne2k-pci.o pcnet32.o 3c509.o 3c503.o smc-ultra.o mii.o ; do
-    eth_addons="$eth_addons,eth/$f"
-  done
-  # eth-mod and such on addons... 2.4 is huge
-  mkimage net -p ui,net,lists -m $eth_addons -m af_packet
-else
-  # supports net on ethernet devices
-  mkimage net -S 4096 -p ui,net,lists -m eth,nfs,af_packet
+eth_addons=
+mii=
+if [ $KERNEL_VERCODE -gt 2 ] ; then
+  mii=mii.o
 fi
+for f in 3c59x.o 8139too.o 8390.o dmfe.o eepro100.o ne.o \
+	   ne2k-pci.o pcnet32.o 3c509.o 3c503.o smc-ultra.o $mii ; do
+  eth_addons="$eth_addons,eth/$f"
+done
+mkimage net -p ui,net,lists -m $eth_addons -m nfs,af_packet
 
 short_cut=no
 
 if [ "$short_cut" = yes ] ; then
-  targetdir=/adm/ftp/dists/ra/PLD/i586/$INSTALLER_DIR
-  mkdir -p $targetdir
-  cp targz/*.tar.gz $targetdir
+#  targetdir=/adm/ftp/dists/ra/PLD/i586/$INSTALLER_DIR
+#  mkdir -p $targetdir
+#  cp targz/*.tar.gz $targetdir
   exit 0
 fi
 



Więcej informacji o liście dyskusyjnej pld-installer