]> git.pld-linux.org Git - packages/kernel.git/blame - kernel.spec
- unset PAX_NOELFRELOCS (--with pax bcond)
[packages/kernel.git] / kernel.spec
CommitLineData
a7313793 1#
0fec42fa 2# NOTE:
351f379b
JR
3# the following bcond combos will not work
4# - without_vserver and any of the following
5# - with_apparmor
6# - with_grsec_minimal
7# - with_grsec_full
a5585a68 8#
a5585a68 9# TODO:
351f379b
JR
10# - benchmark NO_HZ & HZ=1000 vs HZ=300 on i686
11# - add a subpackage (kernel-firmware?) for ~35 firmware files
17da405a 12# - aufs1 patches 145, 146 to remove or update (not maintained)
13# - update or remove tahoe9xx patch2
14# - update or remove mpt-fusion patch90
15# - update grsec_minimal patch1000:
16# fs/proc/base.c:1484: error: 'struct task_struct' has no member named 'uid'
351f379b 17#
fc5a68a2
AM
18# HOWTO update configuration files:
19# - run build
20# - add new options to proper config (kernel-multiarch.config, kernel-x86.config, kernel-powerpc.config etc)
21# - sort configuration files using:
22# ./kernel-config-sort.pl ~/rpm/BUILD/kernel-%{version}/linux-%{version}/ -a x86 kernel-x86_84.config
23# ./kernel-config-sort.pl ~/rpm/BUILD/kernel-%{version}/linux-%{version} kernel-multiarch.config
a5585a68
AM
24#
25# Conditional build:
a5585a68 26%bcond_without source # don't build kernel-source package
351f379b
JR
27%bcond_without pcmcia # don't build pcmcia
28
a5585a68 29%bcond_with verbose # verbose build (V=1)
351f379b
JR
30%bcond_without reiser4 # support for reiser4 fs (experimental)
31
32%bcond_without grsecurity # don't build grsecurity nor pax at all
351f379b 33%bcond_without grsec_full # build full grsecurity
17da405a 34%bcond_with grsec_minimal # build only minimal subset (proc,link,fifo,shm)
35%bcond_with pax # build pax and full grsecurity (ie. grsec_full && pax)
351f379b
JR
36
37%bcond_with fbcondecor # build fbcondecor (disable FB_TILEBLITTING and affected fb modules)
38%bcond_with pae # build PAE (HIGHMEM64G) support on uniprocessor
39%bcond_with nfsroot # build with root on NFS support
40
7f07242b 41%bcond_without imq # imq support
1b75c2b4
JR
42%bcond_without wrr # wrr support
43%bcond_without esfq # esfq support
351f379b
JR
44%bcond_without ipv6 # ipv6 support
45
46%bcond_without vserver # support for VServer (enabled by default)
47%bcond_without tuxonice # support for tuxonice (ex-suspend2) (enabled by default)
48%bcond_without apparmor # build kernel with apparmor (exerimental mix)
351f379b
JR
49
50%bcond_with rescuecd # build kernel for our rescue
51
351f379b 52%bcond_with myown # build with your own config (kernel-myown.config)
a5585a68
AM
53
54%{?debug:%define with_verbose 1}
55
351f379b 56%if %{without grsecurity}
b488384f
AM
57%unglobal with_grsec_full
58%unglobal with_grsec_minimal
59%unglobal with_pax
a5585a68 60%endif
351f379b 61
17da405a 62%if %{with pax}
b488384f 63%unglobal with_grsec_minimal
351f379b
JR
64%define with_grsec_full 1
65%define with_grsecurity 1
66%define with_pax 1
67%endif
68
17da405a 69%if %{with grsec_minimal}
b488384f
AM
70%unglobal with_pax
71%unglobal with_grsec_full
351f379b 72%define with_grsecurity 1
351f379b
JR
73%endif
74
17da405a 75%if %{with grsec_full}
b488384f 76%unglobal with_grsec_minimal
351f379b
JR
77%define with_grsecurity 1
78%endif
79
80%define have_drm 1
81%define have_oss 1
82%define have_sound 1
101ae904 83%define have_pcmcia 1
351f379b
JR
84
85%if %{with rescuecd}
b488384f
AM
86%unglobal with_apparmor
87%unglobal with_tuxonice
88%unglobal with_grsecurity
89%unglobal with_grsec_full
90%unglobal with_grsec_minimal
91%unglobal with_pax
92%unglobal with_vserver
351f379b
JR
93%define have_drm 0
94%define have_sound 0
95%endif
96
101ae904 97%if %{with myown}
98%define have_drm 0
99%define have_oss 0
100%define have_sound 0
101%define have_pcmcia 0
351f379b
JR
102%endif
103
104%ifarch sparc sparc64
b488384f 105%unglobal with_pcmcia
351f379b
JR
106%define have_drm 0
107%define have_oss 0
108%endif
109
101ae904 110%if %{without pcmcia}
111%define have_pcmcia 0
112%endif
113
9474138d 114%define basever 2.6.30
b2252bc2 115%define postver .5
116%define rel 0.1
a5585a68
AM
117
118%define _enable_debug_packages 0
a5585a68 119
351f379b 120%define squashfs_version 3.4
0ada99ac 121%define tuxonice_version 3.0.1
351f379b
JR
122%define netfilter_snap 20070806
123
101ae904 124%if %{with myown}
125%if "%{_alt_kernel}" == ""
126%define alt_kernel myown
351f379b 127%endif
101ae904 128%else
129%if %{without rescuecd}
130%define __alt_kernel %{?with_pax:pax}%{!?with_grsec_full:nogrsecurity}%{!?with_apparmor:noaa}%{?with_pae:pae}
351f379b
JR
131%if "%{__alt_kernel}" != ""
132%define alt_kernel %{__alt_kernel}
133%endif
101ae904 134%else
135%define alt_kernel rescuecd
136%endif
137%endif
351f379b
JR
138
139# kernel release (used in filesystem and eventually in uname -r)
140# modules will be looked from /lib/modules/%{kernel_release}
141# localversion is just that without version for "> localversion"
142%define localversion %{rel}
143%define kernel_release %{version}%{?alt_kernel:_%{alt_kernel}}-%{localversion}
a5585a68
AM
144
145Summary: The Linux kernel (the core of the Linux operating system)
351f379b
JR
146Summary(de.UTF-8): Der Linux-Kernel (Kern des Linux-Betriebssystems)
147Summary(et.UTF-8): Linuxi kernel (ehk operatsioonisüsteemi tuum)
148Summary(fr.UTF-8): Le Kernel-Linux (La partie centrale du systeme)
149Summary(pl.UTF-8): Jądro Linuksa
150Name: kernel%{_alt_kernel}
151Version: %{basever}%{postver}
152Release: %{rel}
a5585a68 153Epoch: 3
c491b43b 154License: GPL v2
a5585a68 155Group: Base/Kernel
351f379b 156Source0: http://www.kernel.org/pub/linux/kernel/v2.6/linux-%{basever}.tar.bz2
9474138d 157# Source0-md5: 7a80058a6382e5108cdb5554d1609615
351f379b
JR
158%if "%{postver}" != "%{nil}"
159Source1: http://www.kernel.org/pub/linux/kernel/v2.6/patch-%{version}.bz2
b2252bc2 160# Source1-md5: 47841c7ff5c81a7b349a79f2fa8e9138
351f379b
JR
161%endif
162
163Source3: kernel-autoconf.h
164Source4: kernel-config.h
165Source5: kernel-ppclibs.Makefile
166Source6: kernel-config.awk
167Source7: kernel-module-build.pl
168Source8: kernel-track-config-change.awk
169# not used by kernel.spec, but it's good to have it in SOURCES
170Source9: kernel-config-sort.pl
171Source10: kernel.make
172
173Source20: kernel-multiarch.config
174Source21: kernel-x86.config
175Source22: kernel-sparc.config
5a99ae3d 176Source23: kernel-alpha.config
177Source24: kernel-powerpc.config
178Source25: kernel-ia64.config
351f379b
JR
179
180Source40: kernel-netfilter.config
181Source41: kernel-patches.config
182Source42: kernel-tuxonice.config
183Source43: kernel-vserver.config
184Source45: kernel-grsec.config
185
186Source49: kernel-pax.config
187Source50: kernel-no-pax.config
188Source51: kernel-grsec_minimal.config
189Source55: kernel-imq.config
190Source56: kernel-reiser4.config
191Source57: kernel-wrr.config
192
193Source58: kernel-inittmpfs.config
194Source59: kernel-bzip2-lzma.config
195
351f379b 196# tahoe9xx http://www.tahoe.pl/drivers/tahoe9xx-2.6.24.patch
87365863 197Patch2: kernel-tahoe9xx.patch
351f379b
JR
198
199# http://dev.gentoo.org/~spock/projects/fbcondecor/archive/fbcondecor-0.9.4-2.6.25-rc6.patch
200Patch3: kernel-fbcondecor.patch
60bb736d 201Patch4: kernel-fbcon-margins.patch
351f379b
JR
202
203# netfilter related stuff mostly based on patch-o-matic-ng
17da405a 204# snapshot 20070806 with some fixes. Some modules
205# were ported to nf_conntrack.
351f379b
JR
206
207Patch10: kernel-pom-ng-IPV4OPTSSTRIP.patch
208Patch11: kernel-pom-ng-ipv4options.patch
209
210Patch14: kernel-pom-ng-ROUTE.patch
211Patch16: kernel-pom-ng-mms-conntrack-nat.patch
212Patch22: kernel-pom-ng-rsh.patch
213Patch23: kernel-pom-ng-rpc.patch
214
215# based on http://mike.it-loops.com/rtsp/rtsp-2.6.26.patch
216Patch36: kernel-nf_rtsp.patch
217
218# http://ftp.linux-vserver.org/pub/people/dhozac/p/k/delta-owner-xid-feat02.diff
219Patch37: kernel-owner-xid.patch
220
221# based on http://www.svn.barbara.eu.org/ipt_account/attachment/wiki/Software/ipt_account-0.1.21-20070804164729.tar.gz?format=raw
222Patch38: kernel-ipt_account.patch
223
224# based on http://www.intra2net.com/de/produkte/opensource/ipt_account/pom-ng-ipt_ACCOUNT-1.12.tgz
225Patch39: kernel-ipt_ACCOUNT.patch
226
227# based on kernel-2.6.25-layer7-2.20.patch from
228# http://switch.dl.sourceforge.net/sourceforge/l7-filter/netfilter-layer7-v2.20.tar.gz
229Patch40: kernel-layer7.patch
230
231# http://www.ssi.bg/~ja/nfct/ipvs-nfct-2.6.28-1.diff
232Patch41: kernel-ipvs-nfct.patch
233
351f379b
JR
234### End netfilter
235
236# http://zph.bratcheda.org/linux-2.6.26.3-zph.patch
237Patch49: kernel-zph.patch
238
7f07242b 239# based on http://www.linuximq.net/patchs/linux-2.6.29.1-imq-test2.diff
351f379b
JR
240Patch50: kernel-imq.patch
241
242# http://www.kernel.org/pub/linux/kernel/people/edward/reiser4/reiser4-for-2.6/reiser4-for-2.6.28.patch.bz2
243Patch51: kernel-reiser4.patch
244
245# http://www.zz9.dk/patches/wrr-linux-071203-2.6.25.patch.gz
246Patch52: kernel-wrr.patch
247
248# http://fatooh.org/esfq-2.6/sfq-2.6.24.1.tar.bz2
60bb736d 249Patch53: kernel-esfq.patch
351f379b
JR
250
251# http://memebeam.org/free-software/toshiba_acpi/toshiba_acpi-dev_toshiba_test5-linux_2.6.26.patch
60bb736d 252Patch54: kernel-toshiba_acpi.patch
351f379b
JR
253
254# by Baggins request:
255# derived from ftp://ftp.cmf.nrl.navy.mil/pub/chas/linux-atm/vbr/vbr-kernel-diffs
60bb736d
JR
256Patch55: kernel-atm-vbr.patch
257Patch56: kernel-atmdd.patch
351f379b 258
324aa8f8
AM
259# http://www.ntop.org/PF_RING.html 20090721
260# svn co https://svn.ntop.org/svn/ntop/trunk/PF_RING/ and use mkpatch.sh
60bb736d 261Patch58: kernel-PF_RING.patch
351f379b
JR
262
263# http://synce.svn.sourceforge.net/svnroot/synce/trunk/patches/linux-2.6.22-rndis_host-wm5.patch
264Patch59: kernel-rndis_host-wm5.patch
265
266# Project suspend2 renamed to tuxonice
9474138d 267# http://www.tuxonice.net/downloads/all/current-tuxonice-for-2.6.30.patch-20090620-v1.bz2
60bb736d
JR
268Patch69: kernel-tuxonice.patch
269Patch70: kernel-tuxonice-headers.patch
351f379b
JR
270
271# adds some ids for hostap suported cards and monitor_enable from/for aircrack-ng
272# http://patches.aircrack-ng.org/hostap-kernel-2.6.18.patch
60bb736d 273Patch85: kernel-hostap.patch
351f379b 274
9474138d 275# Taken from http://download.opensuse.org/factory/repo/src-oss/suse/src/kernel-source-2.6.30-10.3.src.rpm
351f379b
JR
276Patch90: kernel-mpt-fusion.patch
277
3914fd55 278# based on http://vserver.13thfloor.at/Experimental/patch-2.6.30.2-vs2.3.0.36.14-pre4.diff
60bb736d 279Patch100: kernel-vserver-2.3.patch
351f379b
JR
280Patch101: kernel-vserver-fixes.patch
281
282# Wake-On-Lan fix for nForce drivers; using http://atlas.et.tudelft.nl/verwei90/nforce2/wol.html
283# Fix verified for that kernel version.
60bb736d 284Patch130: kernel-forcedeth-WON.patch
351f379b
JR
285
286# http://download.filesystems.org/unionfs/unionfs-2.x/unionfs-2.5.1_for_2.6.28.1.diff.gz
287Patch140: kernel-unionfs.patch
351f379b
JR
288
289# aufs1, http://aufs.sourceforge.net/
17da405a 290# aufs1 is NOT maintained since Jan 2009.
351f379b
JR
291Patch145: kernel-aufs.patch
292Patch146: kernel-aufs-support.patch
351f379b 293
a899ef35 294Patch148: kernel-aufs2.patch
295
351f379b
JR
296Patch150: kernel-ppc-crtsavres.patch
297
60bb736d 298Patch200: kernel-ppc-ICE-hacks.patch
351f379b
JR
299
300# The following patch extend the routing functionality in Linux
301# to support static routes (defined by user), new way to use the
302# alternative routes, the reverse path protection (rp_filter),
303# the NAT processing to use correctly the routing when multiple
304# gateways are used.
305# http://www.ssi.bg/~ja/routes-2.6.28-16.diff
306Patch300: kernel-routes.patch
307
60bb736d 308Patch1000: kernel-grsec-minimal.patch
351f379b
JR
309
310Patch2000: kernel-small_fixes.patch
60bb736d 311Patch2001: kernel-pwc-uncompress.patch
351f379b
JR
312Patch2003: kernel-regressions.patch
313
314# kill some thousands of warnings
315# (only warnings, so just remove parts of this patch if conflics)
60bb736d 316Patch2500: kernel-warnings.patch
351f379b 317
9474138d
AM
318# git://kernel.ubuntu.com/jj/apparmor-karmic-tree.git
319# git diff 0c9f19b4dd23620fb32116922b0d93e8aca6c911..HEAD
351f379b 320Patch5000: kernel-apparmor.patch
351f379b
JR
321
322# for rescuecd
323# based on http://ftp.leg.uct.ac.za/pub/linux/rip/inittmpfs-2.6.14.diff.gz
324Patch7000: kernel-inittmpfs.patch
325
52284610 326# based on http://www.grsecurity.net/~spender/grsecurity-2.1.14-2.6.30.4-200908132040.patch
4a6985f1
AM
327# NOTE: put raw upstream patches on kernel-grsec_full.patch:GRSECURITY_RAW for reference
328# (since upstream deletes older patches)
60bb736d
JR
329Patch9999: kernel-grsec_full.patch
330Patch10000: kernel-grsec-caps.patch
331Patch10001: kernel-grsec-common.patch
351f379b 332Patch10002: kernel-grsec_fixes.patch
60bb736d 333Patch10003: kernel-grsec-no-stupid-SbO.patch
bf6838be 334
a5585a68 335URL: http://www.kernel.org/
351f379b 336BuildRequires: binutils >= 3:2.18
a5585a68
AM
337%ifarch sparc sparc64
338BuildRequires: elftoaout
339%endif
351f379b
JR
340%ifarch ppc
341BuildRequires: uboot-mkimage
342%endif
343AutoReqProv: no
344BuildRequires: /sbin/depmod
345BuildRequires: gcc >= 5:3.2
cfce203c 346BuildRequires: xz >= 1:4.999.7
351f379b
JR
347# for hostname command
348BuildRequires: net-tools
a5585a68 349BuildRequires: perl-base
b488384f 350BuildRequires: rpm-build >= 4.5-24
351f379b
JR
351BuildRequires: rpmbuild(macros) >= 1.217
352Requires(post): coreutils
353Requires(post): geninitrd >= 10000-3
354Requires(post): module-init-tools >= 0.9.9
355Requires: /sbin/depmod
356Requires: coreutils
357Requires: geninitrd >= 10000-3
358Requires: module-init-tools >= 0.9.9
359Provides: %{name}(netfilter) = %{netfilter_snap}
360Provides: %{name}(vermagic) = %{kernel_release}
361Obsoletes: kernel%{_alt_kernel}-isdn-mISDN
362Obsoletes: kernel-misc-acer_acpi
363Obsoletes: kernel-misc-fuse
364Obsoletes: kernel-misc-uvc
a5585a68 365Obsoletes: kernel-modules
351f379b
JR
366Obsoletes: kernel-net-ar81
367Obsoletes: kernel-net-hostap
368Obsoletes: kernel-net-ieee80211
369Obsoletes: kernel-net-ipp2p
370Obsoletes: kernel-net-rt61
371Obsoletes: kernel-smp
372Conflicts: e2fsprogs < 1.29
373Conflicts: isdn4k-utils < 3.1pre1
374Conflicts: jfsutils < 1.1.3
375Conflicts: module-init-tools < 0.9.10
376Conflicts: nfs-utils < 1.0.5
377Conflicts: oprofile < 0.9
378Conflicts: ppp < 1:2.4.0
379Conflicts: procps < 3.2.0
380Conflicts: quota-tools < 3.09
381%if %{with reiserfs4}
382Conflicts: reiser4progs < 1.0.0
383%endif
384Conflicts: reiserfsprogs < 3.6.3
385Conflicts: udev < 1:081
386Conflicts: util-linux < 2.10o
d3c4e01e 387Conflicts: util-vserver < 0.30.216
351f379b
JR
388Conflicts: xfsprogs < 2.6.0
389%if %{with pae}
390ExcludeArch: i386 i486 i586
391%else
392ExclusiveArch: %{ix86} %{x8664} alpha arm ia64 ppc ppc64 sparc sparc64
393%endif
a5585a68
AM
394ExclusiveOS: Linux
395BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
396
351f379b
JR
397%ifarch %{ix86} %{x8664}
398%define target_arch_dir x86
399%endif
400%ifarch ppc ppc64
401%define target_arch_dir powerpc
402%endif
5a99ae3d 403%ifarch sparc sparc64
404%define target_arch_dir sparc
405%endif
406%ifnarch %{ix86} %{x8664} ppc ppc64 sparc sparc64
351f379b
JR
407%define target_arch_dir %{_target_base_arch}
408%endif
409
410%define defconfig arch/%{target_arch_dir}/defconfig
411
412# No ELF objects there to strip (skips processing 27k files)
413%define _noautostrip .*%{_kernelsrcdir}/.*
414%define _noautochrpath .*%{_kernelsrcdir}/.*
415
a5585a68
AM
416%ifarch ia64
417%define initrd_dir /boot/efi
418%else
419%define initrd_dir /boot
420%endif
421
351f379b
JR
422%define topdir %{_builddir}/%{name}-%{version}
423%define srcdir %{topdir}/linux-%{basever}
424%define objdir %{topdir}/%{targetobj}
425%define targetobj %{_target_base_arch}-gcc-%(%{kgcc} -dumpversion)
426
427%define _kernelsrcdir /usr/src/linux%{_alt_kernel}-%{version}
428
429%if "%{_target_base_arch}" != "%{_arch}"
430 %define CrossOpts ARCH=%{_target_base_arch} CROSS_COMPILE=%{_target_cpu}-pld-linux-
431 %define DepMod /bin/true
432
433 %if "%{_arch}" == "sparc" && "%{_target_base_arch}" == "sparc64"
434 %define CrossOpts ARCH=%{_target_base_arch} CC="%{__cc}"
435 %define DepMod /sbin/depmod
436 %endif
437
438 %if "%{_arch}" == "sparc64" && "%{_target_base_arch}" == "sparc"
439 %define CrossOpts ARCH=%{_target_base_arch} CC="%{__cc}"
440 %define DepMod /sbin/depmod
441 %endif
442
443 %if "%{_arch}" == "x86_64" && "%{_target_base_arch}" == "i386"
444 %define CrossOpts ARCH=%{_target_base_arch} CC="%{__cc}"
445 %define DepMod /sbin/depmod
446 %endif
447
5a99ae3d 448 %if "%{_target_base_arch}" == "ppc" || "%{_target_base_arch}" == "ppc64"
351f379b
JR
449 %define CrossOpts ARCH=powerpc CROSS_COMPILE=%{_target_cpu}-pld-linux-
450 %endif
451%else
452 %ifarch ppc ppc64
453 %define CrossOpts ARCH=powerpc CC="%{__cc}"
454 %else
455 %define CrossOpts ARCH=%{_target_base_arch} CC="%{__cc}"
456 %endif
457 %define DepMod /sbin/depmod
458%endif
459%define MakeOpts %{CrossOpts} HOSTCC="%{__cc}"
460
461%define __features Netfilter module dated: %{netfilter_snap}\
17da405a 462%{?with_grsec_full:Grsecurity support - enabled}\
463%{?with_grsec_minimal:Grsecurity minimal support /proc,link,fifo,shm/ - enabled}\
351f379b
JR
464%{?with_pax:PaX support - enabled}\
465%{?with_fbcondecor:Fbsplash/fbcondecor - enabled }\
466%{?with_nfsroot:Root on NFS - enabled}\
467%{?with_apparmor:apparmor support - enabled}\
351f379b
JR
468
469%define Features %(echo "%{__features}" | sed '/^$/d')
470
a5585a68
AM
471%description
472This package contains the Linux kernel that is used to boot and run
473your system. It contains few device drivers for specific hardware.
474Most hardware is instead supported by modules loaded after booting.
475
351f379b
JR
476%{Features}
477
3a467bc1
JR
478%description -l de.UTF-8
479Das Kernel-Paket enthält den Linux-Kernel (vmlinuz), den Kern des
480Linux-Betriebssystems. Der Kernel ist für grundliegende
a5585a68 481Systemfunktionen verantwortlich: Speicherreservierung,
3a467bc1 482Prozeß-Management, Geräte Ein- und Ausgaben, usw.
a5585a68 483
351f379b
JR
484%{Features}
485
3a467bc1 486%description -l fr.UTF-8
a5585a68 487Le package kernel contient le kernel linux (vmlinuz), la partie
3a467bc1
JR
488centrale d'un système d'exploitation Linux. Le noyau traite les
489fonctions basiques d'un système d'exploitation: allocation mémoire,
490allocation de process, entrée/sortie de peripheriques, etc.
a5585a68 491
351f379b
JR
492%{Features}
493
3a467bc1
JR
494%description -l pl.UTF-8
495Pakiet zawiera jądro Linuksa niezbędne do prawidłowego działania
496Twojego komputera. Zawiera w sobie sterowniki do sprzętu znajdującego
497się w komputerze, takiego jak sterowniki dysków itp.
a5585a68 498
351f379b
JR
499%{Features}
500
501%package vmlinux
502Summary: vmlinux - uncompressed kernel image
503Summary(de.UTF-8): vmlinux - dekompressiertes Kernel Bild
504Summary(pl.UTF-8): vmlinux - rozpakowany obraz jądra
505Group: Base/Kernel
506Obsoletes: kernel-smp-vmlinux
507
508%description vmlinux
509vmlinux - uncompressed kernel image.
510
511%description vmlinux -l de.UTF-8
512vmlinux - dekompressiertes Kernel Bild.
513
514%description vmlinux -l pl.UTF-8
515vmlinux - rozpakowany obraz jądra.
516
517%package dirs
518Summary: common dirs for kernel packages
519Summary(pl.UTF-8): Katalogi wspólne dla pakietów kernela
520Group: Base/Kernel
521
522%description dirs
523This package provides common dirs shared between various kernel
524packages.
525
526%description dirs -l pl.UTF-8
527Katalog ten udostepnia katalogi współdzielone pomiędzy różnymi
528pakietami kernela.
529
a5585a68
AM
530%package drm
531Summary: DRM kernel modules
351f379b
JR
532Summary(de.UTF-8): DRM Kernel Treiber
533Summary(pl.UTF-8): Sterowniki DRM
a5585a68 534Group: Base/Kernel
351f379b
JR
535Requires(postun): %{name} = %{epoch}:%{version}-%{release}
536Requires: %{name} = %{epoch}:%{version}-%{release}
537Obsoletes: kernel-smp-drm
a5585a68
AM
538Autoreqprov: no
539
540%description drm
351f379b
JR
541DRM kernel modules.
542
543%description drm -l de.UTF-8
544DRM Kernel Treiber.
a5585a68 545
3a467bc1 546%description drm -l pl.UTF-8
351f379b 547Sterowniki DRM.
a5585a68
AM
548
549%package pcmcia
550Summary: PCMCIA modules
351f379b
JR
551Summary(de.UTF-8): PCMCIA Module
552Summary(pl.UTF-8): Moduły PCMCIA
a5585a68 553Group: Base/Kernel
351f379b
JR
554Requires(postun): %{name} = %{epoch}:%{version}-%{release}
555Requires: %{name} = %{epoch}:%{version}-%{release}
556Obsoletes: kernel-smp-pcmcia
557Conflicts: pcmcia-cs < 3.1.21
558Conflicts: pcmciautils < 004
a5585a68
AM
559Autoreqprov: no
560
561%description pcmcia
351f379b
JR
562PCMCIA modules.
563
564%description pcmcia -l de.UTF-8
565PCMCIA Module.
a5585a68 566
3a467bc1 567%description pcmcia -l pl.UTF-8
351f379b
JR
568Moduły PCMCIA.
569
570%package libs
571Summary: Libraries for preparing bootable kernel on PowerPCs
572Summary(pl.UTF-8): Biblioteki do przygotowania bootowalnego jądra dla PowerPC
573Group: Base/Kernel
574Requires: %{name} = %{epoch}:%{version}-%{release}
575Requires: mkvmlinuz >= 1.3
576Obsoletes: kernel-smp-libs
577Autoreqprov: no
578
579%description libs
580Libraries for preparing bootable kernel on PowerPCs. Script called
581mkvmlinuz may be useful for this.
582
583%description libs -l pl.UTF-8
584Biblioteki do przygotowania bootowalnego jądra dla PowerPC. Skrypt
585mkvmlinuz może być do tego przydatny.
a5585a68
AM
586
587%package sound-alsa
588Summary: ALSA kernel modules
351f379b
JR
589Summary(de.UTF-8): ALSA Kernel Module
590Summary(pl.UTF-8): Sterowniki dźwięku ALSA
a5585a68 591Group: Base/Kernel
351f379b
JR
592Requires(postun): %{name} = %{epoch}:%{version}-%{release}
593Requires: %{name} = %{epoch}:%{version}-%{release}
594Obsoletes: kernel-smp-sound-alsa
a5585a68
AM
595Autoreqprov: no
596
597%description sound-alsa
598ALSA (Advanced Linux Sound Architecture) sound drivers.
599
351f379b
JR
600%description sound-alsa -l de.UTF-8
601ALSA (Advanced Linux Sound Architecture) Sound-Treiber.
602
3a467bc1
JR
603%description sound-alsa -l pl.UTF-8
604Sterowniki dźwięku ALSA (Advanced Linux Sound Architecture).
a5585a68
AM
605
606%package sound-oss
607Summary: OSS kernel modules
351f379b
JR
608Summary(de.UTF-8): OSS Kernel Module
609Summary(pl.UTF-8): Sterowniki dźwięku OSS
a5585a68 610Group: Base/Kernel
351f379b
JR
611Requires(postun): %{name} = %{epoch}:%{version}-%{release}
612Requires: %{name} = %{epoch}:%{version}-%{release}
613Obsoletes: kernel-smp-sound-oss
a5585a68
AM
614Autoreqprov: no
615
616%description sound-oss
617OSS (Open Sound System) drivers.
618
351f379b
JR
619%description sound-oss -l de.UTF-8
620OSS (Open Sound System) Treiber.
621
3a467bc1
JR
622%description sound-oss -l pl.UTF-8
623Sterowniki dźwięku OSS (Open Sound System).
a5585a68 624
a5585a68
AM
625%package headers
626Summary: Header files for the Linux kernel
351f379b
JR
627Summary(de.UTF-8): Header Dateien für den Linux-Kernel
628Summary(pl.UTF-8): Pliki nagłówkowe jądra Linuksa
629Group: Development/Building
630Provides: %{name}-headers(netfilter) = %{netfilter_snap}
a5585a68
AM
631Autoreqprov: no
632
633%description headers
634These are the C header files for the Linux kernel, which define
351f379b
JR
635structures and constants that are needed when rebuilding the kernel or
636building kernel modules.
637
638%description headers -l de.UTF-8
639Dies sind die C Header Dateien für den Linux-Kernel, die definierte
640Strukturen und Konstante beinhalten, die beim rekompilieren des
641Kernels oder bei Kernel Modul kompilationen gebraucht werden.
a5585a68 642
3a467bc1
JR
643%description headers -l pl.UTF-8
644Pakiet zawiera pliki nagłówkowe jądra, niezbędne do rekompilacji jądra
645oraz budowania modułów jądra.
a5585a68
AM
646
647%package module-build
648Summary: Development files for building kernel modules
351f379b
JR
649Summary(de.UTF-8): Development Dateien die beim Kernel Modul kompilationen gebraucht werden
650Summary(pl.UTF-8): Pliki służące do budowania modułów jądra
651Group: Development/Building
a5585a68 652Requires: %{name}-headers = %{epoch}:%{version}-%{release}
351f379b 653Conflicts: rpmbuild(macros) < 1.321
a5585a68
AM
654Autoreqprov: no
655
656%description module-build
657Development files from kernel source tree needed to build Linux kernel
658modules from external packages.
659
351f379b
JR
660%description module-build -l de.UTF-8
661Development Dateien des Linux-Kernels die beim kompilieren externer
662Kernel Module gebraucht werden.
663
3a467bc1
JR
664%description module-build -l pl.UTF-8
665Pliki ze drzewa źródeł jądra potrzebne do budowania modułów jądra
666Linuksa z zewnętrznych pakietów.
a5585a68
AM
667
668%package source
669Summary: Kernel source tree
351f379b
JR
670Summary(de.UTF-8): Der Kernel Quelltext
671Summary(pl.UTF-8): Kod źródłowy jądra Linuksa
672Group: Development/Building
a5585a68
AM
673Requires: %{name}-module-build = %{epoch}:%{version}-%{release}
674Autoreqprov: no
675
676%description source
351f379b
JR
677This is the source code for the Linux kernel. You can build a custom
678kernel that is better tuned to your particular hardware.
a5585a68 679
3a467bc1
JR
680%description source -l de.UTF-8
681Das Kernel-Source-Paket enthält den source code (C/Assembler-Code) des
a5585a68 682Linux-Kernels. Die Source-Dateien werden gebraucht, um viele
351f379b 683C-Programme zu kompilieren, da sie auf Konstanten zurückgreifen, die
3a467bc1 684im Kernel-Source definiert sind. Die Source-Dateien können auch
351f379b 685benutzt werden, um einen Kernel zu kompilieren, der besser auf Ihre
a5585a68
AM
686Hardware ausgerichtet ist.
687
3a467bc1 688%description source -l fr.UTF-8
a5585a68 689Le package pour le kernel-source contient le code source pour le noyau
3a467bc1
JR
690linux. Ces sources sont nécessaires pour compiler la plupart des
691programmes C, car il dépend de constantes définies dans le code
692source. Les sources peuvent être aussi utilisée pour compiler un noyau
693personnalisé pour avoir de meilleures performances sur des matériels
a5585a68
AM
694particuliers.
695
3a467bc1
JR
696%description source -l pl.UTF-8
697Pakiet zawiera kod źródłowy jądra systemu.
a5585a68
AM
698
699%package doc
700Summary: Kernel documentation
351f379b
JR
701Summary(de.UTF-8): Kernel Dokumentation
702Summary(pl.UTF-8): Dokumentacja do jądra Linuksa
703Group: Documentation
a5585a68
AM
704Autoreqprov: no
705
706%description doc
707This is the documentation for the Linux kernel, as found in
708/usr/src/linux/Documentation directory.
709
351f379b
JR
710%description doc -l de.UTF-8
711Dies ist die Kernel Dokumentation wie sie im 'Documentation'
712Verzeichniss vorgefunden werden kann.
713
3a467bc1
JR
714%description doc -l pl.UTF-8
715Pakiet zawiera dokumentację do jądra Linuksa pochodzącą z katalogu
a5585a68
AM
716/usr/src/linux/Documentation.
717
718%prep
351f379b
JR
719%setup -qc
720ln -s %{SOURCE7} kernel-module-build.pl
721ln -s %{SOURCE10} Makefile
722cd linux-%{basever}
a5585a68 723
351f379b
JR
724# hack against warning in pax/grsec
725%ifarch alpha
726sed -i 's/-Werror//' arch/alpha/kernel/Makefile
a5585a68
AM
727%endif
728
351f379b
JR
729%ifarch ppc
730install %{SOURCE5} Makefile.ppclibs
731%endif
269cd19e 732
351f379b
JR
733%if "%{postver}" != "%{nil}"
734%{__bzip2} -dc %{SOURCE1} | patch -p1 -s
735%endif
a5585a68 736
351f379b
JR
737# tuxonice:
738%if %{with tuxonice}
351f379b
JR
739%patch69 -p1
740%patch70 -p1
351f379b 741%endif
bf6838be 742
17da405a 743# tahoe9xx: 2.6.29 - need update
351f379b 744#%patch2 -p1
a5585a68 745
351f379b
JR
746%if %{with fbcondecor}
747%patch3 -p1
a5585a68 748%endif
351f379b 749%patch4 -p1
a5585a68 750
351f379b
JR
751## netfilter
752#
a5585a68 753
351f379b
JR
754# kernel-pom-ng-IPV4OPTSSTRIP.patch
755%patch10 -p1
a5585a68 756
351f379b
JR
757# kernel-pom-ng-ipv4options.patch
758%patch11 -p1
a5585a68 759
351f379b
JR
760# kernel-pom-ng-ROUTE.patch
761%patch14 -p1
a5585a68 762
351f379b
JR
763# kernel-pom-ng-mms-conntrack-nat.patch
764%patch16 -p1
a5585a68 765
351f379b
JR
766# kernel-pom-ng-rsh.patch
767%patch22 -p1
a5585a68 768
351f379b
JR
769# kernel-pom-ng-rpc.patch
770%patch23 -p1
a5585a68 771
351f379b
JR
772# kernel-nf_rtsp.patch
773%patch36 -p1
a5585a68 774
351f379b
JR
775# kernel-owner-xid.patch
776%if %{with vserver}
777%patch37 -p1
a5585a68 778%endif
a5585a68 779
351f379b
JR
780# kernel-ipt_account.patch
781%patch38 -p1
a5585a68 782
351f379b
JR
783# kernel-ipt_ACCOUNT.patch
784%patch39 -p1
785
786# kernel-layer7.patch
787%patch40 -p1
788
789# ipvs-nfct
790%patch41 -p1
791
792##
793# end of netfilter
794
795# zph
796%patch49 -p1
797
798%if %{with imq}
799%patch50 -p1
a5585a68 800%endif
351f379b
JR
801
802# reiser4
803%if %{with reiser4}
804%patch51 -p1
a5585a68 805%endif
351f379b 806
351f379b 807# esfq
068b6c82
AM
808%if %{with esfq}
809%patch53 -p1
810%endif
351f379b
JR
811
812%if %{with wrr}
813%patch52 -p1
a5585a68 814%endif
351f379b
JR
815
816# toshiba_acpi
817%patch54 -p1
818
819%patch55 -p1
820%patch56 -p1
821
822%patch58 -p1
823
824# kernel-rndis_host-wm5.patch
825%patch59 -p1
826
827# hostap enhancements from/for aircrack-ng
828%patch85 -p1
829
830# LSI MPT Fusion driver update (by LSI via SUSE folks)
9474138d
AM
831# FIXME!
832#%patch90 -p1
351f379b
JR
833
834# vserver
835%if %{with vserver}
836%patch100 -p1
837%patch101 -p1
a5585a68 838%endif
351f379b 839
351f379b
JR
840# forcedeth
841%patch130 -p1
a5585a68 842
aabc2ad2 843# unionfs (disabled for rescuecd - problems with aufs2)
844%if %{without rescuecd}
351f379b 845%patch140 -p1
aabc2ad2 846%endif
a5585a68 847
a899ef35 848%if %{with rescuecd}
17da405a 849# aufs2
a899ef35 850%patch148 -p1
851%else
17da405a 852# aufs1: 2.6.29 FIXME - needs port to creds
351f379b
JR
853#%patch145 -p1
854#%patch146 -p1
a899ef35 855%endif
a5585a68 856
351f379b 857%patch2500 -p1
a5585a68 858
351f379b
JR
859%if %{with rescuecd}
860%patch7000 -p1
e981df17 861%endif
a5585a68 862
351f379b
JR
863# grsecurity & pax stuff
864#
351f379b 865
17da405a 866# remember that we have the same config file for grsec_minimal and
867# grsec_full, but the patches are different.
868
869%if %{with grsecurity}
870%if %{with grsec_minimal}
871%patch1000 -p1
872%else
873# grsec_full and/or pax
351f379b
JR
874%patch9999 -p1
875%{?with_vserver:%patch10000 -p1}
876%{?with_vserver:%patch10001 -p1}
877%{?with_vserver:%patch10002 -p1}
878%{?with_vserver:%patch10003 -p1}
351f379b 879%endif
e981df17 880%endif
351f379b
JR
881#
882# end of grsecurity & pax stuff
883
df4db69a
AM
884# apparmor
885%if %{with apparmor}
886%patch5000 -p1
887%endif
888
351f379b 889%patch150 -p1
a11f3f79 890
351f379b
JR
891%ifarch ppc ppc64
892#patch200 -p1
893%endif
a5585a68 894
351f379b
JR
895# routes
896%patch300 -p1
a5585a68 897
351f379b
JR
898# Small fixes:
899%patch2000 -p1
900%patch2001 -p1
901#%patch2003 -p1
a5585a68 902
351f379b
JR
903# Fix EXTRAVERSION in main Makefile
904sed -i 's#EXTRAVERSION =.*#EXTRAVERSION = %{postver}%{?alt_kernel:_%{alt_kernel}}#g' Makefile
a5585a68 905
351f379b
JR
906# cleanup backups after patching
907find '(' -name '*~' -o -name '*.orig' -o -name '.gitignore' ')' -print0 | xargs -0 -r -l512 rm -f
a5585a68 908
351f379b
JR
909%build
910install -d %{objdir}
911cat > %{targetobj}.mk <<'EOF'
912# generated by %{name}.spec
913KERNELSRC := %{_builddir}/%{name}-%{version}/linux-%{basever}
914KERNELOUTPUT := %{objdir}
915
916SRCARCH := %{target_arch_dir}
917ARCH := %{_target_base_arch}
918Q := %{!?with_verbose:@}
919MAKE_OPTS := %{MakeOpts}
920DEFCONFIG := %{defconfig}
921EOF
a5585a68 922
351f379b
JR
923PaXconfig() {
924 set -x
925 cat <<-EOCONFIG > $1
926 %ifarch %{ix86}
927 CONFIG_PAX_SEGMEXEC=y
928 # performance impact on CPUs without NX bit
929 CONFIG_PAX_PAGEEXEC=n
930 # Testing KERNEXEC
931
932 CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM=n
933 CONFIG_PCI_BIOS=n
934 CONFIG_EFI=n
935 %endif
a5585a68 936
351f379b
JR
937 %ifarch ppc64
938 CONFIG_PAX_NOELFRELOCS=n
939 %endif
940 %ifarch ppc
941 CONFIG_PAX_EMUTRAMP=y
942 CONFIG_PAX_EMUSIGRT=y
943 CONFIG_PAX_EMUPLT=y
944 %endif
a5585a68 945
351f379b
JR
946 %ifarch sparc sparc64 alpha
947 CONFIG_PAX_EMUPLT=y
948 %endif
a5585a68 949
351f379b
JR
950 # Now we have to check MAC system integration. Grsecurity (full) uses PAX_HAVE_ACL_FLAGS
951 # setting (direct acces). grsec_minimal probably have no idea about PaX so we probably
952 # could use PAX_NO_ACL_FLAGS, but for testing the hooks setting will be used
17da405a 953 # PAX_HOOK_ACL_FLAGS.
351f379b
JR
954
955 %if %{with grsec_full}
956 # Hardening grsec options if with pax
957 CONFIG_GRKERNSEC_PROC_MEMMAP=y
958 # almost rational (see HIDESYM help)
959 CONFIG_GRKERNSEC_HIDESYM=y
960
961 # no change needed CONFIG=PAX_HAVE_ACL_FLAGS=y is taken from the kernel-pax.config
962 %else
351f379b
JR
963 CONFIG_PAX_HAVE_ACL_FLAGS=n
964 CONFIG_PAX_HOOK_ACL_FLAGS=y
965 %endif
966EOCONFIG
a5585a68 967
351f379b
JR
968 return 0
969}
a5585a68 970
351f379b
JR
971RescueConfig() {
972 set -x
973 cat <<-EOCONFIG > $1
974 # CONFIG_SOUND is not set
975 # CONFIG_AUDIT is not set
976 # CONFIG_TR is not set
977 # CONFIG_BT is not set
978 # CONFIG_VIDEO_DEV is not set
979 # CONFIG_DVB_CORE is not set
980 # CONFIG_HAMRADIO is not set
981 # CONFIG_ARCNET is not set
982 # CONFIG_FB is not set
983 # CONFIG_DRM is not set
984 # CONFIG_WATCHDOG is not set
985 # CONFIG_INPUT_JOYSTICK is not set
986 # CONFIG_DEBUG_KERNEL is not set
987 # CONFIG_ISDN is not set
988 # CONFIG_AGP is not set
989 # CONFIG_SECURITY is not set
990 # CONFIG_PARIDE is not set
991 # CONFIG_CPU_FREQ is not set
992 # CONFIG_GAMEPORT is not set
993 # CONFIG_KVM is not set
994 # CONFIG_PHONE is not set
dd55897d 995 # CONFIG_STRICT_DEVMEM is not set
6bab3a31 996 # CONFIG_IMA is not set
351f379b 997 CONFIG_AUFS=y
a899ef35 998 CONFIG_AUFS_FS=y
999 CONFIG_AUFS_BR_RAMFS=y
351f379b
JR
1000 CONFIG_BLK_DEV_LOOP=y
1001 CONFIG_ISO9660_FS=y
1002 CONFIG_NLS_UTF8=y
1003EOCONFIG
1004
1005 return 0
1006}
a5585a68 1007
351f379b
JR
1008BuildConfig() {
1009 %{?debug:set -x}
1010 set -e
a5585a68 1011
351f379b
JR
1012 Config="kernel-%{target_arch_dir}.config"
1013 echo >&2 "Building config file for %{_target_cpu} using $Config et al."
a5585a68 1014
351f379b
JR
1015 # prepare local and important options
1016 cat <<-EOCONFIG > important.config
1017 LOCALVERSION="-%{localversion}"
fb4e3822 1018
351f379b
JR
1019%if 0%{?debug:1}
1020 CONFIG_DEBUG_SLAB=y
1021 CONFIG_DEBUG_SLAB_LEAK=y
1022 CONFIG_DEBUG_PREEMPT=y
1023 CONFIG_RT_DEADLOCK_DETECT=y
a5585a68 1024%endif
351f379b 1025
351f379b
JR
1026# apparmor, will be moved to external file if works
1027%if %{with apparmor}
1028 CONFIG_SECURITY_APPARMOR=y
1029 CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1
1030 CONFIG_SECURITY_APPARMOR_DISABLE=n
4f0a2212 1031 CONFIG_SECURITY_APPARMOR_NETWORK=y
351f379b 1032%endif
a5585a68 1033
351f379b
JR
1034%if %{without ipv6}
1035 CONFIG_IPV6=n
1036%endif
a5585a68 1037
351f379b
JR
1038%ifarch i686 athlon pentium3 pentium4
1039 %if %{with pae}
1040 CONFIG_HIGHMEM4G=n
1041 CONFIG_HIGHMEM64G=y
1042 CONFIG_X86_PAE=y
1043 %endif
1044%endif
a5585a68 1045
351f379b
JR
1046%if %{without pcmcia}
1047 CONFIG_PCMCIA=n
1048%endif
a5585a68 1049
351f379b
JR
1050%if %{with fbcondecor}
1051 CONFIG_FB_S3=n
1052 CONFIG_FB_VT8623=n
1053 CONFIG_FB_ARK=n
1054 CONFIG_FB_TILEBLITTING=n
1055 CONFIG_FB_CON_DECOR=y
1056%endif
a5585a68 1057
351f379b
JR
1058%if %{with nfsroot}
1059 CONFIG_NFS_FS=y
1060 CONFIG_ROOT_NFS=y
1061%endif
a5585a68 1062
351f379b
JR
1063# Temporary disabled RELOCATABLE. Needed only on x86??
1064%if %{with pax} || %{with grsec_full}
1065 CONFIG_RELOCATABLE=n
1066%endif
1067EOCONFIG
a5585a68 1068
351f379b
JR
1069%if %{with rescuecd}
1070 RescueConfig rescue.config
1071%endif
17da405a 1072%if %{with pax}
351f379b
JR
1073 PaXconfig pax.config
1074%endif
a5585a68 1075
351f379b
JR
1076 # prepare kernel-style config file from multiple config files
1077 %{__awk} -v arch="all %{target_arch_dir} %{_target_base_arch} %{_target_cpu}" -f %{SOURCE6} \
101ae904 1078%if %{with myown}
1079 $RPM_SOURCE_DIR/kernel-%{alt_kernel}.config \
1080%endif
351f379b
JR
1081 important.config \
1082%if %{with rescuecd}
1083 %{SOURCE58} \
1084 %{SOURCE59} \
1085 rescue.config \
1086%endif
1087 \
17da405a 1088%if %{with pax}
351f379b
JR
1089 %{SOURCE45} \
1090 %{SOURCE49} \
1091 pax.config \
1092%else
1093 %if %{with grsec_full}
1094 %{SOURCE45} \
1095 %{SOURCE50} \
1096 %else
1097 %if %{with grsec_minimal}
1098 %{SOURCE51} \
1099 %endif
1100 %endif
351f379b
JR
1101%endif
1102 \
1103%if %{with reiser4}
1104 %{SOURCE56} \
1105%endif
1106%if %{with wrr}
1107 %{SOURCE57} \
1108%endif
1109%if %{with imq}
1110 %{SOURCE55} \
1111%endif
1112%if %{with vserver}
1113 %{SOURCE43} \
1114%endif
1115%if %{with tuxonice}
1116%ifarch %{ix86} %{x8664} ia64 ppc ppc64
1117 %{SOURCE42} \
1118%endif
351f379b
JR
1119%endif
1120 %{SOURCE40} %{?0:netfilter} \
1121 %{SOURCE41} %{?0:patches} \
1122 %{SOURCE20} \
1123 $RPM_SOURCE_DIR/$Config
1124}
a5585a68 1125
351f379b
JR
1126cd %{objdir}
1127install -d arch/%{target_arch_dir}
351f379b 1128BuildConfig > %{defconfig}
351f379b
JR
1129ln -sf %{defconfig} .config
1130cd -
a5585a68 1131
351f379b 1132%{__make} TARGETOBJ=%{targetobj} oldconfig
a5585a68 1133
351f379b 1134%{__awk} %{?debug:-v dieOnError=1} -v infile=%{objdir}/%{defconfig} -f %{SOURCE8} %{objdir}/.config
a5585a68 1135
351f379b
JR
1136# build kernel
1137%{__make} TARGETOBJ=%{targetobj} all
a5585a68 1138
351f379b
JR
1139%install
1140rm -rf $RPM_BUILD_ROOT
1141%{__make} %{MakeOpts} %{!?with_verbose:-s} modules_install firmware_install \
1142 -C %{objdir} \
1143 %{?with_verbose:V=1} \
1144 DEPMOD=%{DepMod} \
1145 INSTALL_MOD_PATH=$RPM_BUILD_ROOT \
1146 INSTALL_FW_PATH=$RPM_BUILD_ROOT/lib/firmware/%{kernel_release} \
1147 KERNELRELEASE=%{kernel_release}
1148
1149install -d $RPM_BUILD_ROOT/lib/modules/%{kernel_release}/misc
1150
101ae904 1151%if %{with myown}
1152# create directories which may be missing, to simplyfy %files
1153install -d $RPM_BUILD_ROOT/lib/modules/%{kernel_release}/kernel/sound
1154%endif
1155
351f379b
JR
1156# rpm obeys filelinkto checks for ghosted symlinks, convert to files
1157rm -f $RPM_BUILD_ROOT/lib/modules/%{kernel_release}/{build,source}
1158touch $RPM_BUILD_ROOT/lib/modules/%{kernel_release}/{build,source}
1159
1160# /boot
1161install -d $RPM_BUILD_ROOT/boot
1162cp -a %{objdir}/System.map $RPM_BUILD_ROOT/boot/System.map-%{kernel_release}
1163%ifarch %{ix86} %{x8664}
1164cp -a %{objdir}/arch/%{target_arch_dir}/boot/bzImage $RPM_BUILD_ROOT/boot/vmlinuz-%{kernel_release}
1165install %{objdir}/vmlinux $RPM_BUILD_ROOT/boot/vmlinux-%{kernel_release}
1166%endif
1167%ifarch ppc ppc64
1168install %{objdir}/vmlinux $RPM_BUILD_ROOT/boot/vmlinuz-%{kernel_release}
1169install %{objdir}/vmlinux $RPM_BUILD_ROOT/boot/vmlinux-%{kernel_release}
a5585a68 1170%endif
a5585a68 1171%ifarch ia64
351f379b
JR
1172%{__gzip} -cfv %{objdir}/vmlinux > %{objdir}/vmlinuz
1173cp -a %{objdir}/vmlinuz $RPM_BUILD_ROOT/boot/efi/vmlinuz-%{kernel_release}
1174ln -sf efi/vmlinuz-%{kernel_release} $RPM_BUILD_ROOT/boot/vmlinuz-%{kernel_release}
1175%endif
1176%ifarch alpha sparc sparc64
1177 %{__gzip} -cfv %{objdir}/vmlinux > %{objdir}/vmlinuz
1178 cp -a %{objdir}/vmlinuz $RPM_BUILD_ROOT/boot/vmlinuz-%{kernel_release}
1179 install %{objdir}/vmlinux $RPM_BUILD_ROOT/boot/vmlinuz-%{kernel_release}
1180%ifarch sparc
1181 elftoaout %{objdir}/arch/sparc/boot/image -o %{objdir}/vmlinux.aout
1182 install %{objdir}/vmlinux.aout $RPM_BUILD_ROOT/boot/vmlinux.aout-%{kernel_release}
1183%endif
1184%ifarch sparc64
1185 elftoaout %{objdir}/arch/sparc64/boot/image -o %{objdir}/vmlinux.aout
1186 install %{objdir}/vmlinux.aout $RPM_BUILD_ROOT/boot/vmlinux.aout-%{kernel_release}
1187%endif
1188%ifarch arm
1189 install %{objdir}/arch/arm/boot/zImage $RPM_BUILD_ROOT/boot/vmlinuz-%{kernel_release}
1190%endif
a5585a68 1191%endif
a5585a68 1192
351f379b
JR
1193# ghosted initrd
1194touch $RPM_BUILD_ROOT%{initrd_dir}/initrd-%{kernel_release}.gz
a5585a68 1195
351f379b
JR
1196%if "%{_target_base_arch}" != "%{_arch}"
1197touch $RPM_BUILD_ROOT/lib/modules/%{kernel_release}/modules.dep
1198%endif
a5585a68 1199
351f379b
JR
1200# /etc/modrobe.d
1201install -d $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/%{kernel_release}
a5585a68 1202
351f379b
JR
1203# /usr/src/linux
1204install -d $RPM_BUILD_ROOT%{_kernelsrcdir}
1205# test if we can hardlink -- %{_builddir} and $RPM_BUILD_ROOT on same partition
1206if cp -al %{srcdir}/COPYING $RPM_BUILD_ROOT/COPYING 2>/dev/null; then
1207 l=l
1208 rm -f $RPM_BUILD_ROOT/COPYING
a5585a68 1209fi
a5585a68 1210
351f379b
JR
1211cp -a$l %{srcdir}/* $RPM_BUILD_ROOT%{_kernelsrcdir}
1212cp -a %{objdir}/Module.symvers $RPM_BUILD_ROOT%{_kernelsrcdir}/Module.symvers-dist
1213cp -aL %{objdir}/.config $RPM_BUILD_ROOT%{_kernelsrcdir}/config-dist
1214cp -a %{objdir}/include/linux/autoconf.h $RPM_BUILD_ROOT%{_kernelsrcdir}/include/linux/autoconf-dist.h
1215cp -a %{objdir}/include/linux/{utsrelease,version}.h $RPM_BUILD_ROOT%{_kernelsrcdir}/include/linux
1216cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_kernelsrcdir}/include/linux/autoconf.h
1217cp -a %{SOURCE4} $RPM_BUILD_ROOT%{_kernelsrcdir}/include/linux/config.h
1218
1219# collect module-build files and directories
1220# Usage: kernel-module-build.pl $rpmdir $fileoutdir
1221fileoutdir=$(pwd)
1222cd $RPM_BUILD_ROOT%{_kernelsrcdir}
1223%{__perl} %{topdir}/kernel-module-build.pl %{_kernelsrcdir} $fileoutdir
1224cd -
1225
1226%clean
1227rm -rf $RPM_BUILD_ROOT
1228
1229%preun
1230if [ -x /sbin/new-kernel-pkg ]; then
1231 /sbin/new-kernel-pkg --remove %{kernel_release}
a5585a68 1232fi
351f379b
JR
1233
1234%post
1235%ifarch ia64
1236mv -f /boot/efi/vmlinuz{,.old} 2> /dev/null
1237%{?alt_kernel:mv -f /boot/efi/vmlinuz%{_alt_kernel}{,.old} 2> /dev/null}
1238ln -sf vmlinuz-%{kernel_release} /boot/efi/vmlinuz
1239%{?alt_kernel:ln -sf vmlinuz-%{kernel_release} /boot/efi/vmlinuz%{_alt_kernel}}
1240%endif
1241mv -f /boot/vmlinuz{,.old} 2> /dev/null
1242%{?alt_kernel:mv -f /boot/vmlinuz%{_alt_kernel}{,.old} 2> /dev/null}
1243mv -f /boot/System.map{,.old} 2> /dev/null
1244%{?alt_kernel:mv -f /boot/System%{_alt_kernel}.map{,.old} 2> /dev/null}
1245ln -sf vmlinuz-%{kernel_release} /boot/vmlinuz
1246%{?alt_kernel:ln -sf vmlinuz-%{kernel_release} /boot/vmlinuz%{_alt_kernel}}
1247ln -sf System.map-%{kernel_release} /boot/System.map
1248%{?alt_kernel:ln -sf System.map-%{kernel_release} /boot/System.map%{_alt_kernel}}
1249
1250%depmod %{kernel_release}
1251
1252/sbin/geninitrd -f --initrdfs=rom %{initrd_dir}/initrd-%{kernel_release}.gz %{kernel_release}
1253mv -f %{initrd_dir}/initrd{,.old} 2> /dev/null
1254%{?alt_kernel:mv -f %{initrd_dir}/initrd%{_alt_kernel}{,.old} 2> /dev/null}
1255ln -sf initrd-%{kernel_release}.gz %{initrd_dir}/initrd
1256%{?alt_kernel:ln -sf initrd-%{kernel_release}.gz %{initrd_dir}/initrd%{_alt_kernel}}
1257
1258if [ -x /sbin/new-kernel-pkg ]; then
1259 /sbin/new-kernel-pkg --initrdfile=%{initrd_dir}/initrd-%{kernel_release}.gz --install %{kernel_release} --banner "PLD Linux (%{pld_release})%{?alt_kernel: / %{alt_kernel}}"
1260elif [ -x /sbin/rc-boot ]; then
1261 /sbin/rc-boot 1>&2 || :
a5585a68 1262fi
a5585a68 1263
351f379b
JR
1264%post vmlinux
1265mv -f /boot/vmlinux{,.old} 2> /dev/null
1266%{?alt_kernel:mv -f /boot/vmlinux-%{alt_kernel}{,.old} 2> /dev/null}
1267ln -sf vmlinux-%{kernel_release} /boot/vmlinux
1268%{?alt_kernel:ln -sf vmlinux-%{kernel_release} /boot/vmlinux-%{alt_kernel}}
1269
1270%post libs
1271%{_sbindir}/mkvmlinuz /boot/zImage-%{kernel_release} %{kernel_release}
a5585a68 1272
351f379b
JR
1273%post drm
1274%depmod %{kernel_release}
a5585a68 1275
351f379b
JR
1276%postun drm
1277%depmod %{kernel_release}
a5585a68 1278
351f379b
JR
1279%post pcmcia
1280%depmod %{kernel_release}
a5585a68 1281
351f379b
JR
1282%postun pcmcia
1283%depmod %{kernel_release}
a5585a68 1284
351f379b
JR
1285%post sound-alsa
1286%depmod %{kernel_release}
a5585a68 1287
351f379b
JR
1288%postun sound-alsa
1289%depmod %{kernel_release}
a5585a68 1290
351f379b
JR
1291%post sound-oss
1292%depmod %{kernel_release}
a5585a68 1293
351f379b
JR
1294%postun sound-oss
1295%depmod %{kernel_release}
a5585a68
AM
1296
1297%post headers
351f379b 1298ln -snf %{basename:%{_kernelsrcdir}} %{_prefix}/src/linux%{_alt_kernel}
a5585a68
AM
1299
1300%postun headers
351f379b
JR
1301if [ "$1" = "0" ]; then
1302 if [ -L %{_prefix}/src/linux%{_alt_kernel} ]; then
1303 if [ "$(readlink %{_prefix}/src/linux%{_alt_kernel})" = "linux%{_alt_kernel}-%{version}" ]; then
1304 rm -f %{_prefix}/src/linux%{_alt_kernel}
a5585a68
AM
1305 fi
1306 fi
1307fi
1308
351f379b
JR
1309%triggerin module-build -- %{name} = %{epoch}:%{version}-%{release}
1310ln -sfn %{_kernelsrcdir} /lib/modules/%{kernel_release}/build
1311ln -sfn %{_kernelsrcdir} /lib/modules/%{kernel_release}/source
1312
1313%triggerun module-build -- %{name} = %{epoch}:%{version}-%{release}
1314if [ "$1" = 0 ]; then
1315 rm -f /lib/modules/%{kernel_release}/{build,source}
1316fi
1317
a5585a68
AM
1318%files
1319%defattr(644,root,root,755)
a5585a68 1320%ifarch sparc sparc64
351f379b 1321/boot/vmlinux.aout-%{kernel_release}
a5585a68
AM
1322%endif
1323%ifarch ia64
351f379b
JR
1324/boot/efi/vmlinuz-%{kernel_release}
1325%endif
1326/boot/vmlinuz-%{kernel_release}
1327/boot/System.map-%{kernel_release}
1328%ghost %{initrd_dir}/initrd-%{kernel_release}.gz
1329/lib/firmware/%{kernel_release}
1330
1331%dir /lib/modules/%{kernel_release}
1332%dir /lib/modules/%{kernel_release}/kernel
1333%ifnarch sparc
1334/lib/modules/%{kernel_release}/kernel/arch
1335%endif
1336/lib/modules/%{kernel_release}/kernel/crypto
1337/lib/modules/%{kernel_release}/kernel/drivers
101ae904 1338%if %{have_drm}
351f379b
JR
1339%exclude /lib/modules/%{kernel_release}/kernel/drivers/gpu
1340%endif
1341/lib/modules/%{kernel_release}/kernel/fs
351f379b 1342/lib/modules/%{kernel_release}/kernel/kernel
351f379b
JR
1343/lib/modules/%{kernel_release}/kernel/lib
1344/lib/modules/%{kernel_release}/kernel/net
101ae904 1345%if %{have_sound}
351f379b
JR
1346%dir /lib/modules/%{kernel_release}/kernel/sound
1347/lib/modules/%{kernel_release}/kernel/sound/ac97_bus.ko*
1348/lib/modules/%{kernel_release}/kernel/sound/sound*.ko*
1349%ifnarch sparc
1350%exclude /lib/modules/%{kernel_release}/kernel/drivers/media/video/cx88/cx88-alsa.ko*
1351%exclude /lib/modules/%{kernel_release}/kernel/drivers/media/video/em28xx/em28xx-alsa.ko*
1352%exclude /lib/modules/%{kernel_release}/kernel/drivers/media/video/saa7134/saa7134-alsa.ko*
1353%endif
1354%endif
1355%dir /lib/modules/%{kernel_release}/misc
101ae904 1356%if %{have_pcmcia}
351f379b
JR
1357%exclude /lib/modules/%{kernel_release}/kernel/drivers/pcmcia/[!p]*
1358%exclude /lib/modules/%{kernel_release}/kernel/drivers/pcmcia/pd6729.ko*
1359%exclude /lib/modules/%{kernel_release}/kernel/drivers/*/pcmcia
1360%if %{without rescuecd}
1361%exclude /lib/modules/%{kernel_release}/kernel/drivers/ata/pata_pcmcia.ko*
1362%exclude /lib/modules/%{kernel_release}/kernel/drivers/bluetooth/*_cs.ko*
1363%exclude /lib/modules/%{kernel_release}/kernel/drivers/isdn/hardware/avm/avm_cs.ko*
1364%exclude /lib/modules/%{kernel_release}/kernel/drivers/isdn/hardware/avm/b1pcmcia.ko*
1365%exclude /lib/modules/%{kernel_release}/kernel/drivers/telephony/ixj_pcmcia.ko*
1366%exclude /lib/modules/%{kernel_release}/kernel/drivers/usb/gadget/g_midi.ko*
1367%endif
1368%exclude /lib/modules/%{kernel_release}/kernel/drivers/ide/ide-cs.ko*
1369%exclude /lib/modules/%{kernel_release}/kernel/drivers/net/wireless/*_cs.ko*
1370%exclude /lib/modules/%{kernel_release}/kernel/drivers/net/wireless/b43
1371%exclude /lib/modules/%{kernel_release}/kernel/drivers/net/wireless/hostap/hostap_cs.ko*
1372%exclude /lib/modules/%{kernel_release}/kernel/drivers/net/wireless/libertas/*_cs.ko*
1373%exclude /lib/modules/%{kernel_release}/kernel/drivers/parport/parport_cs.ko*
1374%exclude /lib/modules/%{kernel_release}/kernel/drivers/serial/serial_cs.ko*
1375%exclude /lib/modules/%{kernel_release}/kernel/drivers/usb/host/sl811_cs.ko*
1376%endif
101ae904 1377%if %{with myown}
1378/lib/modules/%{kernel_release}/kernel/sound
1379%endif
351f379b
JR
1380%ghost /lib/modules/%{kernel_release}/modules.*
1381# symlinks pointing to kernelsrcdir
1382%ghost /lib/modules/%{kernel_release}/build
1383%ghost /lib/modules/%{kernel_release}/source
1384%dir %{_sysconfdir}/modprobe.d/%{kernel_release}
1385
1386%files dirs
a5585a68 1387%defattr(644,root,root,755)
351f379b 1388%dir %{_kernelsrcdir}
a5585a68 1389
351f379b
JR
1390%ifarch alpha %{ix86} %{x8664} ppc ppc64 sparc sparc64
1391%files vmlinux
a5585a68 1392%defattr(644,root,root,755)
351f379b 1393/boot/vmlinux-%{kernel_release}
a5585a68
AM
1394%endif
1395
101ae904 1396%if %{have_drm}
351f379b 1397%files drm
a5585a68 1398%defattr(644,root,root,755)
351f379b 1399/lib/modules/%{kernel_release}/kernel/drivers/gpu
a5585a68
AM
1400%endif
1401
101ae904 1402%if %{have_pcmcia}
351f379b 1403%files pcmcia
a5585a68 1404%defattr(644,root,root,755)
351f379b
JR
1405/lib/modules/%{kernel_release}/kernel/drivers/pcmcia/*ko*
1406/lib/modules/%{kernel_release}/kernel/drivers/*/pcmcia
1407%exclude /lib/modules/%{kernel_release}/kernel/drivers/pcmcia/pcmcia*ko*
1408%if %{without rescuecd}
1409/lib/modules/%{kernel_release}/kernel/drivers/bluetooth/*_cs.ko*
1410/lib/modules/%{kernel_release}/kernel/drivers/isdn/hardware/avm/avm_cs.ko*
1411/lib/modules/%{kernel_release}/kernel/drivers/isdn/hardware/avm/b1pcmcia.ko*
1412/lib/modules/%{kernel_release}/kernel/drivers/telephony/ixj_pcmcia.ko*
1413%endif
1414/lib/modules/%{kernel_release}/kernel/drivers/ata/pata_pcmcia.ko*
1415/lib/modules/%{kernel_release}/kernel/drivers/ide/ide-cs.ko*
1416/lib/modules/%{kernel_release}/kernel/drivers/net/wireless/*_cs.ko*
1417/lib/modules/%{kernel_release}/kernel/drivers/net/wireless/b43
1418/lib/modules/%{kernel_release}/kernel/drivers/net/wireless/hostap/hostap_cs.ko*
1419/lib/modules/%{kernel_release}/kernel/drivers/net/wireless/libertas/*_cs.ko*
1420/lib/modules/%{kernel_release}/kernel/drivers/parport/parport_cs.ko*
1421/lib/modules/%{kernel_release}/kernel/drivers/serial/serial_cs.ko*
1422/lib/modules/%{kernel_release}/kernel/drivers/usb/host/sl811_cs.ko*
1423%endif
1424
1425%ifarch ppc-broken
1426%if "%{_arch}" == "ppc"
1427%files libs
a5585a68 1428%defattr(644,root,root,755)
351f379b
JR
1429%dir /boot/libs-%{kernel_release}
1430/boot/libs-%{kernel_release}/common
1431/boot/libs-%{kernel_release}/kernel
1432/boot/libs-%{kernel_release}/lib
1433/boot/libs-%{kernel_release}/of1275
1434/boot/libs-%{kernel_release}/openfirmware
1435/boot/libs-%{kernel_release}/simple
1436%dir /boot/libs-%{kernel_release}/utils
1437%attr(755,root,root) /boot/libs-%{kernel_release}/utils/*
1438/boot/libs-%{kernel_release}/ld.script
a5585a68 1439%endif
a5585a68
AM
1440%endif
1441
101ae904 1442%if %{have_sound}
351f379b 1443%files sound-alsa
a5585a68 1444%defattr(644,root,root,755)
351f379b
JR
1445/lib/modules/%{kernel_release}/kernel/sound
1446%exclude %dir /lib/modules/%{kernel_release}/kernel/sound
1447%exclude /lib/modules/%{kernel_release}/kernel/sound/ac97_bus.ko*
1448%exclude /lib/modules/%{kernel_release}/kernel/sound/sound*.ko*
1449%if %{have_oss}
1450%exclude /lib/modules/%{kernel_release}/kernel/sound/oss
a5585a68 1451%endif
351f379b
JR
1452%ifnarch sparc
1453/lib/modules/%{kernel_release}/kernel/drivers/usb/gadget/g_midi.ko*
1454/lib/modules/%{kernel_release}/kernel/drivers/media/video/cx88/cx88-alsa.ko*
1455/lib/modules/%{kernel_release}/kernel/drivers/media/video/em28xx/em28xx-alsa.ko*
1456/lib/modules/%{kernel_release}/kernel/drivers/media/video/saa7134/saa7134-alsa.ko*
a5585a68
AM
1457%endif
1458
101ae904 1459%if %{have_oss}
351f379b 1460%files sound-oss
a5585a68 1461%defattr(644,root,root,755)
351f379b 1462/lib/modules/%{kernel_release}/kernel/sound/oss
a5585a68 1463%endif
a5585a68
AM
1464%endif
1465
a5585a68
AM
1466%files headers
1467%defattr(644,root,root,755)
351f379b
JR
1468%{_kernelsrcdir}/include
1469%dir %{_kernelsrcdir}/arch
1470%dir %{_kernelsrcdir}/arch/[!K]*
1471%{_kernelsrcdir}/arch/*/include
1472%dir %{_kernelsrcdir}/security
1473%dir %{_kernelsrcdir}/security/selinux
1474%{_kernelsrcdir}/security/selinux/include
1475%{_kernelsrcdir}/config-dist
1476%{_kernelsrcdir}/Module.symvers-dist
1477
1478%files module-build -f aux_files
a5585a68 1479%defattr(644,root,root,755)
351f379b
JR
1480%ifarch ppc ppc64
1481%{_kernelsrcdir}/arch/powerpc/lib/crtsavres.*
1482%endif
1483%{_kernelsrcdir}/arch/*/kernel/asm-offsets*
1484%{_kernelsrcdir}/arch/*/kernel/sigframe*.h
1485%{_kernelsrcdir}/drivers/lguest/lg.h
1486%{_kernelsrcdir}/kernel/bounds.c
1487%dir %{_kernelsrcdir}/scripts
1488%dir %{_kernelsrcdir}/scripts/kconfig
1489%{_kernelsrcdir}/scripts/Kbuild.include
1490%{_kernelsrcdir}/scripts/Makefile*
1491%{_kernelsrcdir}/scripts/basic
1492%{_kernelsrcdir}/scripts/mkmakefile
1493%{_kernelsrcdir}/scripts/mod
1494%{_kernelsrcdir}/scripts/setlocalversion
1495%{_kernelsrcdir}/scripts/*.c
1496%{_kernelsrcdir}/scripts/*.sh
1497%{_kernelsrcdir}/scripts/kconfig/*
1498%{_kernelsrcdir}/scripts/mkcompile_h
1499%dir %{_kernelsrcdir}/scripts/selinux
1500%{_kernelsrcdir}/scripts/selinux/Makefile
1501%dir %{_kernelsrcdir}/scripts/selinux/mdp
1502%{_kernelsrcdir}/scripts/selinux/mdp/Makefile
1503%{_kernelsrcdir}/scripts/selinux/mdp/*.c
a5585a68
AM
1504
1505%files doc
1506%defattr(644,root,root,755)
351f379b 1507%{_kernelsrcdir}/Documentation
a5585a68
AM
1508
1509%if %{with source}
351f379b 1510%files source -f aux_files_exc
a5585a68 1511%defattr(644,root,root,755)
351f379b
JR
1512%{_kernelsrcdir}/arch/*/[!Mik]*
1513%{_kernelsrcdir}/arch/*/kernel/[!M]*
1514%{_kernelsrcdir}/arch/ia64/ia32/[!M]*
1515%{_kernelsrcdir}/arch/ia64/install.sh
1516%{_kernelsrcdir}/arch/m68k/ifpsp060/[!M]*
1517%{_kernelsrcdir}/arch/m68k/ifpsp060/MISC
1518%{_kernelsrcdir}/arch/parisc/install.sh
1519%{_kernelsrcdir}/arch/x86/ia32/[!M]*
1520%{_kernelsrcdir}/arch/ia64/kvm
1521%{_kernelsrcdir}/arch/powerpc/kvm
1522%ifarch ppc ppc64
1523%exclude %{_kernelsrcdir}/arch/powerpc/lib/crtsavres.*
1524%endif
1525%{_kernelsrcdir}/arch/s390/kvm
1526%{_kernelsrcdir}/arch/x86/kvm
1527%exclude %{_kernelsrcdir}/arch/*/kernel/asm-offsets*
1528%exclude %{_kernelsrcdir}/arch/*/kernel/sigframe*.h
1529%exclude %{_kernelsrcdir}/drivers/lguest/lg.h
1530%{_kernelsrcdir}/block
1531%{_kernelsrcdir}/crypto
1532%{_kernelsrcdir}/drivers
1533%{_kernelsrcdir}/firmware
1534%{_kernelsrcdir}/fs
1535%if %{with grsecurity} && %{without rescuecd}
1536%{_kernelsrcdir}/grsecurity
1537%endif
1538%{_kernelsrcdir}/init
1539%{_kernelsrcdir}/ipc
1540%{_kernelsrcdir}/kernel
1541%exclude %{_kernelsrcdir}/kernel/bounds.c
1542%{_kernelsrcdir}/lib
1543%{_kernelsrcdir}/mm
1544%{_kernelsrcdir}/net
1545%{_kernelsrcdir}/virt
1546%{_kernelsrcdir}/samples
1547%{_kernelsrcdir}/scripts/*
1548%exclude %{_kernelsrcdir}/scripts/Kbuild.include
1549%exclude %{_kernelsrcdir}/scripts/Makefile*
1550%exclude %{_kernelsrcdir}/scripts/basic
1551%exclude %{_kernelsrcdir}/scripts/kconfig
1552%exclude %{_kernelsrcdir}/scripts/mkmakefile
1553%exclude %{_kernelsrcdir}/scripts/mod
1554%exclude %{_kernelsrcdir}/scripts/setlocalversion
1555%exclude %{_kernelsrcdir}/scripts/*.c
1556%exclude %{_kernelsrcdir}/scripts/*.sh
1557%{_kernelsrcdir}/sound
1558%{_kernelsrcdir}/security
1559%exclude %{_kernelsrcdir}/security/selinux/include
1560%{_kernelsrcdir}/usr
1561%{_kernelsrcdir}/COPYING
1562%{_kernelsrcdir}/CREDITS
1563%{_kernelsrcdir}/MAINTAINERS
1564%{_kernelsrcdir}/README
1565%{_kernelsrcdir}/REPORTING-BUGS
a5585a68 1566%endif
This page took 0.301513 seconds and 4 git commands to generate.