#!/bin/sh # Please check http://cross-stuff.sourceforge.net/ for licensing information (BSD) and latest version . ../../common/scripts/.packages.sh . ../../common/scripts/.common-defs.sh . ./.platform-defs.sh # Customize to suit your needs USE_STANDALONE="FALSE" # Not implemented USE_RAID="FALSE" # broken USE_USB="FALSE" # broken # Filesystems WHICH_FS="EXT2" # Either JFS, XFS, EXT2, EXT3, REISER or NFS INCLUDED_FS="EXT2" # Which FS utilities to include ? # SSL/SSH ? INCL_SSL="FALSE" # OpenSSL INCL_SSH="FALSE" # OpenSSH # inetd features INCL_INETD="TRUE" # inetd ? INCL_TELNETD="TRUE" # telnetd ? (root pw = 'dolphin') # Flash features HAS_FLASH="FALSE" # Flash available ? INCL_MTD="FALSE" # Flash available, through MTD ? # Which devices are there ? HAS_IPRO1000="FALSE" # Intel PRO 1000 ? HAS_PCMCIA="TRUE" # PCMCIA supported ? # Additional libraries INCL_LIBICONV="FALSE" # Libconv INCL_SQLITE3="FALSE" # SQLITE3 ? INCL_RENDEZVOUS="FALSE" # RendezVous [Apple] # GLIB/GTK ? INCL_GLIB="FALSE" # GLIB INCL_GTK="FALSE" # GTK INCL_GLIB2="FALSE" # GLIB2 # Web Browser INCL_FFMPEG="FALSE" # FFMPEF A/V codecs libraries INCL_DILLO="FALSE" # Dillo Web Browser # Multimedia INCL_PLAY_AVI="FALSE" # play-avi program # XFree86 (tiny X) INCL_TINYX="FALSE" # KDRIVE ? INCL_EVT="FALSE" # EVT driver and library IS_ROOTFS_RO="FALSE" # Is the Root FS Read/Only ? HAS_LSOF="TRUE" # lsof utility ? INCL_UUID="TRUE" # libuuid library ? HAS_RSYNC="FALSE" # rsync utility ? . ../../common/scripts/.build-rootfs.sh # Build a RAMDISK if [ $WHICH_FS != "NFS" ]; then cd $DIST_DIR'/'${PLATFORM} rm -f initrd initrd.gz dd if=/dev/zero of=initrd bs=1k count=15000 2> /dev/null mkdir -p ramdisk mke2fs -F -m 0 -i 1024 initrd > /dev/null sudo mount -t ext2 -o loop initrd ramdisk cd ramdisk/ sudo cp -Rdp ../rootfs/* . cd .. sudo umount ramdisk/ gzip -9 initrd mkdir -p /tftpboot/${PLATFORM} cp initrd.gz /tftpboot/${PLATFORM} sudo rmdir ramdisk fi