]> git.ipfire.org Git - ipfire-2.x.git/blame - lfs/driver.img
RRDTool Fix
[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)
df5e82b3
MT
52 # make new dependencies
53 depmod -a -F /boot/System.map-$(KVER) $(KVER)
a6316ce4 54 depmod -a -F /boot/System.map-$(KVER)-smp $(KVER)-smp
df5e82b3
MT
55
56 # Create drivers floppy
57 cd /tmp && rm -rf drivers.tgz drivers.tar bin lib etc var
0afc6d83
MT
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)
df5e82b3 70 cd /tmp && tar xf drivers.tar
0afc6d83
MT
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
df5e82b3 75
a6316ce4 76 dd if=/tmp/drivers.tgz of=/install/images/drivers-$(VERSION).img bs=2880k count=1 conv=sync
df5e82b3
MT
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)