]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - lfs/driver.img
Starte SSH-Server beim Boot.
[people/pmueller/ipfire-2.x.git] / lfs / driver.img
1 ###############################################################################
2 # This file is part of the IPCop Firewall. #
3 # #
4 # IPCop is free software; you can redistribute it and/or modify #
5 # it under the terms of the GNU General Public License as published by #
6 # the Free Software Foundation; either version 2 of the License, or #
7 # (at your option) any later version. #
8 # #
9 # IPCop is distributed in the hope that it will be useful, #
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
12 # GNU General Public License for more details. #
13 # #
14 # You should have received a copy of the GNU General Public License #
15 # along with IPCop; if not, write to the Free Software #
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
17 # #
18 # Makefiles are based on LFSMake, which is #
19 # Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #
20 # #
21 ###############################################################################
22
23 ###############################################################################
24 # Definitions
25 ###############################################################################
26
27 include Config
28
29 VER = ipfire
30
31 THISAPP = driver-$(VERSION).img
32 TARGET = $(DIR_INFO)/$(THISAPP)
33
34 ###############################################################################
35 # Top-level Rules
36 ###############################################################################
37
38 install : $(TARGET)
39
40 check :
41
42 download :
43
44 md5 :
45
46 ###############################################################################
47 # Installation Details
48 ###############################################################################
49
50 $(TARGET) :
51 @$(PREBUILD)
52 # make new dependencies
53 depmod -a -F /boot/System.map-$(KVER) $(KVER)
54 depmod -a -F /boot/System.map-$(KVER)-smp $(KVER)-smp
55
56 # Create drivers floppy
57 cd /tmp && rm -rf drivers.tgz drivers.tar bin lib etc var
58 cd / && tar -cf /tmp/drivers.tar \
59 --exclude=lib/modules/$(KVER)/kernel/{arch,fs} \
60 --exclude=lib/modules/$(KVER)/kernel/drivers/{acpi,atm,bluetooth,block,char,cdrom,hwmon,ide} \
61 --exclude=lib/modules/$(KVER)/kernel/drivers/{ieee1394,isdn,mmc,scsi,md,message,video} \
62 --exclude=lib/modules/$(KVER)/kernel/drivers/net/{wan,ppp*,slip*,slhc*,tun*,wireless} \
63 --exclude=lib/modules/$(KVER)/kernel/drivers/usb/{atm,input,storage,host} \
64 --exclude=lib/modules/$(KVER)/kernel/drivers/usb/{3cp4218.ko,acm.ko,amedyn.ko,cxacru.ko} \
65 --exclude=lib/modules/$(KVER)/kernel/drivers/usb/{speedtch.ko,hid.ko,usbcore.ko,at76c50*.ko} \
66 --exclude=lib/modules/$(KVER)/kernel/net/{8021q,atm,bluetooth,bridge,ieee80211,ipsec,ipv4} \
67 --exclude=lib/modules/$(KVER)/kernel/net/{wanrouter,netfilter,sched} \
68 --exclude=lib/modules/$(KVER)/{build,extra,misc,modules.*,source} \
69 lib/modules/$(KVER)
70 cd /tmp && tar xf drivers.tar
71 cd /tmp && mkdir -p {bin,var/run}
72 cd /tmp && tar -cf - bin var lib/modules/$(KVER) | gzip -9 -c > drivers.tgz
73
74 ls -l /tmp/drivers.tgz
75
76 dd if=/tmp/drivers.tgz of=/install/images/drivers-$(VERSION).img bs=2880k count=1 conv=sync
77 rm -rf /tmp/drivers.tgz /tmp/drivers.tar /tmp/bin /tmp/lib
78
79 ### If this fails, the disk is TOO FULL !!!!
80 tar tzf /install/images/drivers-$(VERSION).img >/dev/null 2>&1
81
82 @$(POSTBUILD)