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