]> git.ipfire.org Git - ipfire-2.x.git/blame - lfs/linux-initrd
pakfire: use correct tree on x86_64.
[ipfire-2.x.git] / lfs / linux-initrd
CommitLineData
22820bf2
AF
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
25include Config
26
27VER = $(KVER)
28
29THISAPP = linux-initrd-$(VER)
30
31VERSUFIX=ipfire$(KCFG)
32
33TARGET = $(DIR_INFO)/$(THISAPP)-$(VERSUFIX)
34
35###############################################################################
36# Top-level Rules
37###############################################################################
38
39install : $(TARGET)
40
41check : $(patsubst %,$(DIR_CHK)/%,$(objects))
42
43download :$(patsubst %,$(DIR_DL)/%,$(objects))
44
45md5 : $(subst %,%_MD5,$(objects))
46
47dist:
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
c3efda65
AF
60 #skip initrd build on pae and rpi kernel.
61ifneq "$(KCFG)" "-rpi"
62ifneq "$(KCFG)" "-pae"
63
22820bf2
AF
64 # Create initramfs images
65 dracut --force --verbose --strip --xz /boot/initramfs-$(KVER)-$(VERSUFIX).img $(KVER)-$(VERSUFIX)
66
67ifeq "$(KCFG)" "-kirkwood"
68 cd /boot && mkimage -A arm -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(VERSUFIX)
69endif
70
71ifeq "$(KCFG)" "-multi"
72 cd /boot && mkimage -A arm -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(VERSUFIX)
c3efda65
AF
73endif
74
75endif
22820bf2
AF
76endif
77 @$(POSTBUILD)