]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/linux-initrd
suricata: Change midstream policy to "pass-flow"
[people/pmueller/ipfire-2.x.git] / lfs / linux-initrd
CommitLineData
22820bf2
AF
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
aafdd71b 4# Copyright (C) 2007-2021 IPFire Team <info@ipfire.org> #
22820bf2
AF
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
9a7e4d85 45b2 : $(subst %,%_BLAKE2,$(objects))
22820bf2
AF
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
60 # Create initramfs images
2b7c6f8e 61 dracut --force --verbose --strip /boot/initramfs-$(KVER)-$(VERSUFIX).img $(KVER)-$(VERSUFIX)
22820bf2 62
f622fd8e
AF
63ifeq "$(BUILD_ARCH)" "aarch64"
64 cd /boot && mkimage -A arm64 -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(KVER)-$(VERSUFIX)
65 # dont remove initramfs because grub need this to boot.
5b17da41 66endif
c3efda65 67
22820bf2 68 @$(POSTBUILD)