Update of /cvsroot/leaf/src/bering-uclibc/apps/modules In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv13811
Added Files: buildtool.cfg buildtool.mk modules modutils Log Message: new config system --- NEW FILE: buildtool.mk --- # makefile for modules include $(MASTERMAKEFILE) CONFIG_DIR=. CONFIG_TARGET_DIR:=$(BT_BUILD_DIR)/modules $(CONFIG_DIR)/.source: touch $(CONFIG_DIR)/.source source: $(CONFIG_DIR)/.source $(CONFIG_DIR)/.configured: $(CONFIG_DIR)/.source touch $(CONFIG_DIR)/.configured $(CONFIG_DIR)/.build: $(CONFIG_DIR)/.configured mkdir -p $(CONFIG_TARGET_DIR) mkdir -p $(CONFIG_TARGET_DIR)/etc/init.d cp -a modules $(CONFIG_TARGET_DIR)/etc cp -a modutils $(CONFIG_TARGET_DIR)/etc/init.d cp -a $(CONFIG_TARGET_DIR)/* $(BT_STAGING_DIR) touch $(CONFIG_DIR)/.build build: $(CONFIG_DIR)/.build clean: rm -rf $(CONFIG_TARGET_DIR) rm -f $(CONFIG_DIR)/.build rm -f $(CONFIG_DIR)/.configured srcclean: clean rm -f $(CONFIG_DIR)/.source --- NEW FILE: modutils --- #! /bin/sh # /etc/init.d/modules: loads the appropriate modules in `boot'. # Editted for LRP -- Dave Cinege # Modified to mount filesystems by Charles Steinkuehler RCDLINKS="S,S20" PATH="/sbin:/bin:/usr/sbin:/usr/bin" OIFS="$IFS" kernel=`uname -r` DIR="/lib/modules" MNT="/var/lib/lrpkg/mnt" MOUNT="" ln -s $DIR /lib/modules/$kernel # Loop over every line in /etc/modules. echo 'Loading modules: ' while read module args do case "$module" in \#*|"") continue ;; !) set -- $args case $1 in mount) [ -n "$MOUNT" ] && umount $MOUNT mount -r -t $2 $3 $MNT MOUNT="$MNT" ;; umount) [ -n "$MOUNT" ] && umount $MOUNT MOUNT="" ;; dir) DIR="$2" ;; esac continue ;; esac echo -n "$module - " MDIR=`dirname $module` MBASE=`basename $module` CNT=0 while read MOD ; do CNT=$(( $CNT + 1 )) XMOD=$MOD done <<- EOF $(find $MOUNT$DIR/$MDIR -name $MBASE.o) EOF case $CNT in 0) echo "NOT FOUND!" ;; 1) insmod $XMOD $args ;; *) echo "AMBIGUOUS! More than one module found:" find $MOUNT$DIR/$MDIR -name $MBASE.o | sed "s:^$MOUNT::;s:/./:/:" ;; esac done << DATA # Insure file ends with LF... $(cat /etc/modules) DATA echo [ -n "$MOUNT" ] && umount $MOUNT --- NEW FILE: modules --- # /etc/modules: kernel modules to load at boot time. # # This file should contain the names of kernel modules that are # to be loaded at boot time, one per line. Comments begin with # a `#', and everything on the line after them are ignored. # # All modules should reside in /lib/modules, and you are required # to list what you need *in the correct order*. Modprobe is not # used and there is no dependacy checking. # How they are loaded: insmod [mount][dir]/"$module".o $args # For additional modules check the modules.dep file in the modules # tarball for the dependencies and correct loading order. # Available commands: # Mount a filesystem to read modules from # ! mount <filesystem> <device> # Unmount a mounted filesystem # ! umount # Set the module load directory (defaults to /lib/modules) # ! dir <directory> # directory should contain a leading slash and is relative to root if nothing # is mounted, or the root of any mounted filesystem specified with ! mount ######################################################################## # More modules available from: # http://leaf.cvs.sourceforge.net/leaf/bin/bering-uclibc/packages/ ######################################################################## # Some modules need this, like 8390, natsemi, 8139too, tulip #crc32 # ISA ethernet cards #3c509 #eepro io=0x300 # 8390 based ethernet cards #8390 #ne2k-pci # card1,card2 #ne io=0x300,0x350 # Those realtek based NICs need mii module #mii #8139cp #8139too #eepro100 #epic100 #pcnet32 #viarhine #winbond-840 # PCI ethernet cards #3c59x #natsemi #tulip # Modules needed for PPP connection #slhc #ppp_generic #ppp_async # The three following modules are not always needed #zlib_inflate #zlib_deflate #ppp_deflate # Modules needed for PPP/PPPOE connection #slhc #n_hdlc #ppp_generic #ppp_synctty #pppox #pppoe # Modules needed for PPTP connection #slhc #ppp_generic #ppp_async #ppp_mppe # Modules needed for ISDN # Look for type, io and irq settings at help page of isdn.lrp documentation #slhc #isdn #hisax type= io= irq= # Masquerading 'helper' modules # Don't remove anything here, unless you know what you are doing # Other modules available in kernel/net/ipv4/netfilter ip_conntrack ip_conntrack_ftp ip_conntrack_irc iptable_nat ip_nat_ftp ip_nat_irc ipt_MASQUERADE ipt_REDIRECT ipt_conntrack ipt_helper ipt_state ipt_ipp2p # Watchdog support, always choose one # standard software watchdog softdog # .. or .. # wd1100 module available in kernel/drivers/char #wd1100 # ipv6 support #ipv6 # Templates for extra functionnalities # Warning: the following modules are not provided on Bering floppy # they must be downloaded # # Bridge support #bridge # # IDE/CD-ROM support #ide-mod #ide-disk #ide-probe-mod # # USB support # do not forget to mount none /proc/bus/usb -t usbdevfs #usbcore #usb-uhci # .. or .. #usb-ohci # # NFS support #lockd #sunrpc #nfs --- NEW FILE: buildtool.cfg --- <File buildtool.mk> Server = cvs-sourceforge Revision = HEAD Directory = modules </File> <File modules> Server = cvs-sourceforge Revision = HEAD Directory = modules </File> <File modutils> Server = cvs-sourceforge Revision = HEAD Directory = modules </File> <Package> <modules> Version = 2.4.x Revision = 2 Help <<EOF Modules for the kernel Modules to be used are defined in /etc/modules Modules should be copied to /lib/modules LRP package by __PACKAGER__, __BUILDDATE__ EOF <Permissions> Files = 644 Directories = 755 </Permissions> <Owner> Files = root:root Directories = root:root </Owner> <Contents> <File> Filename = etc/modules Source = etc/modules Description = kernel modules to load at boot Type = conf Type = local Type = binary Permissions = 644 </File> <File> Filename = etc/init.d/modutils Source = etc/init.d/modutils Type = binary Permissions = 755 </File> </Contents> </modules> </Package> Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ leaf-cvs-commits mailing list leaf-cvs-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits