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