make.sh: Remove KGCC variable.
[people/teissler/ipfire-2.x.git] / lfs / linux
CommitLineData
df5e82b3 1###############################################################################
df5e82b3 2# #
70df8302 3# IPFire.org - A linux based firewall #
2505d276 4# Copyright (C) 2007-2014 IPFire Team <info@ipfire.org> #
70df8302
MT
5# #
6# This program is free software: you can redistribute it and/or modify #
df5e82b3 7# it under the terms of the GNU General Public License as published by #
70df8302 8# the Free Software Foundation, either version 3 of the License, or #
df5e82b3
MT
9# (at your option) any later version. #
10# #
70df8302 11# This program is distributed in the hope that it will be useful, #
df5e82b3
MT
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 #
70df8302 17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
df5e82b3 18# #
df5e82b3
MT
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
707fd3ff 27VER = 3.10.40
fdecb907 28
525e7a3e 29RPI_PATCHES = linux-3.10.38-grsec-1b49b45
707fd3ff 30GRS_PATCHES = grsecurity-2.9.1-3.10.40-ipfire1.patch.xz
df5e82b3
MT
31
32THISAPP = linux-$(VER)
79f94395 33DL_FILE = linux-$(VER).tar.xz
a2cb3a33 34DL_FROM = $(URL_IPFIRE)
df5e82b3
MT
35DIR_APP = $(DIR_SRC)/$(THISAPP)
36CFLAGS =
37CXXFLAGS =
38
707fd3ff 39PAK_VER = 45
acdf0e61 40DEPS = ""
bd9921dd 41
fdf0c7c1 42VERSUFIX=ipfire$(KCFG)
b0d0b681 43
51f9e7ac 44ifeq "$(TOOLS)" "1"
cc24c14b 45 TARGET = $(DIR_INFO)/linux-$(VER)-$(VERSUFIX)-tools
51f9e7ac 46 HEADERS_PREFIX = /tools
51f9e7ac
MT
47else
48 TARGET = $(DIR_INFO)/linux-$(VER)-$(VERSUFIX)
cc24c14b 49 HEADERS_PREFIX = /usr
51f9e7ac
MT
50endif
51
cc72d5cb 52ifeq "$(MACHINE_TYPE)" "arm"
51f9e7ac
MT
53 HEADERS_ARCH=arm
54else
55 HEADERS_ARCH=x86
56endif
6230f0da 57
bc8fe5ff
AF
58ifeq "$(KCFG)" ""
59LASTKERNEL=1
60endif
61ifeq "$(KCFG)" "-kirkwood"
62LASTKERNEL=1
63endif
64
df5e82b3
MT
65###############################################################################
66# Top-level Rules
67###############################################################################
68objects =$(DL_FILE) \
68c2cbed
AF
69 rpi-patches-$(RPI_PATCHES).patch.xz \
70 $(GRS_PATCHES)
fdecb907 71
e69f1bf2 72
64cf4991 73$(DL_FILE) = $(URL_IPFIRE)/$(DL_FILE)
fdecb907 74rpi-patches-$(RPI_PATCHES).patch.xz = $(URL_IPFIRE)/rpi-patches-$(RPI_PATCHES).patch.xz
68c2cbed 75$(GRS_PATCHES) = $(URL_IPFIRE)/$(GRS_PATCHES)
e69f1bf2 76
707fd3ff 77$(DL_FILE)_MD5 = c1dca08f0f1a60f29b7caa9ff45582a8
525e7a3e 78rpi-patches-$(RPI_PATCHES).patch.xz_MD5 = a7408e8bad57b4b2cb677dd5a0bfb7ff
707fd3ff 79$(GRS_PATCHES)_MD5 = f46506dd67e459fc41d60d0641323668
3e5f2ee9 80
df5e82b3
MT
81install : $(TARGET)
82
83check : $(patsubst %,$(DIR_CHK)/%,$(objects))
84
85download :$(patsubst %,$(DIR_DL)/%,$(objects))
86
87md5 : $(subst %,%_MD5,$(objects))
88
f418a984
AF
89dist:
90 @$(PAK)
df5e82b3
MT
91###############################################################################
92# Downloading, checking, md5sum
93###############################################################################
94
95$(patsubst %,$(DIR_CHK)/%,$(objects)) :
96 @$(CHECK)
97
98$(patsubst %,$(DIR_DL)/%,$(objects)) :
99 @$(LOAD)
100
101$(subst %,%_MD5,$(objects)) :
102 @$(MD5)
103
104###############################################################################
105# Installation Details
106###############################################################################
107
108$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
109 @$(PREBUILD)
fdecb907 110 @rm -rf $(DIR_APP) $(DIR_SRC)/linux && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
b0d0b681 111
51f9e7ac 112 ln -svf linux-$(VER) $(DIR_SRC)/linux
3a1019f6 113
3c4d4ed0 114 # Linux Intermediate Queueing Device
2fff1175 115 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.10.30-imq.patch
bd9921dd 116
fdecb907 117 # ipp2p 0.8.2-ipfire
bb5f0bf8 118 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.10-ipp2p-0.8.2-ipfire.patch
4f1b7a27 119
3a1019f6 120 # Layer7-patch
af8c09ff 121 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.10-layer7-filter.patch
bb5f0bf8 122
e898660a
AF
123 # pie packet scheduler
124 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.10.39-pie_packet_sch.patch
125
bb5f0bf8
AF
126 # Grsecurity-patches
127ifneq "$(KCFG)" "-headers"
68c2cbed 128 cd $(DIR_APP) && xz -c -d $(DIR_DL)/$(GRS_PATCHES) | patch -Np1
bb5f0bf8
AF
129 cd $(DIR_APP) && rm localversion-grsec
130 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.7-disable-compat_vdso.patch
131endif
132
bb5f0bf8
AF
133 # Remove ACPI Blacklist message
134 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-2.6-silence-acpi-blacklist.patch
df5e82b3 135
e2b79cd1
AF
136 # DVB Patches
137 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.9-dvbsky-wot2.patch
138 cd $(DIR_APP) && patch -Np2 < $(DIR_SRC)/src/patches/v4l-dvb_fix_tua6034_pll.patch
139
d33aa452
AF
140 # Wlan Patches
141 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/compat-drivers-3.8.3-ath_ignore_eeprom_regdomain.patch
5c8167f5 142 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.10.34-iwlwifi-noibss_only_on_radar_chan.patch
89f0807f 143 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.10.37-rt2800usb_add_dlink_dwa137_usbid.patch
74fd06be 144 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.10.39-add_libertas_uap.patch
d33aa452
AF
145
146 # mISDN Patches
147 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/mISDN_hfc-s_add_id.patch
148 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/mISDN-hfcusb-reportl1down.patch
149
40c7cdd3 150 # Add LED trigger
e2b79cd1 151 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.10.9-ledtrig-netdev-1.patch
40c7cdd3 152
1e67b3c3
AF
153 # cs5535audio spams syslog if no ac97 was present (geos router)
154 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.10.30_cs5535audio_fix_logspam_on_geos.patch
155
e583643a
AF
156 # Add PC Engines APU led support
157 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.10-apu_leds.patch
158
87837787 159 # Fix uevent PHYSDEVDRIVER
4de2df1e 160 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.2.33_ipg-fix-driver-name.patch
87837787 161 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-2.6.32.27_mcs7830-fix-driver-name.patch
9256a1df 162
74194478 163
bc8fe5ff 164ifeq "$(KCFG)" "-kirkwood"
c05f6df0 165 # Add dreamplug,guruplug and icy 62x0 support on ARM-kirkwood
74194478
AF
166 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.10.10-arm_kirkwood_setups.patch
167 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.10.10-mv_cesa_disable_failing_hmac_sha1.patch
8e6fb99d
AF
168endif
169
7284262a 170ifeq "$(KCFG)" "-multi"
89df55b6 171 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.10.27-fs-exec-atomic64-operand-requires-impossible-reload.patch
7284262a 172 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.10-smsc95xx-add_mac_addr_param.patch
9bfde8ed 173
d006af40
AF
174 # Patchset for Omap (beagle/panda).
175 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/0002-omap2-twl-common-Add-default-power-configuration.patch
176 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/sakoman/0001-OMAP-DSS2-add-bootarg-for-selecting-svideo.patch
177 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/sakoman/0002-video-add-timings-for-hd720.patch
178 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/beagle/expansion/0001-Beagle-expansion-add-buddy-param-for-expansionboard-.patch
179 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/beagle/expansion/0002-Beagle-expansion-add-zippy.patch
180 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/beagle/expansion/0003-Beagle-expansion-add-zippy2.patch
181 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/beagle/expansion/0004-Beagle-expansion-add-trainer.patch
182 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/beagle/expansion/0005-Beagle-expansion-add-CircuitCo-ulcd-Support.patch
183 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/beagle/expansion/0006-Beagle-expansion-add-wifi.patch
184 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/beagle/expansion/0007-Beagle-expansion-add-beaglefpga.patch
185 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/beagle/expansion/0008-Beagle-expansion-add-spidev.patch
186 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/beagle/expansion/0009-Beagle-expansion-add-Aptina-li5m03-camera.patch
187 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/beagle/expansion/0010-Beagle-expansion-add-LSR-COM6L-Adapter-Board.patch
188 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/beagle/expansion/0011-Beagle-expansion-LSR-COM6L-Adapter-Board-also-initia.patch
189 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/beagle/0001-meego-modedb-add-Toshiba-LTA070B220F-800x480-support.patch
190 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/beagle/0002-backlight-Add-TLC59108-backlight-control-driver.patch
191 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/beagle/0003-tlc59108-adjust-for-beagleboard-uLCD7.patch
192 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/beagle/0004-zeroMAP-Open-your-eyes.patch
193 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/beagle/0005-ARM-OMAP-Beagle-use-TWL4030-generic-reset-script.patch
194 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/beagle/0006-DSS2-use-DSI-PLL-for-DPI-with-OMAP3.patch
195 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/panda/0001-panda-fix-wl12xx-regulator.patch
196 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/panda/0002-ti-st-st-kim-fixing-firmware-path.patch
197 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/panda/0003-Panda-expansion-add-spidev.patch
198 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/panda/0004-HACK-PandaES-disable-cpufreq-so-board-will-boot.patch
199 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/panda/0006-ARM-hw_breakpoint-Enable-debug-powerdown-only-if-sys.patch
200 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/panda/0007-Revert-regulator-twl-Remove-TWL6030_FIXED_RESOURCE.patch
201 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/panda/0008-Revert-regulator-twl-Remove-another-unused-variable-.patch
202 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/panda/0009-Revert-regulator-twl-Remove-references-to-the-twl403.patch
203 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/panda/0010-Revert-regulator-twl-Remove-references-to-32kHz-cloc.patch
204 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/panda/0011-panda-spidev-setup-pinmux.patch
205 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/omap/sgx/0001-arm-Export-cache-flush-management-symbols-when-MULTI.patch
206
9bfde8ed
SS
207 # Patchset for Wandboard.
208 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/wandboard/dts/0001-imx6qdl-wandboard-dts-backport.patch
209 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/wandboard/dts/0002-ARM-dts-imx6qdl-wandboard-add-gpio-lines-to-wandboar.patch
210 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/wandboard/dts/0003-ARM-dts-imx6qdl-wandboard-Add-support-for-i2c1.patch
0c41633e 211 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/wandboard/dts/0004-ARM-dts-wandboard-add-binding-for-wand-rfkill-driver.patch
f7075c3a 212 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/wandboard/dts/0005-ARM-dts-imx6qdl-add-pcie-device-node.patch
83d8e3a6 213
0520e6a5 214 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/wandboard/imx/0001-i2c-imx-retry-on-NAK.patch
14ef7de4 215 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/wandboard/imx/0002-i.MX6-Wandboard-add-CKO1-clock-output.patch
d24c586a 216 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/wandboard/imx/0003-thermal-add-imx-thermal-driver-support.patch
0c41633e 217 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/wandboard/imx/0004-ARM-i.MX6-Wandboard-add-wifi-bt-rfkill-driver.patch
2b230b77
SS
218 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/wandboard/imx/0005-Add-IMX6Q-AHCI-support.patch
219 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/wandboard/imx/0006-imx-Add-IMX53-AHCI-support.patch
220 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/wandboard/imx/0007-imx6-enable-sata-clk-if-SATA_AHCI_PLATFORM.patch
221 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/wandboard/imx/0008-ARM-imx6q-update-the-sata-bits-definitions-of-gpr13.patch
222 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/wandboard/imx/0009-ahci_imx-add-ahci-sata-support-on-imx-platforms.patch
223 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/wandboard/imx/0010-ahci_imx-depend-on-CONFIG_MFD_SYSCON.patch
f7075c3a
SS
224 cd $(DIR_APP) && patch -Np0 < $(DIR_SRC)/src/patches/kernel/wandboard/imx/0011-add-pcie-designware.patch
225 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/wandboard/imx/0012-pcie-backport-fixes.patch
226 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/wandboard/imx/0013-of-pci-Provide-support-for-parsing-PCI-DT-ranges-pro.patch
227 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/wandboard/imx/0014-ARM-imx6q-Add-PCIe-bits-to-GPR-syscon-definition.patch
228 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/wandboard/imx/0015-PCI-imx6-Add-support-for-i.MX6-PCIe-controller.patch
229 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/wandboard/imx/0016-imx6-pci-tweaks.patch
230 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/wandboard/imx/0017-ARM-imx-Add-LVDS-general-purpose-clocks-to-i.MX6Q.patch
231 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/wandboard/imx/0018-ARM-imx6q-clock-and-Kconfig-update-for-PCIe-support.patch
0520e6a5 232
83d8e3a6
SS
233 # Patchset for Compulab Utilite.
234 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel/utilite/linux-3.10-compulab-utilite-support.patch
fdecb907
AF
235endif
236
237ifeq "$(KCFG)" "-rpi"
238 # Apply Raspberry Pi kernel patches.
239 cd $(DIR_APP) && xzcat $(DIR_DL)/rpi-patches-$(RPI_PATCHES).patch.xz | patch -Np1
7fbc483a 240endif
8e6fb99d 241
cc24c14b 242ifeq "$(KCFG)" "-headers"
51f9e7ac
MT
243 # Install the header files
244 cd $(DIR_APP) && make ARCH=$(HEADERS_ARCH) INSTALL_HDR_PATH=dest headers_install
245 -mkdir -pv $(BUILDROOT)/$(HEADERS_PREFIX)/include
246 cd $(DIR_APP) && find dest/include \( -name .install -o -name ..install.cmd \) -delete
247 cd $(DIR_APP) && cp -rv dest/include/* $(BUILDROOT)/$(HEADERS_PREFIX)/include
248else
249
aa2049e5
MT
250 # Install ipfire logo
251 cd $(DIR_APP) && cp -vf $(DIR_SRC)/config/kernel/ipfire_logo.ppm \
252 drivers/video/logo/logo_linux_clut224.ppm
253
df5e82b3 254 # Cleanup kernel source
2b2e03ed 255 cp $(DIR_SRC)/config/kernel/kernel.config.$(MACHINE)-$(VERSUFIX) $(DIR_APP)/.config
6f67c28d
MT
256 cd $(DIR_APP) && make oldconfig
257 cd $(DIR_APP) && make clean
fdecb907 258 cd $(DIR_APP) && sed -i -e 's/EXTRAVERSION\ =.*/EXTRAVERSION\ =\ -$(VERSUFIX)/' Makefile
3a1019f6 259
bc8fe5ff 260ifeq "$(KCFG)" "-kirkwood"
6f67c28d 261 cd $(DIR_APP) && make $(MAKETUNING) uImage modules
8e6fb99d 262 cd $(DIR_APP) && cp -v arch/arm/boot/uImage /boot/vmlinuz-$(VER)-$(VERSUFIX)
bc8fe5ff
AF
263 cd $(DIR_APP) && cp -v arch/arm/boot/uImage /boot/uImage-$(VERSUFIX)
264else
7284262a 265ifeq "$(KCFG)" "-multi"
6f67c28d 266 cd $(DIR_APP) && make $(MAKETUNING) zImage modules
7284262a
AF
267 cd $(DIR_APP) && cp -v arch/arm/boot/zImage /boot/vmlinuz-$(VER)-$(VERSUFIX)
268 cd $(DIR_APP) && cp -v arch/arm/boot/zImage /boot/zImage-$(VERSUFIX)
fdecb907
AF
269else
270ifeq "$(KCFG)" "-rpi"
6f67c28d 271 cd $(DIR_APP) && make $(MAKETUNING) zImage modules
74194478
AF
272 cd $(DIR_APP) && cp -v arch/arm/boot/zImage /boot/vmlinuz-$(VER)-$(VERSUFIX)
273 cd $(DIR_APP) && cp -v arch/arm/boot/zImage /boot/kernel.img
92655908 274else
6f67c28d 275 cd $(DIR_APP) && make $(MAKETUNING) bzImage modules
2b2e03ed 276 cd $(DIR_APP) && cp -v arch/i386/boot/bzImage /boot/vmlinuz-$(VER)-$(VERSUFIX)
1e1cdd58 277 ln -sf vmlinuz-$(VER)-$(VERSUFIX) /boot/vmlinuz-$(VERSUFIX)
92655908 278endif
bc8fe5ff 279endif
3c4d4ed0 280endif
2b2e03ed
AF
281 cd $(DIR_APP) && cp -v System.map /boot/System.map-$(VER)-$(VERSUFIX)
282 cd $(DIR_APP) && cp -v .config /boot/config-$(VER)-$(VERSUFIX)
2b2e03ed 283 ln -sf System.map-$(VER)-$(VERSUFIX) /boot/System.map-$(VERSUFIX)
6f67c28d
MT
284 cd $(DIR_APP) && make $(MAKETUNING) modules_install
285 cd $(DIR_APP) && make $(MAKETUNING) firmware_install
376e42ce 286
7284262a 287ifeq "$(MACHINE_TYPE)" "arm"
6f67c28d 288 cd $(DIR_APP) && make $(MAKETUNING) dtbs
7284262a
AF
289 cd $(DIR_APP) && for f in $$(find arch/arm/boot/dts/ -name *.dtb); do \
290 mkdir -p /boot/dtb-$(VER)-$(VERSUFIX) ; \
291 install -m 644 $$f /boot/dtb-$(VER)-$(VERSUFIX)/ ; \
292 done
293endif
294
bc8fe5ff
AF
295ifeq "$(LASTKERNEL)" "1"
296 # Only do this once
81e974f3 297 cd $(DIR_APP) && install -m 755 usr/gen_init_cpio /sbin/
d644d86f 298
efa8b615 299 # Blacklist matroxfb_base
ba109afd 300 echo "blacklist matroxfb_base" >> /etc/modprobe.d/framebuffer.conf
aa1dd878 301 # Blacklist old framebuffer modules
030a57c5 302 for f in $$(find /lib/modules/$(VER)-$(VERSUFIX)/kernel/drivers/video -name *fb.ko); do \
ba109afd 303 echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/framebuffer.conf ; \
030a57c5 304 done
aa1dd878
AF
305 # Blacklist new drm framebuffer modules
306 for f in $$(ls -1 /lib/modules/$(VER)-$(VERSUFIX)/kernel/drivers/gpu/drm/*/*.ko); do \
ba109afd 307 echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/framebuffer.conf ; \
aa1dd878 308 done
ba109afd 309 sed -i -e "s|.ko||g" /etc/modprobe.d/framebuffer.conf
e2e106be
AF
310
311 # Blacklist isdn modules
312 for f in $$(find /lib/modules/$(VER)-$(VERSUFIX)/kernel/drivers/isdn -name *.ko); do \
ba109afd 313 echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/isdn.conf ; \
e2e106be 314 done
ba109afd 315 sed -i -e "s|.ko||g" /etc/modprobe.d/isdn.conf
78a51aaf
AF
316
317 # Disable ipv6 at runtime
ba109afd 318 echo "options ipv6 disable_ipv6=1" > /etc/modprobe.d/ipv6.conf
26c1cc71 319endif
51f9e7ac 320endif
8885467f 321
d644d86f 322 @rm -rf $(DIR_SRC)/patch-o-matic* $(DIR_SRC)/iptables* $(DIR_SRC)/squashfs* $(DIR_SRC)/netfilter-layer7-*
df5e82b3 323 @$(POSTBUILD)