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