]> git.ipfire.org Git - ipfire-2.x.git/blob - lfs/linux-initrd
Update translations
[ipfire-2.x.git] / lfs / linux-initrd
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007-2014 IPFire Team <info@ipfire.org> #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include Config
26
27 VER = $(KVER)
28
29 THISAPP = linux-initrd-$(VER)
30
31 VERSUFIX=ipfire$(KCFG)
32
33 TARGET = $(DIR_INFO)/$(THISAPP)-$(VERSUFIX)
34
35 ###############################################################################
36 # Top-level Rules
37 ###############################################################################
38
39 install : $(TARGET)
40
41 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
42
43 download :$(patsubst %,$(DIR_DL)/%,$(objects))
44
45 md5 : $(subst %,%_MD5,$(objects))
46
47 dist:
48 @$(PAK)
49
50 ###############################################################################
51 # Installation Details
52 ###############################################################################
53
54 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
55 @$(PREBUILD)
56
57 # rebuild module deps
58 depmod -a $(KVER)-$(VERSUFIX)
59
60 #skip initrd build on pae and rpi kernel.
61 ifneq "$(KCFG)" "-rpi"
62 ifneq "$(KCFG)" "-pae"
63
64 # Create initramfs images
65 dracut --force --verbose --strip --xz /boot/initramfs-$(KVER)-$(VERSUFIX).img $(KVER)-$(VERSUFIX)
66
67 ifeq "$(KCFG)" "-kirkwood"
68 cd /boot && mkimage -A arm -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(VERSUFIX)
69 endif
70
71 ifeq "$(KCFG)" "-multi"
72 cd /boot && mkimage -A arm -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(VERSUFIX)
73 endif
74
75 endif
76 endif
77 @$(POSTBUILD)