X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=lfs%2Finitrd;h=ad8b135a638a8740079bc6685c9da0d706f063bc;hb=142eea7a3b12f8bf8e8d91d058fc09d03b7fa18e;hp=8a95bf5b039461be0f50ea9ad6bd8f36d80079ee;hpb=9fa83d33e6e35c4f8113468f5fa1c2388669cf1d;p=people%2Fpmueller%2Fipfire-2.x.git diff --git a/lfs/initrd b/lfs/initrd index 8a95bf5b03..ad8b135a63 100644 --- a/lfs/initrd +++ b/lfs/initrd @@ -1,22 +1,20 @@ ############################################################################### -# This file is part of the IPCop Firewall. # # # -# IPCop is free software; you can redistribute it and/or modify # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# # +# This program 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 # +# the Free Software Foundation, either version 3 of the License, or # # (at your option) any later version. # # # -# IPCop is distributed in the hope that it will be useful, # +# This program 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 # +# along with this program. If not, see . # # # ############################################################################### @@ -56,31 +54,42 @@ $(TARGET) : -mkdir -p /install/initrd/{dev,etc,mnt,root,lib/modules/$(KVER)-ipfire/kernel/drivers,cdrom,dev,harddisk,proc,tmp,usr/share/terminfo/l,var/run,sys} && \ cd /install/initrd/etc && rm -f fstab cp -aRf $(DIR_SRC)/config/install/* /install/initrd/etc/ - rm -rf /install/initrd/etc{,/udev,/udev/rules.d}/.svn rm -rf /install/initrd/usr/share/man chmod 755 /install/initrd/etc/halt /install/initrd/etc/rc cp -f /usr/share/terminfo/l/linux /install/initrd/usr/share/terminfo/l # make new dependencies depmod -a -F /boot/System.map-$(KVER)-ipfire $(KVER)-ipfire - depmod -a -F /boot/System.map-$(KVER)-ipfire-smp $(KVER)-ipfire-smp + #depmod -a -F /boot/System.map-$(KVER)-ipfire-smp $(KVER)-ipfire-smp cp -a /lib/modules/$(KVER)-ipfire/ /install/initrd/lib/modules/ - rm -rf /install/initrd/lib/modules/$(KVER)-ipfire/{build,source} \ - /install/initrd/lib/modules/$(KVER)-ipfire/kernel/drivers/message/fusion/mptlan* + + rm -rf /install/initrd/lib/modules/$(KVER)-ipfire/{build,mISDN,source,misc/*,kernel/{sound,drivers/{acpi,bluetooth,cpufreq,hwmon,gpu,rtc,isdn,media,video,watchdog}}} \ + /install/initrd/lib/modules/$(KVER)-ipfire/kernel/drivers/message/fusion/mptlan* \ + /install/initrd/lib/modules/$(KVER)-ipfire/net/{bridge,netfilter,ipsec} \ + /install/initrd/lib/modules/$(KVER)-ipfire/dahdi + + # ... acpi/dock.ko is needed for libata +# -mkdir -p /install/initrd/lib/modules/$(KVER)-ipfire/kernel/drivers/acpi +# cp -a /lib/modules/$(KVER)-ipfire/kernel/drivers/acpi/dock.ko \ +# /install/initrd/lib/modules/$(KVER)-ipfire/kernel/drivers/acpi/dock.ko cp /opt/$(MACHINE)-uClibc/lib/libgcc_s.so.1 /install/initrd/lib/ cd /install/initrd/lib/ && ln -sf libgcc_s.so.1 libgcc_s.so - + -mkdir -p /install/{images,mnt} rm -rf /install/mnt/* cp -aR /install/initrd/* /install/mnt - # make new dependencies - depmod -a -F /boot/System.map-$(KVER)-ipfire $(KVER)-ipfire + # make new dependencies for installer + depmod -a -F /boot/System.map-$(KVER)-ipfire \ + -b /install/initrd $(KVER)-ipfire + # Remove binary depmod files + rm -rf /install/initrd/lib/modules/$(KVER)-ipfire/modules.*.bin + mksquashfs /install/initrd /install/images/initrd cd /install/initrd && find ./ -ls > $(DIR_INFO)/_build.initrd.log