malekith: bootdisk Makefile.am,NONE,1.1, mkmod,NONE,1.1, modules,NONE,1.1

Michał Moskal malekith w pld-linux.org
Pon, 18 Mar 2002, 10:29:07 CET


Module name:    bootdisk
Changes by:     malekith

 

--- NEW FILE: Makefile.am ---
EXTRA_DIST = mkmod modules

all: mod-stamp

mod-stamp: ../installer-rc mkmod modules
	sh mkmod
	touch mod-stamp

../installer-rc:
	$(MAKE) -C .. installer-rc

clean-local:
	rm -f mod-stamp
	rm -f *-mod.tar.gz
	rm -rf mod-root

 

--- NEW FILE: mkmod ---
#!/bin/sh
#
# Copyright (c) 2002 Michal Moskal <malekith w pld.org.pl>.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
#    must display the following acknowledgement:
#	This product includes software developed by Michal Moskal.
# 4. Neither the name of the author nor the names of any co-contributors
#    may be used to endorse or promote products derived from this software
#    without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY MICHAL MOSKAL AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.

set -e

. ../installer-rc

moddir=/usr/lib/bootdisk/lib/modules/$KERNEL_VER
modfile="./modules"

mod=

finalize_pkg ()
{
  echo -n "  $mod... "
  rm -rf mod-root
  mkdir mod-root
  xcmd="find $moddir -false"
  for f in $mod_list ; do
    xcmd="$xcmd -o -name $f"
  done
  cp `$xcmd` mod-root
  echo -n "copied "
  if [ "`echo mod-root/*`" = "mod-root/*" ] ; then
    echo "no modules found" 1>&2
    exit 1
  fi
  (cd mod-root && tar cf - *) | gzip -9nf > $mod-mod.tar.gz
  rm -rf mod-root
  echo done
}

while read cmd rest ; do
  case "$cmd" in
    @mod | @mod4 )
      if test "$mod" ; then
        finalize_pkg
      fi
      mod=
      mod_list=
      if [ "$cmd" != "@mod4" -o "$KERNEL_VERCODE" -ge 4 ] ; then
        mod="$rest"
      fi
      ;;
    "#" | "" )
      ;;
    * )
      if [ "$mod" ] ; then
        mod_list="$mod_list $cmd $rest"
      fi
      ;;
  esac
done < $modfile

if test "$mod" ; then
  finalize_pkg
fi

 

--- NEW FILE: modules ---
# $Id: modules,v 1.1 2002/03/18 09:29:02 malekith Exp $

@mod eth
	3c501.o 3c503.o 3c505.o 3c507.o 3c509.o 3c515.o 3c59x.o 8139too.o 
	82596.o 8390.o ac3200.o at1700.o cs89x0.o de4x5.o depca.o dmfe.o 
	e2100.o eepro.o eepro100.o eexpress.o epic100.o es3210.o eth16i.o 
	ewrk3.o fmv18x.o hp-plus.o hp.o hp100.o lance.o lne390.o ne.o 
	ne2k-pci.o ne3210.o ni5010.o ni52.o ni65.o old_tulip.o pcnet32.o 
	rtl8139.o sis900.o smc-ultra.o smc-ultra32.o smc9194.o tlan.o 
	tulip.o via-rhine.o wd.o

@mod cdrom
	cdrom.o isofs.o

@mod af_packet
	af_packet.o

@mod arcnet
	arc-rimi.o arcnet.o com20020.o com90io.o com90xx.o

@mod eth-gbit
	acenic.o hamachi.o sk98lin.o yellowfin.o

@mod floppy
	floppy.o

@mod hdraid
	DAC960.o cciss.o cpqarray.o

@mod ide
	ide-cd.o ide-disk.o ide-mod.o ide-probe-mod.o

@mod ipv6
	ipv6.o

@mod jfs
	jfs.o

@mod md
	linear.o raid0.o raid1.o raid5.o md.o

@mod nfs
	lockd.o nfs.o sunrpc.o

@mod old-cdrom
	aztcd.o cdu31a.o cm206.o gscd.o isp16.o mcd.o mcdx.o optcd.o sbpcd.o
	sjcd.o sonycd535.o

@mod parport
	parport.o parport_pc.o

@mod pcmcia
	3c574_cs.o 3c575_cb.o 3c589_cs.o 8390.o aha152x_cs.o airo.o airo_cs.o 
	apa1480_cb.o axnet_cs.o cb_enabler.o ds.o dummy_cs.o eepro100_cb.o
	epic_cb.o fdomain_cs.o fmvj18x_cs.o ftl_cs.o i82365.o ibmtr_cs.o
	ide_cs.o iflash2+_mtd.o iflash2_mtd.o memory_cb.o memory_cs.o
	netwave_cs.o nmclan_cs.o ohci1394_cb.o parport_cs.o pcilynx_cb.o
	pcmcia_core.o pcnet_cs.o qlogic_cs.o ray_cs.o serial_cb.o serial_cs.o
	smc91c92_cs.o sram_mtd.o tcic.o tulip_cb.o wavelan_cs.o wvlan_cs.o
	xirc2ps_cs.o 8390.o

@mod reiserfs
	reiserfs.o

@mod scsi-low
	3w-xxxx.o 53c7,8xx.o AM53C974.o BusLogic.o NCR53c406a.o a100u2w.o
	advansys.o aha152x.o aha1542.o aha1740.o aic7xxx.o atp870u.o dtc.o
	eata.o eata_pio.o fdomain.o g_NCR5380.o gdth.o imm.o in2000.o
	initio.o ips.o megaraid.o ncr53c8xx.o pas16.o pci2000.o pci2220i.o
	ppa.o psi240i.o qlogicfas.o qlogicfc.o qlogicisp.o scsi-low.list.in
	seagate.o sim710.o sym53c416.o sym53c8xx.o t128.o tmscsim.o u14-34f.o
	ultrastor.o wd7000.o

@mod scsi
	scsi_mod.o sd_mod.o sg.o sr_mod.o

@mod tr
	ibmtr.o lanstreamer.o olympic.o sktr.o

@mod vfat
	fat.o floppy.o vfat.o

@mod4 i2o
	i2o_core.o i2o_proc.o i2o_block.o i2o_scsi.o i2o_pci.o

@mod4 usb
	usbcore.o usb-ohci.o usb-uhci.o

@mod4 ext3
	jbd.o ext3.o

@mod4 xfs
	xfs.o xfs_support.o



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