[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ipcop-svn
Subject:    [Ipcop-svn] SF.net SVN: ipcop: [943] ipcop/trunk/lfs/new-initramfs
From:       chepati () users ! sourceforge ! net
Date:       2007-12-25 21:43:23
Message-ID: E1J7HYZ-00035K-Mw () sc8-pr-svn4 ! sourceforge ! net
[Download RAW message or body]

Revision: 943
          http://ipcop.svn.sourceforge.net/ipcop/?rev=943&view=rev
Author:   chepati
Date:     2007-12-25 13:43:23 -0800 (Tue, 25 Dec 2007)

Log Message:
-----------
Renamed new-initramfs to initramfs

Removed Paths:
-------------
    ipcop/trunk/lfs/new-initramfs

Deleted: ipcop/trunk/lfs/new-initramfs
===================================================================
--- ipcop/trunk/lfs/new-initramfs	2007-12-25 21:43:06 UTC (rev 942)
+++ ipcop/trunk/lfs/new-initramfs	2007-12-25 21:43:23 UTC (rev 943)
@@ -1,626 +0,0 @@
-###############################################################################
-# This file is part of the IPCop Firewall.                                    #
-#                                                                             #
-# IPCop is free software; you can redistribute it and/or modify               #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation; either version 2 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# IPCop is distributed in the hope that it will be useful,                    #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with IPCop; if not, write to the Free Software                        #
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA    #
-#                                                                             #
-# Makefiles are based on LFSMake, which is                                    #
-# Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com>                        #
-#                                                                             #
-# Modifications by:                                                           #
-# ??-12-2003 Mark Wormgoor < mark@wormgoor.com>                               #
-#          - Modified Makefile for IPCop build                                #
-#                                                                             #
-# $Id: initramfs 900 2007-12-16 09:17:34Z chepati $
-#                                                                             #
-###############################################################################
-
-###############################################################################
-# Definitions
-###############################################################################
-
-include Config
-
-PKG_NAME			= initramfs
-HOST_ARCH			= all
-OTHER_SRC			= no
-
-THISAPP				= initramfs
-DIR_APP				= $(DIR_SRC)/$(THISAPP)
-TARGET				= $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
-INITRAMFS_DIR			= $(INSTALLER_DIR)/initramfs
-FLOPPY_ROOT_DIR			= /tmp/floppy_root
-
-###############################################################################
-# Top-level Rules
-###############################################################################
-
-install : $(TARGET)
-
-check :
-
-download :
-
-md5 :
-
-###############################################################################
-# Installation Details
-###############################################################################
-
-$(TARGET) :
-	#################################################################################################
                
-	#################################################################################################
                
-	# START of general section									#
-	# This part applies to all initramfs images							#
-	#################################################################################################
                
-	#################################################################################################
                
-	# Make sure some directories exist
-	mkdir -p						$(INITRAMFS_DIR)/bin
-	mkdir -p						$(INITRAMFS_DIR)/cdrom
-	mkdir -p						$(INITRAMFS_DIR)/dev
-	mkdir -p						$(INITRAMFS_DIR)/etc/pcmcia
-	mkdir -p						$(INITRAMFS_DIR)/harddisk
-	mkdir -p						$(INITRAMFS_DIR)/lib
-	mkdir -p						$(INITRAMFS_DIR)/mnt
-	mkdir -p						$(INITRAMFS_DIR)/proc
-	mkdir -p						$(INITRAMFS_DIR)/root
-	mkdir -p						$(INITRAMFS_DIR)/usr
-	mkdir -p						$(INITRAMFS_DIR)/sys
-	mkdir -p						$(INITRAMFS_DIR)/tmp
-	mkdir -p						$(INITRAMFS_DIR)/usr/bin
-	mkdir -p						$(INITRAMFS_DIR)/usr/lib
-	mkdir -p						$(INITRAMFS_DIR)/usr/share/locale
-	mkdir -p						$(INITRAMFS_DIR)/usr/share/terminfo/l
-	mkdir -p						$(INITRAMFS_DIR)/usr/share/udhcpc
-	mkdir -p						$(INITRAMFS_DIR)/var/run
-	ln -sf bin						$(INITRAMFS_DIR)/sbin
-
-	# Install udevd, udevtrigger, udevsettle
-	install -D /sbin/udevd					$(INITRAMFS_DIR)/bin
-	install -D /sbin/udevsettle				$(INITRAMFS_DIR)/bin
-	install -D /sbin/udevtrigger				$(INITRAMFS_DIR)/bin
-
-	# Copy some udev devices and helpers
-	cp -a /lib/udev						$(INITRAMFS_DIR)/lib/
-
-	# Copy the udev rules
-	cp -a /etc/udev						$(INITRAMFS_DIR)/etc/
-
-	# Now remove some udev helpers and the rules that use them.  These helpers are not \
                needed on the initramfs
-	for helper in $(INITRAMFS_DIR)/lib/udev/*_id; do \
-		echo -ne "Removing udev helper: $$helper"; \
-		rm -f $$helper; \
-		echo ", and the rules that use it:"; \
-		for rule in `grep -l "$$(basename $$helper)" $(INITRAMFS_DIR)/etc/udev/rules.d/*`; \
                do \
-			echo -e "\tRemoving udev rule: $$rule"; \
-			rm -f $$rule; \
-		done; \
-	done
-
-	# Copy /etc/group so udev doesn't complain about unknown groups
-	cp -a /etc/group					$(INITRAMFS_DIR)/etc/
-
-	# Copy the discover xml data files
-	mkdir -p						$(INITRAMFS_DIR)/usr/share/discover
-	cp -a /usr/share/discover/*				$(INITRAMFS_DIR)/usr/share/discover/
-
-	# Copy the discover config files
-	cp -a /etc/discover*					$(INITRAMFS_DIR)/etc/
-
-	# Copy busybox
-	cp -a $(INSTALLER_DIR)/busybox/* $(INITRAMFS_DIR)/bin/
-
-	# Install iowrap (from misc-progs)
-	install -c -D /usr/local/bin/iowrap			$(INITRAMFS_DIR)/bin/iowrap
-
-	# Install pccardctl, pcmcia-check-broken-cis, lspcmcia (from pcmciautils)
-	install -c -D /sbin/pccardctl				$(INITRAMFS_DIR)/usr/bin/pccardctl
-	ln -sf pccardctl					$(INITRAMFS_DIR)/usr/bin/lspcmcia
-	install -c -D /sbin/pcmcia-check-broken-cis		$(INITRAMFS_DIR)/usr/bin/pcmcia-check-broken-cis
                
-	install -c -D /sbin/pcmcia-socket-startup		$(INITRAMFS_DIR)/usr/bin/pcmcia-socket-startup
                
-	install -c -m 644  -D \
                /etc/pcmcia/config.opts		$(INITRAMFS_DIR)/etc/pcmcia/config.opts
-
-	# Install a few keyboard utilities (from kbd)
-	install -c -D /bin/kbd_mode				$(INITRAMFS_DIR)/usr/bin/kbd_mode
-	install -c -D /bin/loadkeys				$(INITRAMFS_DIR)/usr/bin/loadkeys
-	install -c -D /bin/setfont				$(INITRAMFS_DIR)/usr/bin/setfont
-	install -c -D /usr/bin/dumpkeys				$(INITRAMFS_DIR)/usr/bin/dumpkeys
-	install -c -D /usr/bin/loadunimap			$(INITRAMFS_DIR)/usr/bin/loadunimap
-	install -c -D /usr/bin/showconsolefont			$(INITRAMFS_DIR)/usr/bin/showconsolefont
-	install -c -D /usr/bin/unicode_start			$(INITRAMFS_DIR)/usr/bin/unicode_start
-	install -c -D /usr/bin/unicode_stop			$(INITRAMFS_DIR)/usr/bin/unicode_stop
-
-	# Install mke2fs (from e2fsprogs)
-	install -c -D /sbin/mke2fs				$(INITRAMFS_DIR)/usr/bin/mke2fs
-
-	# Install parted and libparted (from parted)
-	install -c -D /usr/sbin/parted				$(INITRAMFS_DIR)/usr/bin/parted
-
-	# Install some console fonts needed by the installer
-	mkdir -p						$(INITRAMFS_DIR)/usr/share/kbd/consolefonts
-
-	for font in	/usr/share/kbd/consolefonts/lat0-16.psfu.gz \
-			/usr/share/kbd/consolefonts/lat1-16.psfu.gz \
-			/usr/share/kbd/consolefonts/lat2-16.psfu.gz \
-			/usr/share/kbd/consolefonts/lat5-16.psfu.gz \
-			/usr/share/kbd/consolefonts/lat5-16.psfu.gz \
-			/usr/share/kbd/consolefonts/iso07u-16.psfu.gz \
-			/usr/share/kbd/consolefonts/viscii10-8x16.psfu.gz; \
-	do \
-		install -m 0644 $$font				$(INITRAMFS_DIR)/$$font; \
-	done
-
-        # Language info for installer
-	cp $(DIR_SRC)/langs/list				$(INITRAMFS_DIR)/usr/share/locale/list
-	
-	# Locale for installer
-	for i in $(DIR_SRC)/langs/*_* ; do \
-		mkdir -p $(INITRAMFS_DIR)/usr/share/locale/`basename $$i`/LC_MESSAGES; \
-		msgfmt $$i/install.po -o \
-			$(INITRAMFS_DIR)/usr/share/locale/`basename $$i`/LC_MESSAGES/install.mo; \
-	done
-
-	# Copy locale archive
-	mkdir -p $(INITRAMFS_DIR)/lib/locale/
-	cp -a /usr/lib/locale/locale-archive $(INITRAMFS_DIR)/lib/locale/locale-archive
-
-	# Copy over udhcp settings for busybox
-	install -m 0755 $(DIR_SRC)/config/busybox/default.script \
-							$(INITRAMFS_DIR)/usr/share/udhcpc/default.script
-
-	# Finish up initramfs directory
-	install --owner=root --group=root $(DIR_SRC)/config/install/* $(INITRAMFS_DIR)/etc/
-	mv $(INITRAMFS_DIR)/etc/init				$(INITRAMFS_DIR)/
-	rm -rf							$(INITRAMFS_DIR)/etc/.svn
-	rm -rf							$(INITRAMFS_DIR)/usr/share/man
-	cp -f /etc/issue					$(INITRAMFS_DIR)/etc/
-	chmod 755						$(INITRAMFS_DIR)/init
-	chmod 755						$(INITRAMFS_DIR)/etc/halt
-	chmod 755						$(INITRAMFS_DIR)/etc/rc
-	cp -f /usr/share/terminfo/l/linux			$(INITRAMFS_DIR)/usr/share/terminfo/l
-
-	# Delete the mini-initramfs init
-	rm -f $(INITRAMFS_DIR)/etc/init-mini-initramfs
-
-	# Copy the filesystem modules
-	mkdir -p $(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/fs
-	cp -af /lib/modules/$(KVER)/kernel/fs/*			$(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/fs
                
-
-	# Copy the ATA/IDE modules
-	mkdir -p $(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers
-	cp -af	/lib/modules/$(KVER)/kernel/drivers/ata \
-		/lib/modules/$(KVER)/kernel/drivers/ide \
-								$(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers
-
-	# Copy the SCSI modules
-	cp -af	/lib/modules/$(KVER)/kernel/drivers/scsi \
-		/lib/modules/$(KVER)/kernel/drivers/message \
-		/lib/modules/$(KVER)/kernel/drivers/base \
-								$(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers
-
-	# Copy one BLOCK module
-	mkdir -p $(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers/block
-	cp -af /lib/modules/$(KVER)/kernel/drivers/block/DAC960.ko \
-							$(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers/block
-
-	# Sparcs don't have pcmcia, skip
-ifneq "$(MACHINE)" "sparc"
-	# Copy the PCMCIA modules
-	cp -af /lib/modules/$(KVER)/kernel/drivers/pcmcia \
-								$(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers
-endif
-
-	# Copy the CDROM modules
-	cp -af /lib/modules/$(KVER)/kernel/drivers/cdrom \
-								$(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers
-
-	# Copy the USB/HID modules
-	cp -af	/lib/modules/$(KVER)/kernel/drivers/usb \
-		/lib/modules/$(KVER)/kernel/drivers/hid \
-								$(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers
-
-	# Copy the FIREWIRE modules
-	cp -af	/lib/modules/$(KVER)/kernel/drivers/firewire \
-		/lib/modules/$(KVER)/kernel/drivers/ieee1394 \
-								$(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers
-
-	# Copy the NETWORK modules
-	cp -af /lib/modules/$(KVER)/kernel/drivers/net		$(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers
                
-							
-	# Make new dependencies
-	depmod -a -F /boot/System.map-$(KVER) $(KVER)
-
-	# Copy modules.dep
-	cp -f /lib/modules/$(KVER)/modules.dep $(INITRAMFS_DIR)/lib/modules/$(KVER)
-
-	# Strip the installer binaries
-	find $(INITRAMFS_DIR)/bin $(INITRAMFS_DIR)/usr/bin -maxdepth 1 -type f \
-		-exec $(TOOLS_DIR)/bin/strip --strip-all '{}' ';'
-
-	# Shrink glibc.  Need to do the same for the other libs, if possible.
-	# mklibs does both the shrinking and the stripping, so we don't have to strip libs \
                separately
-	# NOTE: "E: Dynamic linker not found, aborting." means the binary is not \
                dynamically linked.  Safe to ignore.
-	/usr/bin/mklibs -v	-L /usr/lib/libc_pic \
-				-d $(INITRAMFS_DIR)/lib \
-				$(INITRAMFS_DIR)/bin/* \
-				$(INITRAMFS_DIR)/usr/bin/*
-
-	# Create the images directory
-	-mkdir -p $(INSTALLER_DIR)/images
-	#################################################################################################
                
-	#################################################################################################
                
-	# END of general section									#
-	#################################################################################################
                
-	#################################################################################################
                
-
-
-
-
-
-
-	#################################################################################################
                
-	#################################################################################################
                
-	# START of mkinitramfs section									#
-	# This part only applies to mkinitramfs								#
-	#################################################################################################
                
-	#################################################################################################
                
-	# Start from scratch
-	rm -fr /usr/lib/mkinitramfs
-	mkdir -p /usr/lib/mkinitramfs
-
-	# Copy the initramfs init
-	cp -af $(INITRAMFS_DIR)/init /usr/lib/mkinitramfs/
-
-	# Create a basic initramfs directory structure
-	for directory in bin cdrom dev etc harddisk lib mnt proc root sys tmp var; do \
-		install -d -m 755 /usr/lib/mkinitramfs/$$directory; \
-	done
-
-	# Create a link bin -> sbin
-	ln -sf bin /usr/lib/mkinitramfs/sbin
-
-	# Copy important configuration
-	cp -af $(INITRAMFS_DIR)/etc/* /usr/lib/mkinitramfs/etc/
-
-	# Copy udev, busybox, and its links
-	cp -af $(INITRAMFS_DIR)/bin/* /usr/lib/mkinitramfs/bin/
-
-	# Remove the installer
-	rm -f /usr/lib/mkinitramfs/bin/installer
-
-	# Copy udev helpers
-	cp -af $(INITRAMFS_DIR)/lib/udev /usr/lib/mkinitramfs/lib/
-	
-	# Now shrink glibc for the initramfs
-	/usr/bin/mklibs -v -L /usr/lib/libc_pic -d /usr/lib/mkinitramfs/lib \
                /usr/lib/mkinitramfs/bin/*
-	#################################################################################################
                
-	#################################################################################################
                
-	# END of mkinitramfs section									#
-	#################################################################################################
                
-	#################################################################################################
                
-
-
-
-
-
-
-	#################################################################################################
                
-	#################################################################################################
                
-	# START of cdrom, floppy and mini-initramfs initramfs section					#
-	# This part only applies to the installation floppy and cdrom initramfs				#
-	#################################################################################################
                
-	#################################################################################################
                
-
-	#################################################################################################
                
-	# START of cdrom section									#
-	#################################################################################################
                
-	# Copy over any binary firmware that may be needed by the installer.  We also copy \
                the LICENSE files.
-	cp -a /lib/firmware $(INITRAMFS_DIR)/lib/
-
-	# Do we still need this link?
-	touch $(INITRAMFS_DIR)/CDROMBOOT
-
-	# Finally, create the cpio archive
-	cd $(INITRAMFS_DIR) && find . | cpio -o -H newc | gzip -9 > \
-		$(INSTALLER_DIR)/images/cdinitramfs-$(VERSION).img
-	#################################################################################################
                
-	# END of cdrom section										#
-	#################################################################################################
                
-
-
-	# Sparcs don't need boot floppies, so skip the floppy and mini-initramfs sections
-ifneq "$(MACHINE)" "sparc"
-	#################################################################################################
                
-	# START of floppy section									#
-	#################################################################################################
                
-
-	# Create the floppy root directory in /tmp
-	rm -fr							$(FLOPPY_ROOT_DIR)
-	mkdir -p						$(FLOPPY_ROOT_DIR)
-
-	# Copy all the directories from the cdinitramfs direcory, except for lib and usr
-	cp -af $(INITRAMFS_DIR)/bin				$(FLOPPY_ROOT_DIR)/
-	cp -af $(INITRAMFS_DIR)/cdrom				$(FLOPPY_ROOT_DIR)/
-	cp -af $(INITRAMFS_DIR)/dev				$(FLOPPY_ROOT_DIR)/
-	cp -af $(INITRAMFS_DIR)/etc				$(FLOPPY_ROOT_DIR)/
-	cp -af $(INITRAMFS_DIR)/harddisk			$(FLOPPY_ROOT_DIR)/
-	cp -af $(INITRAMFS_DIR)/init				$(FLOPPY_ROOT_DIR)/
-	cp -af $(INITRAMFS_DIR)/mnt				$(FLOPPY_ROOT_DIR)/
-	cp -af $(INITRAMFS_DIR)/proc				$(FLOPPY_ROOT_DIR)/
-	cp -af $(INITRAMFS_DIR)/root				$(FLOPPY_ROOT_DIR)/
-	cp -af $(INITRAMFS_DIR)/sys				$(FLOPPY_ROOT_DIR)/
-	cp -af $(INITRAMFS_DIR)/tmp				$(FLOPPY_ROOT_DIR)/
-	cp -af $(INITRAMFS_DIR)/var				$(FLOPPY_ROOT_DIR)/
-	ln -sf bin						$(FLOPPY_ROOT_DIR)/sbin
-
-	# Create /dev/console and /dev/null needed by the floppy mini-initramfs
-	cp -a /dev/console /dev/null				$(FLOPPY_ROOT_DIR)/dev/
-
-	# Just a stupid flag file
-	touch $(FLOPPY_ROOT_DIR)/FLOPPYBOOT
-
-	# Empty out /etc/modules.conf because the mini-initramfs has only very few kernel \
                modules
-	cat /dev/null >	$(FLOPPY_ROOT_DIR)/etc/modules.conf
-
-	# Now copy only those libraries we need to the floppy root directory
-	mkdir -p $(FLOPPY_ROOT_DIR)/lib
-	for lib in `ldd $(FLOPPY_ROOT_DIR)/bin/installer | awk '{print $$1}' | grep -v \
                linux-gate`; do \
-		cp -a $(INITRAMFS_DIR)/lib/$$(basename $$lib)	$(FLOPPY_ROOT_DIR)/lib/; \
-	done
-	
-	# Copy the udev helpers into the floppy root directory
-	cp -a $(INITRAMFS_DIR)/lib/udev				$(FLOPPY_ROOT_DIR)/lib/
-
-	# Copy modules.dep to the floppy root directory
-	mkdir -p						$(FLOPPY_ROOT_DIR)/lib/modules/$(KVER)
-	cp -a $(INITRAMFS_DIR)/lib/modules/$(KVER)/modules.dep	$(FLOPPY_ROOT_DIR)/lib/modules/$(KVER)/
                
-
-	# Create the kernel modules directory
-	mkdir -p $(FLOPPY_ROOT_DIR)/lib/modules/$(KVER)/kernel/drivers
-
-	# Copy the EXT3 FS module
-	mkdir -p $(FLOPPY_ROOT_DIR)/lib/modules/$(KVER)/kernel/fs
-	cp -a	$(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/fs/mbcache.ko \
-		$(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/fs/ext3 \
-			$(FLOPPY_ROOT_DIR)/lib/modules/$(KVER)/kernel/fs/
-
-	# Copy the CDROM kernel modules
-	cp -a $(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers/cdrom \
-								$(FLOPPY_ROOT_DIR)/lib/modules/$(KVER)/kernel/drivers/
-
-	# Copy the IDE kernel modules
-	cp -a $(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers/ide \
-								$(FLOPPY_ROOT_DIR)/lib/modules/$(KVER)/kernel/drivers/
-
-	# Copy some final files
-	mkdir -p $(FLOPPY_ROOT_DIR)/usr/share
-	for directory in discover kbd terminfo udhcpc; do \
-		cp -a /$(INITRAMFS_DIR)/usr/share/$$directory	$(FLOPPY_ROOT_DIR)/usr/share/; \
-	done
-
-	# Now create a cpio archive of the root floppy
-	cd $(FLOPPY_ROOT_DIR) && find . | cpio -o -H newc | gzip -9 > \
-								$(INSTALLER_DIR)/images/$(SNAME)-$(VERSION)-root.img
-
-	# Clean and prepare for the root-extra floppy
-	rm -fr $(FLOPPY_ROOT_DIR)/*
-
-	# Copy the the locale archive to the extra floppy root directory
-	mkdir -p						$(FLOPPY_ROOT_DIR)/lib
-	cp -a $(INITRAMFS_DIR)/lib/locale			$(FLOPPY_ROOT_DIR)/lib/
-
-	# Copy the installer i18n messages
-	mkdir -p						$(FLOPPY_ROOT_DIR)/usr/share
-	cp -a $(INITRAMFS_DIR)/usr/share/locale			$(FLOPPY_ROOT_DIR)/usr/share/
-
-	# Copy some extra binaries
-	cp -a $(INITRAMFS_DIR)/usr/bin				$(FLOPPY_ROOT_DIR)/usr/
-
-	# Now copy the extra libraries we need for the extra binaries
-	mkdir -p $(FLOPPY_ROOT_DIR)/usr/lib
-
-	# And remove those libraries that are already included on the first root floppy
-	cp -a $(INITRAMFS_DIR)/lib/*.so.*			$(FLOPPY_ROOT_DIR)/usr/lib/
-	for lib in `ldd $(INITRAMFS_DIR)/bin/installer | awk '{print $$1}' | grep -v \
                linux-gate`; do \
-		rm -f $(FLOPPY_ROOT_DIR)/usr/lib/$$(basename $$lib); \
-	done
-	
-	# Create the kernel modules directory
-	mkdir -p $(FLOPPY_ROOT_DIR)/lib/modules/$(KVER)/kernel/drivers
-
-	# Copy the ATA kernel modules
-	cp -a $(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers/ata \
-								$(FLOPPY_ROOT_DIR)/lib/modules/$(KVER)/kernel/drivers/
-
-	# Sparcs don't have pcmcia, skip
-ifneq "$(MACHINE)" "sparc"
-	# Copy the PCMCIA kernel modules
-	cp -a $(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers/pcmcia \
-								$(FLOPPY_ROOT_DIR)/lib/modules/$(KVER)/kernel/drivers/
-endif
-
-	# Copy the FIREWIRE kernel modules
-	cp -a	$(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers/firewire \
-		$(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers/ieee1394 \
-								$(FLOPPY_ROOT_DIR)/lib/modules/$(KVER)/kernel/drivers/
-
-	# Copy the USB/HID kernel modules
-	cp -a	$(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers/usb \
-		$(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers/hid \
-								$(FLOPPY_ROOT_DIR)/lib/modules/$(KVER)/kernel/drivers/
-
-	# Now create a cpio archive of the extra root floppy
-	cd $(FLOPPY_ROOT_DIR) && find . | cpio -o -H newc | gzip -9 > \
-							$(INSTALLER_DIR)/images/$(SNAME)-$(VERSION)-root-extra.img
-
-	# Clean and prepare for the scsi drivers floppy
-	rm -fr $(FLOPPY_ROOT_DIR)/*
-
-	# Create the kernel modules directory
-	mkdir -p $(FLOPPY_ROOT_DIR)/lib/modules/$(KVER)/kernel/drivers
-
-	# Copy the BASE kernel modules
-	cp -a $(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers/base \
-								$(FLOPPY_ROOT_DIR)/lib/modules/$(KVER)/kernel/drivers/
-
-	# Copy the BLOCK kernel modules
-	cp -a $(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers/block \
-								$(FLOPPY_ROOT_DIR)/lib/modules/$(KVER)/kernel/drivers/
-
-	# Copy the MESSAGE kernel modules
-	cp -a $(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers/message \
-								$(FLOPPY_ROOT_DIR)/lib/modules/$(KVER)/kernel/drivers/
-
-	# Copy the SCSI kernel modules
-	cp -a   $(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers/scsi \
-								$(FLOPPY_ROOT_DIR)/lib/modules/$(KVER)/kernel/drivers/
-
-	# Now create a cpio archive of the scsi drivers floppy
-	cd $(FLOPPY_ROOT_DIR) && find . | cpio -o -H newc | gzip -9 > \
-							$(INSTALLER_DIR)/images/$(SNAME)-$(VERSION)-scsi-drivers.img
-
-	# Clean and prepare for the network drivers floppy
-	rm -fr $(FLOPPY_ROOT_DIR)/*
-
-	# Create the kernel modules directory
-	mkdir -p $(FLOPPY_ROOT_DIR)/lib/modules/$(KVER)/kernel/drivers
-
-	# Copy the NETWORK kernel modules
-	cp -a   $(INITRAMFS_DIR)/lib/modules/$(KVER)/kernel/drivers/net \
-								$(FLOPPY_ROOT_DIR)/lib/modules/$(KVER)/kernel/drivers/
-
-	# Remove some modules so we can fit everything on one floppy
-	for directory in atl1 bonding ixgb myri10ge sk98lin tokenring usb wan wireless; do \
                \
-		rm -fr $(FLOPPY_ROOT_DIR)/lib/modules/$(KVER)/kernel/drivers/net/$$directory; \
-	done
-
-	# Now create a cpio archive of the network drivers floppy
-	cd $(FLOPPY_ROOT_DIR) && find . | cpio -o -H newc | gzip -9 > \
-							$(INSTALLER_DIR)/images/$(SNAME)-$(VERSION)-network-drivers.img
-
-	# Clean and prepare for the network drivers floppy
-	rm -fr $(FLOPPY_ROOT_DIR)/*
-
-#	# Create a file list for root floppy
-#	-rm -f $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/root.list \
                $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/root-$(VERSION).img
-#	cd $(INITRAMFS_DIR) && find ./ -type d | sed 's!\./!!g' | \
-#		sort > $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/root.list
-#
-#	# Hide errors listing empty directories
-#	-cd $(INITRAMFS_DIR) && \
-#		for dir in `cat $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/root.list`; do \
-#			echo $$dir >> $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/root-$(VERSION).img; \
-#			ls -s1 $$dir/* >> $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/root-$(VERSION).img \
                2>/dev/null; \
-#		done
-#	rm -f $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/root.list
-	#################################################################################################
                
-	# END of floppy section										#
-	#################################################################################################
                
-
-	#################################################################################################
                
-	# START of mini-initramfs section								#
-	#################################################################################################
                
-	# Start from scratch
-	rm -fr $(INSTALLER_DIR)/mini-initramfs/*
-
-	# Now create a very basic mini-initramfs directory structure
-	mkdir -p						$(INSTALLER_DIR)/mini-initramfs/bin
-	mkdir -p						$(INSTALLER_DIR)/mini-initramfs/cdrom
-	mkdir -p						$(INSTALLER_DIR)/mini-initramfs/dev
-	mkdir -p						$(INSTALLER_DIR)/mini-initramfs/etc
-	mkdir -p						$(INSTALLER_DIR)/mini-initramfs/floppy
-	mkdir -p						$(INSTALLER_DIR)/mini-initramfs/initramfs
-	mkdir -p						$(INSTALLER_DIR)/mini-initramfs/lib
-	mkdir -p						$(INSTALLER_DIR)/mini-initramfs/mnt
-	mkdir -p						$(INSTALLER_DIR)/mini-initramfs/proc
-	mkdir -p						$(INSTALLER_DIR)/mini-initramfs/sys
-	mkdir -p						$(INSTALLER_DIR)/mini-initramfs/tmp
-	mkdir -p						$(INSTALLER_DIR)/mini-initramfs/var
-
-	# klibc builds a shared library with a unique, unpredictable name and all the \
                binaries expect
-	# to find that uniquely named library
-	cp -a $(INSTALLER_DIR)/klibc/usr/lib/klibc/lib/klibc-*.so \
                $(INSTALLER_DIR)/mini-initramfs/lib
-
-	# klibc has a few more porgrams, but we're trying to keep the mini-initramfs very \
                very small
-	for binary in cat cpio insmod mkdir mknod mount run-init sh.shared sleep umount \
                uname zcat; do \
-		cp -a $(INSTALLER_DIR)/klibc/usr/lib/klibc/bin/$$binary \
                $(INSTALLER_DIR)/mini-initramfs/bin/; \
-	done
-
-	# Make sure the shell has a normal name
-	mv $(INSTALLER_DIR)/mini-initramfs/bin/sh.shared \
                $(INSTALLER_DIR)/mini-initramfs/bin/sh
-
-	# Copy the floppy, ide-core, ide-generic, and ide-cd modules into the \
                mini-initramfs
-	mkdir -p $(INSTALLER_DIR)/mini-initramfs/lib/modules/$(KVER)/kernel/drivers/block
-	mkdir -p $(INSTALLER_DIR)/mini-initramfs/lib/modules/$(KVER)/kernel/drivers/ide
-
-ifeq "$(MACHINE)" "i486"
-	cp -a	/lib/modules/$(KVER)/kernel/drivers/block/floppy.ko \
-			$(INSTALLER_DIR)/mini-initramfs/lib/modules/$(KVER)/kernel/drivers/block/
-
-	cp -a	/lib/modules/$(KVER)/kernel/drivers/ide/ide-core.ko \
-		/lib/modules/$(KVER)/kernel/drivers/ide/ide-generic.ko \
-		/lib/modules/$(KVER)/kernel/drivers/ide/ide-cd.ko \
-			$(INSTALLER_DIR)/mini-initramfs/lib/modules/$(KVER)/kernel/drivers/ide/
-endif
-
-ifeq "$(MACHINE)" "ppc"
-	#cp -a	/lib/modules/$(KVER)/kernel/drivers/block/swim3.ko \
-	#		$(INSTALLER_DIR)/mini-initramfs/lib/modules/$(KVER)/kernel/drivers/block/
-
-	cp -a	/lib/modules/$(KVER)/kernel/drivers/ide/ide-generic.ko \
-		/lib/modules/$(KVER)/kernel/drivers/ide/ide-cd.ko \
-			$(INSTALLER_DIR)/mini-initramfs/lib/modules/$(KVER)/kernel/drivers/ide/
-endif
-
-
-	# Copy the cdrom module
-	mkdir -p $(INSTALLER_DIR)/mini-initramfs/lib/modules/$(KVER)/kernel/drivers/cdrom
-	cp -a   /lib/modules/$(KVER)/kernel/drivers/cdrom/cdrom.ko \
-			$(INSTALLER_DIR)/mini-initramfs/lib/modules/$(KVER)/kernel/drivers/cdrom/
-
-	# Create a modules.dep with only the floppy, cdrom, and ide-generic modules
-ifeq "$(MACHINE)" "i486"
-	grep "block/floppy.ko:" /lib/modules/$(KVER)/modules.dep > \
-		$(INSTALLER_DIR)/mini-initramfs/lib/modules/$(KVER)/modules.dep
-	grep "ide/ide-generic.ko:" /lib/modules/$(KVER)/modules.dep >> \
-		$(INSTALLER_DIR)/mini-initramfs/lib/modules/$(KVER)/modules.dep
-	grep "ide/ide-cd.ko:" /lib/modules/$(KVER)/modules.dep >> \
-		$(INSTALLER_DIR)/mini-initramfs/lib/modules/$(KVER)/modules.dep
-endif
-
-ifeq "$(MACHINE)" "ppc"
-	#grep "block/swim3.ko:" /lib/modules/$(KVER)/modules.dep > \
-	#	$(INSTALLER_DIR)/mini-initramfs/lib/modules/$(KVER)/modules.dep
-	grep "ide/ide-cd.ko:" /lib/modules/$(KVER)/modules.dep >> \
-		$(INSTALLER_DIR)/mini-initramfs/lib/modules/$(KVER)/modules.dep
-endif
-
-	# Finally copy the init script shamelessly stolen from debian-floppy
-	install -m 755 $(DIR_SRC)/config/install/init-mini-initramfs \
                $(INSTALLER_DIR)/mini-initramfs/init
-	sed -i "s,^KVER=KVER,KVER=$(KVER),g" $(INSTALLER_DIR)/mini-initramfs/init
-
-	cd $(INSTALLER_DIR)/mini-initramfs && find . | cpio -o -H newc | gzip -9 > \
-		$(INSTALLER_DIR)/images/$(SNAME)-$(VERSION)-mini-initramfs.img
-	#################################################################################################
                
-	# END of mini-initramfs section									#
-	#################################################################################################
                
-endif
-
-	#################################################################################################
                
-	#################################################################################################
                
-	# END of floppy and cdrom initramfs section							#
-	#################################################################################################
                
-	#################################################################################################
                
-
-	# yes we want it rebuilt each time, so no POSTBUILD


This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic