]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/driver.img
Zwischencommit Rootfiles...
[people/pmueller/ipfire-2.x.git] / lfs / driver.img
CommitLineData
df5e82b3
MT
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# #
df5e82b3
MT
21###############################################################################
22
23###############################################################################
24# Definitions
25###############################################################################
26
27include Config
28
a6316ce4
MT
29VER = ipfire
30
df5e82b3
MT
31THISAPP = driver-$(VERSION).img
32TARGET = $(DIR_INFO)/$(THISAPP)
33
34###############################################################################
35# Top-level Rules
36###############################################################################
37
38install : $(TARGET)
39
40check :
41
42download :
43
44md5 :
45
46###############################################################################
47# Installation Details
48###############################################################################
49
50$(TARGET) :
51 @$(PREBUILD)
52 -strip --strip-all /install/misc/bin/*
53
54 # make new dependencies
55 depmod -a -F /boot/System.map-$(KVER) $(KVER)
a6316ce4 56 depmod -a -F /boot/System.map-$(KVER)-smp $(KVER)-smp
df5e82b3
MT
57
58 # Create drivers floppy
59 cd /tmp && rm -rf drivers.tgz drivers.tar bin lib etc var
60 cd / && tar -cf /tmp/drivers.tar \
61 --exclude='lib/modules/$(KVER)/kernel/drivers/acpi/*' \
0fbb45e9 62 --exclude='lib/modules/$(KVER)/kernel/drivers/base/*' \
df5e82b3 63 --exclude='lib/modules/$(KVER)/kernel/drivers/block/*' \
0fbb45e9 64 --exclude='lib/modules/$(KVER)/kernel/drivers/bluetooth/*' \
df5e82b3
MT
65 --exclude='lib/modules/$(KVER)/kernel/drivers/char/*' \
66 --exclude='lib/modules/$(KVER)/kernel/drivers/ide/*' \
0fbb45e9 67 --exclude='lib/modules/$(KVER)/kernel/drivers/ieee1394/*' \
df5e82b3 68 --exclude='lib/modules/$(KVER)/kernel/drivers/isdn/*' \
0fbb45e9 69 --exclude='lib/modules/$(KVER)/kernel/drivers/md/*' \
df5e82b3
MT
70 --exclude='lib/modules/$(KVER)/kernel/drivers/net/ppp*' \
71 --exclude='lib/modules/$(KVER)/kernel/drivers/net/slip*' \
72 --exclude='lib/modules/$(KVER)/kernel/drivers/net/slhc*' \
73 --exclude='lib/modules/$(KVER)/kernel/drivers/net/tun*' \
8bd1be40
MT
74 --exclude='lib/modules/$(KVER)/kernel/drivers/net/imq*' \
75 --exclude='lib/modules/$(KVER)/kernel/drivers/net/wireless/*' \
76 --exclude='lib/modules/$(KVER)/kernel/drivers/parport/*' \
df5e82b3
MT
77 --exclude='lib/modules/$(KVER)/kernel/drivers/scsi/*' \
78 --exclude='lib/modules/$(KVER)/kernel/drivers/message/*' \
0fbb45e9 79 --exclude='lib/modules/$(KVER)/kernel/drivers/mmc/*' \
df5e82b3
MT
80 --exclude='lib/modules/$(KVER)/kernel/drivers/input/*' \
81 --exclude='lib/modules/$(KVER)/kernel/drivers/usb/storage/*' \
82 --exclude='lib/modules/$(KVER)/kernel/drivers/usb/host/*' \
83 --exclude='lib/modules/$(KVER)/kernel/arch/*' \
84 --exclude='lib/modules/$(KVER)/kernel/fs/*' \
0fbb45e9 85 --exclude='lib/modules/$(KVER)/kernel/net/8021q/*' \
df5e82b3 86 --exclude='lib/modules/$(KVER)/kernel/net/atm/*' \
0fbb45e9 87 --exclude='lib/modules/$(KVER)/kernel/net/bluetooth/*' \
8bd1be40 88 --exclude='lib/modules/$(KVER)/kernel/net/bridge/*' \
0fbb45e9 89 --exclude='lib/modules/$(KVER)/kernel/net/ieee80211/*' \
df5e82b3
MT
90 --exclude='lib/modules/$(KVER)/kernel/net/ipsec/*' \
91 --exclude='lib/modules/$(KVER)/kernel/net/ipv4/*' \
0fbb45e9 92 --exclude='lib/modules/$(KVER)/kernel/net/key/*' \
df5e82b3 93 --exclude='lib/modules/$(KVER)/kernel/net/sched/*' \
0fbb45e9 94 --exclude='lib/modules/$(KVER)/kernel/net/xfrm/*' \
df5e82b3
MT
95 --exclude='lib/modules/$(KVER)/*map' \
96 --exclude='lib/modules/$(KVER)/misc/*' \
97 --exclude='lib/modules/$(KVER)/extra/*' \
98 --exclude='lib/modules/$(KVER)/pcmcia/*' \
99 --exclude='lib/modules/$(KVER)/build' \
100 --exclude='lib/modules/$(KVER)/kernel/drivers/atm/*' \
101 --exclude=lib/modules/$(KVER)/kernel/drivers/usb/{3cp4218.o.gz,acm.o.gz,amedyn.o.gz,cxacru.o.gz,speedtch.o.gz,hid.o.gz,usbcore.o.gz} \
102 --exclude='lib/modules/$(KVER)/modules.*' \
103 lib/modules/$(KVER)
104 cd /tmp && tar xf drivers.tar
105 cd /tmp && mkdir -p {bin,etc/pcmcia,var/lib/pcmcia,var/run}
106 cd /tmp && cp -aR /install/misc/bin/* bin
a6316ce4 107# cd /tmp && cp -r /etc/pcmcia/{config*,net*} etc/pcmcia
df5e82b3
MT
108 # cardmgr wants to execute these to bring up the card, we'll
109 # create blank ones as we'll bring them up ourselves
a6316ce4
MT
110# cd /tmp/etc/pcmcia && rm -f network
111# cd /tmp/etc/pcmcia && touch network
112# cd /tmp/etc/pcmcia && chmod +x network
df5e82b3
MT
113 cd /tmp && tar -cf - bin/ etc/pcmcia var lib/modules/$(KVER) | gzip -9 -c > drivers.tgz
114
a6316ce4 115 dd if=/tmp/drivers.tgz of=/install/images/drivers-$(VERSION).img bs=2880k count=1 conv=sync
df5e82b3
MT
116 rm -rf /tmp/drivers.tgz /tmp/drivers.tar /tmp/bin /tmp/lib
117
118 ### If this fails, the disk is TOO FULL !!!!
119 tar tzf /install/images/drivers-$(VERSION).img >/dev/null 2>&1
120
121 @$(POSTBUILD)