]> git.pld-linux.org Git - packages/kernel.git/blob - kernel.spec
- rel 2
[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_without  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         .8
106 %define         rel             2
107
108 %define         _enable_debug_packages                  0
109
110 %define         squashfs_version        3.4
111 %define         tuxonice_version        3.0-rc7a
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:  ec23e3dce22b23ca681199fe515f10fb
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-rc7a-for-2.6.26.patch.bz2
271 Patch69:        linux-2.6-suspend2.patch
272 Patch70:        kernel-suspend2-headers.patch
273 Patch71:        linux-2.6-suspend2-page.patch
274 Patch72:        kernel-2.6-ueagle-atm-freezer.patch
275
276 # adds some ids for hostap suported cards and monitor_enable from/for aircrack-ng
277 # http://patches.aircrack-ng.org/hostap-kernel-2.6.18.patch
278 Patch85:        hostap-kernel-2.6.18.patch
279
280 # Taken from http://download.opensuse.org/factory/repo/src-oss/suse/src/kernel-source-2.6.27.7-3.1.src.rpm
281 Patch90:        kernel-mpt-fusion.patch
282
283 # http://vserver.13thfloor.at/Experimental/patch-2.6.27.6-vs2.3.0.36.2.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 %patch71 -p1
741 # kernel-2.6-ueagle-atm-freezer.patch
742 %patch72 -p1
743 ##endif
744 %endif
745
746 %patch2 -p1
747 %if %{with fbcondecor}
748 %patch3 -p1
749 %endif
750 %patch4 -p1
751
752 # squashfs
753 %patch5 -p1
754
755 %patch6 -p1
756
757 ## netfilter
758 #
759
760 # kernel-pom-ng-IPV4OPTSSTRIP.patch
761 %patch10 -p1
762
763 # kernel-pom-ng-ipv4options.patch
764 %patch11 -p1
765
766 # kernel-pom-ng-ROUTE.patch
767 %patch14 -p1
768
769 # kernel-pom-ng-mms-conntrack-nat.patch
770 %patch16 -p1
771
772 # kernel-pom-ng-rsh.patch
773 %patch22 -p1
774
775 # kernel-pom-ng-rpc.patch
776 %patch23 -p1
777
778 # kernel-nf_rtsp.patch
779 %patch36 -p1
780
781 # kernel-owner-xid.patch
782 %if %{with vserver}
783 %patch37 -p1
784 %endif
785
786 # kernel-ipt_account.patch
787 %patch38 -p1
788
789 # kernel-ipt_ACCOUNT.patch
790 %patch39 -p1
791
792 # kernel-layer7.patch
793 %patch40 -p1
794
795 # ipvs-nfct
796 %patch41 -p1
797
798 ##
799 # end of netfilter
800
801 # zph
802 %patch49 -p1
803
804 %if %{with imq}
805 %patch50 -p1
806 %endif
807
808 # reiser4
809 %if %{with reiser4}
810 %patch51 -p1
811 %endif
812
813 # esfq
814 %patch53 -p1
815
816 %if %{with wrr}
817 %patch52 -p1
818 %endif
819
820 # toshiba_acpi
821 %patch54 -p1
822
823 %patch55 -p1
824 %patch56 -p1
825
826 %patch58 -p1
827
828 # kernel-rndis_host-wm5.patch
829 %patch59 -p1
830
831 %patch61 -p1
832
833 # hostap enhancements from/for aircrack-ng
834 %patch85 -p1
835
836 # LSI MPT Fusion driver update
837 %patch90 -p1
838
839 # vserver
840 %if %{with vserver}
841 %patch100 -p1
842 %patch101 -p1
843 %endif
844
845 #%if %{with xen0} || %{with xenU}
846 #%ifarch %{ix86} %{x8664} ia64
847 #%patch120 -p1
848 #%endif
849 #%endif
850
851 # tproxy
852 %if %{without rescuecd} && %{with vserver}
853 #patch42 -p1
854 %endif
855
856 # forcedeth
857 %patch130 -p1
858
859 # unionfs
860 %patch140 -p1
861 %{?with_apparmor:%patch141 -p1}
862
863 # autofs4-v5-update
864 %patch142 -p1
865
866 %patch2500 -p1
867
868 %if %{with rescuecd}
869 %patch7000 -p1
870 %patch7001 -p1
871 %endif
872
873 # grsecurity & pax stuff
874 #
875 %if %{with pax_full}
876 %patch9999 -p1
877 %{?with_vserver:%patch10000 -p1}
878 %{?with_vserver:%patch10001 -p1}
879 %{?with_vserver:%patch10002 -p1}
880 %{?with_vserver:%patch10003 -p1}
881 %else
882
883 %if %{with grsec_full}
884 %patch9999 -p1
885 %{?with_vserver:%patch10000 -p1}
886 %{?with_vserver:%patch10001 -p1}
887 %{?with_vserver:%patch10002 -p1}
888 %{?with_vserver:%patch10003 -p1}
889 %else
890 %if %{with grsec_minimal}
891 %patch1000 -p1
892 # remember that we have the same config file for grsec_minimal and
893 # grsec_full, but the patches are different.
894 %endif
895 %endif
896
897 %if %{with pax}
898 # now we have an separate testing pax-only patch - in the future we
899 # could have single grsecurity patch and will have to prepare separate
900 # configs for grsec_minimal, grsec_full and pax to support such
901 # configurations like pax & grsec_minimal.
902 # So, in a future there could be no patch9998, but only config
903 # would tell which options should be enabled.
904 # The second option is to maintain separate pax-only patch.
905 %patch9998 -p1
906 #patch9997 -p1 - needs update
907 %endif
908
909 %endif
910
911 #
912 # end of grsecurity & pax stuff
913
914 # apparmor
915 %if %{with apparmor}
916 %if %{with grsec_full} || %{with pax_full}
917 %patch5001 -p1
918 %patch5002 -p1
919 %else
920 %patch5000 -p1
921 %patch5002 -p1
922 %endif
923 %endif
924
925 %patch150 -p1
926
927 %ifarch ppc ppc64
928 #patch200 -p1
929 %endif
930
931 # routes
932 %patch300 -p1
933
934 # Small fixes:
935 %patch2000 -p1
936 %patch2001 -p1
937 %patch2002 -p1
938 %patch2003 -p1
939
940 # Fix EXTRAVERSION in main Makefile
941 sed -i 's#EXTRAVERSION =.*#EXTRAVERSION = %{postver}%{?alt_kernel:_%{alt_kernel}}#g' Makefile
942
943 # on sparc this line causes CONFIG_INPUT=m (instead of =y), thus breaking build
944 sed -i -e '/select INPUT/d' net/bluetooth/hidp/Kconfig
945
946 # on sparc64 avoid building break due to NULL pointer type warrning
947 sed -i -e 's/^EXTRA_CFLAGS := -Werror/EXTRA_CFLAGS := /' arch/sparc64/kernel/Makefile
948
949 # cleanup backups after patching
950 find '(' -name '*~' -o -name '*.orig' -o -name '.gitignore' ')' -print0 | xargs -0 -r -l512 rm -f
951
952 %build
953 cd linux-%{basever}
954 PaXconfig () {
955         set -x
956         cat <<-EOCONFIG > $1
957         %ifarch %{ix86}
958                 CONFIG_PAX_SEGMEXEC=y
959                 # performance impact on CPUs without NX bit
960                 CONFIG_PAX_PAGEEXEC=n
961                 # Testing KERNEXEC
962
963                 CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM=n
964                 CONFIG_PCI_BIOS=n
965                 CONFIG_EFI=n
966         %endif
967
968         %ifarch ppc64
969                 CONFIG_PAX_NOELFRELOCS=n
970         %endif
971         %ifarch ppc
972                 CONFIG_PAX_EMUTRAMP=y
973                 CONFIG_PAX_EMUSIGRT=y
974                 CONFIG_PAX_EMUPLT=y
975         %endif
976
977         %ifarch sparc sparc64 alpha
978                 CONFIG_PAX_EMUPLT=y
979         %endif
980
981         # Now we have to check MAC system integration. Grsecurity (full) uses PAX_HAVE_ACL_FLAGS
982         # setting (direct acces). grsec_minimal probably have no idea about PaX so we probably
983         # could use PAX_NO_ACL_FLAGS, but for testing the hooks setting will be used
984         # PAX_HOOK_ACL_FLAGS. SELinux should also be able to make PaX settings via hooks
985
986         %if %{with grsec_full}
987                 # Hardening grsec options if with pax
988                 CONFIG_GRKERNSEC_PROC_MEMMAP=y
989                 # almost rational (see HIDESYM help)
990                 CONFIG_GRKERNSEC_HIDESYM=y
991
992                 # no change needed CONFIG=PAX_HAVE_ACL_FLAGS=y is taken from the kernel-pax.config
993         %else
994                 # selinux or other hooks?
995                 CONFIG_PAX_HAVE_ACL_FLAGS=n
996                 CONFIG_PAX_HOOK_ACL_FLAGS=y
997         %endif
998 EOCONFIG
999
1000         return 0
1001 }
1002
1003 RescueConfig() {
1004         set -x
1005         cat <<-EOCONFIG > $1
1006                 # CONFIG_SOUND is not set
1007                 # CONFIG_AUDIT is not set
1008                 # CONFIG_TR is not set
1009                 # CONFIG_BT is not set
1010                 # CONFIG_VIDEO_DEV is not set
1011                 # CONFIG_DVB_CORE is not set
1012                 # CONFIG_HAMRADIO is not set
1013                 # CONFIG_ARCNET is not set
1014                 # CONFIG_FB is not set
1015                 # CONFIG_DRM is not set
1016                 # CONFIG_WATCHDOG is not set
1017                 # CONFIG_INPUT_JOYSTICK is not set
1018                 # CONFIG_DEBUG_KERNEL is not set
1019                 # CONFIG_ISDN is not set
1020                 # CONFIG_AGP is not set
1021                 # CONFIG_SECURITY is not set
1022                 # CONFIG_PARIDE is not set
1023                 # CONFIG_CPU_FREQ is not set
1024                 # CONFIG_GAMEPORT is not set
1025                 # CONFIG_KVM is not set
1026                 # CONFIG_PHONE is not set
1027                 CONFIG_BLK_DEV_LOOP=y
1028                 CONFIG_ISO9660_FS=y
1029                 CONFIG_NLS_UTF8=y
1030 EOCONFIG
1031
1032         return 0
1033 }
1034
1035 BuildConfig() {
1036         %{?debug:set -x}
1037         set -e
1038
1039         Config="kernel-%{target_arch_dir}.config"
1040         echo "Building config file for %{_target_cpu} using $Config et al."
1041
1042         # prepare local and important options
1043         cat <<-EOCONFIG > important.config
1044 %if 0%{?debug:1}
1045                 CONFIG_DEBUG_SLAB=y
1046                 CONFIG_DEBUG_SLAB_LEAK=y
1047                 CONFIG_DEBUG_PREEMPT=y
1048                 CONFIG_RT_DEADLOCK_DETECT=y
1049 %endif
1050
1051 %if %{without smp}
1052                 CONFIG_SMP=n
1053 %endif
1054
1055 # apparmor, will be moved to external file if works
1056 %if %{with apparmor}
1057                 CONFIG_SECURITY_APPARMOR=y
1058                 CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1
1059                 CONFIG_SECURITY_APPARMOR_DISABLE=n
1060 %endif
1061
1062 %if %{without ipv6}
1063                 CONFIG_IPV6=n
1064 %endif
1065
1066 %ifarch i686 athlon pentium3 pentium4
1067   %if %{with pae}
1068                 CONFIG_HIGHMEM4G=n
1069                 CONFIG_HIGHMEM64G=y
1070                 CONFIG_X86_PAE=y
1071   %endif
1072 %endif
1073
1074 %if %{without pcmcia}
1075                 CONFIG_PCMCIA=n
1076 %endif
1077
1078 %if %{with fbcondecor}
1079                 CONFIG_FB_S3=n
1080                 CONFIG_FB_VT8623=n
1081                 CONFIG_FB_ARK=n
1082                 CONFIG_FB_TILEBLITTING=n
1083                 CONFIG_FB_CON_DECOR=y
1084 %endif
1085
1086 %if %{with nfsroot}
1087                 CONFIG_NFS_FS=y
1088                 CONFIG_ROOT_NFS=y
1089 %endif
1090
1091 # Temporary disabled RELOCATABLE. Needed only on x86??
1092 %if %{with pax} || %{with grsec_full}
1093                 CONFIG_RELOCATABLE=n
1094 %endif
1095 EOCONFIG
1096
1097         RescueConfig rescue.config
1098         PaXconfig pax.config
1099
1100         # prepare kernel-style config file from multiple config files
1101         %{__awk} -v arch="all %{target_arch_dir} %{_target_base_arch} %{_target_cpu}" -f %{SOURCE6} \
1102                 important.config \
1103 %if %{with rescuecd}
1104                 %{SOURCE58} \
1105                 %{SOURCE59} \
1106                 rescue.config \
1107 %endif
1108 %if %{with xenU}
1109                 %{SOURCE47} \
1110 %endif
1111 %if %{with xen0}
1112                 %{SOURCE46} \
1113 %endif
1114                 \
1115 %if %{with pax_full}
1116                 %{SOURCE45} \
1117                 %{SOURCE49} \
1118                 pax.config \
1119 %else
1120   %if %{with grsec_full}
1121                 %{SOURCE45} \
1122                 %{SOURCE50} \
1123   %else
1124         %if %{with grsec_minimal}
1125                 %{SOURCE51} \
1126         %endif
1127   %endif
1128   %if %{with pax}
1129                 %{SOURCE49} \
1130                 pax.config \
1131   %endif
1132 %endif
1133                 \
1134 %if %{with reiser4}
1135                 %{SOURCE56} \
1136 %endif
1137 %if %{with wrr}
1138                 %{SOURCE57} \
1139 %endif
1140 %if %{with imq}
1141                 %{SOURCE55} \
1142 %endif
1143 %if %{with vserver}
1144                 %{SOURCE43} \
1145 %endif
1146 %if %{with tuxonice}
1147 %ifarch %{ix86} %{x8664} ia64 ppc ppc64
1148                 %{SOURCE42} \
1149 %endif
1150 %endif
1151                 %{SOURCE40} %{?0:netfilter} \
1152                 %{SOURCE41} %{?0:patches} \
1153                 %{SOURCE20} \
1154                 $RPM_SOURCE_DIR/$Config \
1155                 > %{defconfig}
1156 }
1157
1158 BuildKernel() {
1159         %{?debug:set -x}
1160         echo "Building kernel $1 ..."
1161         install .config %{defconfig}
1162         %{__make} %{MakeOpts} mrproper \
1163                 RCS_FIND_IGNORE='-name build-done -prune -o'
1164         ln -sf %{defconfig} .config
1165
1166         %{__make} %{MakeOpts} clean \
1167                 RCS_FIND_IGNORE='-name build-done -prune -o'
1168         %{__make} %{MakeOpts} include/linux/version.h \
1169                 %{?with_verbose:V=1}
1170
1171         %{__make} %{MakeOpts} scripts/mkcompile_h \
1172                 %{?with_verbose:V=1}
1173
1174 # make does vmlinux, modules and bzImage at once
1175 %ifarch sparc64
1176         %{__make} %{MakeOpts} image \
1177                 %{?with_verbose:V=1}
1178
1179         %{__make} %{MakeOpts} modules \
1180                 %{?with_verbose:V=1}
1181 %else
1182         %{__make} %{MakeOpts} \
1183                 %{?with_verbose:V=1}
1184 %endif
1185 }
1186
1187 PreInstallKernel() {
1188         Config="%{_target_base_arch}"
1189         KernelVer=%{kernel_release}
1190
1191         mkdir -p $KERNEL_INSTALL_DIR/boot
1192         install System.map $KERNEL_INSTALL_DIR/boot/System.map-$KernelVer
1193 %ifarch %{ix86} %{x8664}
1194         install arch/x86/boot/bzImage $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
1195         install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
1196 %endif
1197 %ifarch alpha sparc sparc64
1198         gzip -cfv vmlinux > vmlinuz
1199         install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
1200         install vmlinuz $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
1201 %ifarch sparc
1202         elftoaout arch/sparc/boot/image -o vmlinux.aout
1203         install vmlinux.aout $KERNEL_INSTALL_DIR/boot/vmlinux.aout-$KernelVer
1204 %endif
1205 %ifarch sparc64
1206         elftoaout arch/sparc64/boot/image -o vmlinux.aout
1207         install vmlinux.aout $KERNEL_INSTALL_DIR/boot/vmlinux.aout-$KernelVer
1208 %endif
1209 %endif
1210 %ifarch ppc ppc64
1211         install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
1212         install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
1213 %endif
1214 %ifarch ppc-broken
1215         %{__make} -f Makefile.ppclibs install \
1216                 DESTDIR=$KERNEL_INSTALL_DIR/boot/libs-$KernelVer
1217 %endif
1218 %ifarch ia64
1219         gzip -cfv vmlinux > vmlinuz
1220         install -d $KERNEL_INSTALL_DIR/boot/efi
1221         install vmlinuz $KERNEL_INSTALL_DIR/boot/efi/vmlinuz-$KernelVer
1222         ln -sf efi/vmlinuz-$KernelVer $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
1223 %endif
1224 %ifarch arm
1225         install arch/arm/boot/zImage $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
1226 %endif
1227
1228         %{__make} %{MakeOpts} modules_install firmware_install \
1229                 %{?with_verbose:V=1} \
1230                 DEPMOD=%DepMod \
1231                 INSTALL_MOD_PATH=$KERNEL_INSTALL_DIR \
1232                 INSTALL_FW_PATH=$KERNEL_INSTALL_DIR/lib/firmware/$KernelVer \
1233                 KERNELRELEASE=$KernelVer
1234
1235         # You'd probabelly want to make it somewhat different
1236         install -d $KERNEL_INSTALL_DIR%{_kernelsrcdir}
1237         install Module.symvers $KERNEL_INSTALL_DIR%{_kernelsrcdir}/Module.symvers-dist
1238
1239         echo "CHECKING DEPENDENCIES FOR KERNEL MODULES"
1240         if [ %DepMod = /sbin/depmod ]; then
1241                 /sbin/depmod --basedir $KERNEL_INSTALL_DIR -ae -F $KERNEL_INSTALL_DIR/boot/System.map-$KernelVer -r $KernelVer || :
1242         fi
1243         touch $KERNEL_INSTALL_DIR/lib/modules/$KernelVer/modules.dep
1244         # binary cache produced by depmod at runtime
1245         touch $KERNEL_INSTALL_DIR/lib/modules/$KernelVer/modules.{alias,dep,symbols}.bin
1246         echo "KERNEL RELEASE $KernelVer DONE"
1247 }
1248
1249 KERNEL_BUILD_DIR=`pwd`
1250 echo "-%{localversion}" > localversion
1251
1252 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/kernel"
1253 rm -rf $KERNEL_INSTALL_DIR
1254 %if %{without myown}
1255 BuildConfig
1256 %else
1257 cat $RPM_SOURCE_DIR/kernel-myown.config > %{defconfig}
1258 %endif
1259 ln -sf %{defconfig} .config
1260 install -d $KERNEL_INSTALL_DIR%{_kernelsrcdir}/include/linux
1261 rm -f include/linux/autoconf.h
1262 %{__make} %{MakeOpts} include/linux/autoconf.h
1263 install include/linux/autoconf.h \
1264         $KERNEL_INSTALL_DIR%{_kernelsrcdir}/include/linux/autoconf-dist.h
1265 install .config \
1266         $KERNEL_INSTALL_DIR%{_kernelsrcdir}/config-dist
1267
1268 %{__awk} %{?debug:-v dieOnError=1} -v infile=%{defconfig} -f %{SOURCE8} .config
1269
1270 BuildKernel
1271 PreInstallKernel
1272
1273 %{__make} %{MakeOpts} include/linux/utsrelease.h
1274 cp include/linux/utsrelease.h{,.save}
1275 cp include/linux/version.h{,.save}
1276 cp scripts/mkcompile_h{,.save}
1277
1278 %install
1279 rm -rf $RPM_BUILD_ROOT
1280 cd linux-%{basever}
1281
1282 umask 022
1283 export DEPMOD=%DepMod
1284
1285 install -d $RPM_BUILD_ROOT%{_kernelsrcdir}
1286 install -d $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/%{kernel_release}
1287
1288 # test if we can hardlink -- %{_builddir} and $RPM_BUILD_ROOT on same partition
1289 if cp -al COPYING $RPM_BUILD_ROOT/COPYING 2>/dev/null; then
1290         l=l
1291         rm -f $RPM_BUILD_ROOT/COPYING
1292 fi
1293
1294 KERNEL_BUILD_DIR=`pwd`
1295
1296 cp -a$l $KERNEL_BUILD_DIR/build-done/kernel/* $RPM_BUILD_ROOT
1297
1298 if [ -e $RPM_BUILD_ROOT/lib/modules/%{kernel_release} ] ; then
1299         rm -f $RPM_BUILD_ROOT/lib/modules/%{kernel_release}/build
1300         ln -sf %{_kernelsrcdir} $RPM_BUILD_ROOT/lib/modules/%{kernel_release}/build
1301         install -d $RPM_BUILD_ROOT/lib/modules/%{kernel_release}/{cluster,misc}
1302 fi
1303
1304 find . -maxdepth 1 ! -name "build-done" ! -name "." -exec cp -a$l "{}" "$RPM_BUILD_ROOT%{_kernelsrcdir}/" ";"
1305
1306 cd $RPM_BUILD_ROOT%{_kernelsrcdir}
1307
1308 %{__make} %{MakeOpts} mrproper archclean \
1309         RCS_FIND_IGNORE='-name build-done -prune -o'
1310
1311 if [ -e $KERNEL_BUILD_DIR/build-done/kernel%{_kernelsrcdir}/include/linux/autoconf-dist.h ]; then
1312         install $KERNEL_BUILD_DIR/build-done/kernel%{_kernelsrcdir}/include/linux/autoconf-dist.h \
1313                 $RPM_BUILD_ROOT%{_kernelsrcdir}/include/linux
1314         install $KERNEL_BUILD_DIR/build-done/kernel%{_kernelsrcdir}/config-dist \
1315                 $RPM_BUILD_ROOT%{_kernelsrcdir}
1316 fi
1317
1318 cp -Rdp$l $KERNEL_BUILD_DIR/include/linux/* \
1319         $RPM_BUILD_ROOT%{_kernelsrcdir}/include/linux
1320
1321 %{__make} %{MakeOpts} mrproper
1322 mv -f include/linux/utsrelease.h.save $RPM_BUILD_ROOT%{_kernelsrcdir}/include/linux/utsrelease.h
1323 cp include/linux/version.h{.save,}
1324 cp scripts/mkcompile_h{.save,}
1325 rm -rf include/linux/version.h.save
1326 rm -rf scripts/mkcompile_h.save
1327 install %{SOURCE3} $RPM_BUILD_ROOT%{_kernelsrcdir}/include/linux/autoconf.h
1328 install %{SOURCE4} $RPM_BUILD_ROOT%{_kernelsrcdir}/include/linux/config.h
1329
1330 # collect module-build files and directories
1331 perl %{SOURCE7} %{_kernelsrcdir} %{_builddir}/%{name}-%{version}
1332
1333 # ghosted initrd
1334 touch $RPM_BUILD_ROOT%{initrd_dir}/initrd-%{kernel_release}.gz
1335
1336 # rpm obeys filelinkto checks for ghosted symlinks, convert to files
1337 rm -f $RPM_BUILD_ROOT/lib/modules/%{kernel_release}/{build,source}
1338 touch $RPM_BUILD_ROOT/lib/modules/%{kernel_release}/{build,source}
1339
1340 # remove unnecessary dir with dead symlink
1341 rm -rf $RPM_BUILD_ROOT/arch/i386
1342
1343 %clean
1344 rm -rf $RPM_BUILD_ROOT
1345
1346 %preun
1347 if [ -x /sbin/new-kernel-pkg ]; then
1348         /sbin/new-kernel-pkg --remove %{kernel_release}
1349 fi
1350
1351 %post
1352 %ifarch ia64
1353 mv -f /boot/efi/vmlinuz{,.old} 2> /dev/null
1354 %{?alt_kernel:mv -f /boot/efi/vmlinuz%{_alt_kernel}{,.old} 2> /dev/null}
1355 ln -sf vmlinuz-%{kernel_release} /boot/efi/vmlinuz
1356 %{?alt_kernel:ln -sf vmlinuz-%{kernel_release} /boot/efi/vmlinuz%{_alt_kernel}}
1357 %endif
1358 mv -f /boot/vmlinuz{,.old} 2> /dev/null
1359 %{?alt_kernel:mv -f /boot/vmlinuz%{_alt_kernel}{,.old} 2> /dev/null}
1360 mv -f /boot/System.map{,.old} 2> /dev/null
1361 %{?alt_kernel:mv -f /boot/System%{_alt_kernel}.map{,.old} 2> /dev/null}
1362 ln -sf vmlinuz-%{kernel_release} /boot/vmlinuz
1363 %{?alt_kernel:ln -sf vmlinuz-%{kernel_release} /boot/vmlinuz%{_alt_kernel}}
1364 ln -sf System.map-%{kernel_release} /boot/System.map
1365 %{?alt_kernel:ln -sf System.map-%{kernel_release} /boot/System.map%{_alt_kernel}}
1366
1367 %depmod %{kernel_release}
1368
1369 /sbin/geninitrd -f --initrdfs=rom %{initrd_dir}/initrd-%{kernel_release}.gz %{kernel_release}
1370 mv -f %{initrd_dir}/initrd{,.old} 2> /dev/null
1371 %{?alt_kernel:mv -f %{initrd_dir}/initrd%{_alt_kernel}{,.old} 2> /dev/null}
1372 ln -sf initrd-%{kernel_release}.gz %{initrd_dir}/initrd
1373 %{?alt_kernel:ln -sf initrd-%{kernel_release}.gz %{initrd_dir}/initrd%{_alt_kernel}}
1374
1375 if [ -x /sbin/new-kernel-pkg ]; then
1376         title="PLD Linux (%{pld_release})%{?alt_kernel: / %{alt_kernel}}"
1377
1378         /sbin/new-kernel-pkg --initrdfile=%{initrd_dir}/initrd-%{kernel_release}.gz --install %{kernel_release} --banner "$title"
1379 elif [ -x /sbin/rc-boot ]; then
1380         /sbin/rc-boot 1>&2 || :
1381 fi
1382
1383 %post vmlinux
1384 mv -f /boot/vmlinux{,.old} 2> /dev/null
1385 %{?alt_kernel:mv -f /boot/vmlinux-%{alt_kernel}{,.old} 2> /dev/null}
1386 ln -sf vmlinux-%{kernel_release} /boot/vmlinux
1387 %{?alt_kernel:ln -sf vmlinux-%{kernel_release} /boot/vmlinux-%{alt_kernel}}
1388
1389 %post libs
1390 %{_sbindir}/mkvmlinuz /boot/zImage-%{kernel_release} %{kernel_release}
1391
1392 %post drm
1393 %depmod %{kernel_release}
1394
1395 %postun drm
1396 %depmod %{kernel_release}
1397
1398 %post pcmcia
1399 %depmod %{kernel_release}
1400
1401 %postun pcmcia
1402 %depmod %{kernel_release}
1403
1404 %post sound-alsa
1405 %depmod %{kernel_release}
1406
1407 %postun sound-alsa
1408 %depmod %{kernel_release}
1409
1410 %post sound-oss
1411 %depmod %{kernel_release}
1412
1413 %postun sound-oss
1414 %depmod %{kernel_release}
1415
1416 %post headers
1417 ln -snf %{basename:%{_kernelsrcdir}} %{_prefix}/src/linux%{_alt_kernel}
1418
1419 %postun headers
1420 if [ "$1" = "0" ]; then
1421         if [ -L %{_prefix}/src/linux%{_alt_kernel} ]; then
1422                 if [ "$(readlink %{_prefix}/src/linux%{_alt_kernel})" = "linux%{_alt_kernel}-%{version}" ]; then
1423                         rm -f %{_prefix}/src/linux%{_alt_kernel}
1424                 fi
1425         fi
1426 fi
1427
1428 %triggerin module-build -- %{name} = %{epoch}:%{version}-%{release}
1429 ln -sfn %{_kernelsrcdir} /lib/modules/%{kernel_release}/build
1430 ln -sfn %{_kernelsrcdir} /lib/modules/%{kernel_release}/source
1431
1432 %triggerun module-build -- %{name} = %{epoch}:%{version}-%{release}
1433 if [ "$1" = 0 ]; then
1434         rm -f /lib/modules/%{kernel_release}/{build,source}
1435 fi
1436
1437 %files
1438 %defattr(644,root,root,755)
1439 %ifarch sparc sparc64
1440 /boot/vmlinux.aout-%{kernel_release}
1441 %endif
1442 %ifarch ia64
1443 /boot/efi/vmlinuz-%{kernel_release}
1444 %endif
1445 /boot/vmlinuz-%{kernel_release}
1446 /boot/System.map-%{kernel_release}
1447 %ghost %{initrd_dir}/initrd-%{kernel_release}.gz
1448 /lib/firmware/%{kernel_release}
1449 %dir /lib/modules/%{kernel_release}
1450 %dir /lib/modules/%{kernel_release}/kernel
1451 %ifnarch sparc
1452 /lib/modules/%{kernel_release}/kernel/arch
1453 %endif
1454 /lib/modules/%{kernel_release}/kernel/crypto
1455 /lib/modules/%{kernel_release}/kernel/drivers
1456 %if %{have_drm} && %{without myown}
1457 %exclude /lib/modules/%{kernel_release}/kernel/drivers/gpu
1458 %endif
1459 /lib/modules/%{kernel_release}/kernel/fs
1460
1461 # this directory will be removed after disabling rcutorture mod. in 2.6.20.
1462 /lib/modules/%{kernel_release}/kernel/kernel
1463
1464 /lib/modules/%{kernel_release}/kernel/lib
1465 /lib/modules/%{kernel_release}/kernel/net
1466 %if %{have_sound} && %{without myown}
1467 %dir /lib/modules/%{kernel_release}/kernel/sound
1468 /lib/modules/%{kernel_release}/kernel/sound/ac97_bus.ko*
1469 /lib/modules/%{kernel_release}/kernel/sound/sound*.ko*
1470 %ifnarch sparc
1471 %exclude /lib/modules/%{kernel_release}/kernel/drivers/media/video/cx88/cx88-alsa.ko*
1472 %exclude /lib/modules/%{kernel_release}/kernel/drivers/media/video/em28xx/em28xx-alsa.ko*
1473 %exclude /lib/modules/%{kernel_release}/kernel/drivers/media/video/saa7134/saa7134-alsa.ko*
1474 %endif
1475 %endif
1476 %dir /lib/modules/%{kernel_release}/misc
1477 %if %{with pcmcia} && %{without myown}
1478 %exclude /lib/modules/%{kernel_release}/kernel/drivers/pcmcia/[!p]*
1479 %exclude /lib/modules/%{kernel_release}/kernel/drivers/pcmcia/pd6729.ko*
1480 %exclude /lib/modules/%{kernel_release}/kernel/drivers/*/pcmcia
1481 %if %{without rescuecd}
1482 %exclude /lib/modules/%{kernel_release}/kernel/drivers/ata/pata_pcmcia.ko*
1483 %exclude /lib/modules/%{kernel_release}/kernel/drivers/bluetooth/*_cs.ko*
1484 %exclude /lib/modules/%{kernel_release}/kernel/drivers/isdn/hardware/avm/avm_cs.ko*
1485 %exclude /lib/modules/%{kernel_release}/kernel/drivers/isdn/hardware/avm/b1pcmcia.ko*
1486 %exclude /lib/modules/%{kernel_release}/kernel/drivers/telephony/ixj_pcmcia.ko*
1487 %exclude /lib/modules/%{kernel_release}/kernel/drivers/usb/gadget/g_midi.ko*
1488 %endif
1489 %exclude /lib/modules/%{kernel_release}/kernel/drivers/ide/legacy/ide-cs.ko*
1490 %exclude /lib/modules/%{kernel_release}/kernel/drivers/net/wireless/*_cs.ko*
1491 %exclude /lib/modules/%{kernel_release}/kernel/drivers/net/wireless/b43
1492 %exclude /lib/modules/%{kernel_release}/kernel/drivers/net/wireless/hostap/hostap_cs.ko*
1493 %exclude /lib/modules/%{kernel_release}/kernel/drivers/net/wireless/libertas/*_cs.ko*
1494 %exclude /lib/modules/%{kernel_release}/kernel/drivers/parport/parport_cs.ko*
1495 %exclude /lib/modules/%{kernel_release}/kernel/drivers/serial/serial_cs.ko*
1496 %exclude /lib/modules/%{kernel_release}/kernel/drivers/usb/host/sl811_cs.ko*
1497 %endif
1498 %ghost /lib/modules/%{kernel_release}/modules.*
1499 # symlinks pointing to kernelsrcdir
1500 %ghost /lib/modules/%{kernel_release}/build
1501 %ghost /lib/modules/%{kernel_release}/source
1502 %dir %{_sysconfdir}/modprobe.d/%{kernel_release}
1503
1504 %ifarch alpha %{ix86} %{x8664} ppc ppc64 sparc sparc64
1505 %files vmlinux
1506 %defattr(644,root,root,755)
1507 /boot/vmlinux-%{kernel_release}
1508 %endif
1509
1510 %if %{have_drm} && %{without myown}
1511 %files drm
1512 %defattr(644,root,root,755)
1513 /lib/modules/%{kernel_release}/kernel/drivers/gpu
1514 %endif
1515
1516 %if %{with pcmcia} && %{without myown}
1517 %files pcmcia
1518 %defattr(644,root,root,755)
1519 /lib/modules/%{kernel_release}/kernel/drivers/pcmcia/*ko*
1520 /lib/modules/%{kernel_release}/kernel/drivers/*/pcmcia
1521 %exclude /lib/modules/%{kernel_release}/kernel/drivers/pcmcia/pcmcia*ko*
1522 %if %{without rescuecd}
1523 /lib/modules/%{kernel_release}/kernel/drivers/bluetooth/*_cs.ko*
1524 /lib/modules/%{kernel_release}/kernel/drivers/isdn/hardware/avm/avm_cs.ko*
1525 /lib/modules/%{kernel_release}/kernel/drivers/isdn/hardware/avm/b1pcmcia.ko*
1526 /lib/modules/%{kernel_release}/kernel/drivers/telephony/ixj_pcmcia.ko*
1527 %endif
1528 /lib/modules/%{kernel_release}/kernel/drivers/ata/pata_pcmcia.ko*
1529 /lib/modules/%{kernel_release}/kernel/drivers/ide/legacy/ide-cs.ko*
1530 /lib/modules/%{kernel_release}/kernel/drivers/net/wireless/*_cs.ko*
1531 /lib/modules/%{kernel_release}/kernel/drivers/net/wireless/b43
1532 /lib/modules/%{kernel_release}/kernel/drivers/net/wireless/hostap/hostap_cs.ko*
1533 /lib/modules/%{kernel_release}/kernel/drivers/net/wireless/libertas/*_cs.ko*
1534 /lib/modules/%{kernel_release}/kernel/drivers/parport/parport_cs.ko*
1535 /lib/modules/%{kernel_release}/kernel/drivers/serial/serial_cs.ko*
1536 /lib/modules/%{kernel_release}/kernel/drivers/usb/host/sl811_cs.ko*
1537 %endif
1538
1539 %ifarch ppc-broken
1540 %if "%{_arch}" == "ppc"
1541 %files libs
1542 %defattr(644,root,root,755)
1543 %dir /boot/libs-%{kernel_release}
1544 /boot/libs-%{kernel_release}/common
1545 /boot/libs-%{kernel_release}/kernel
1546 /boot/libs-%{kernel_release}/lib
1547 /boot/libs-%{kernel_release}/of1275
1548 /boot/libs-%{kernel_release}/openfirmware
1549 /boot/libs-%{kernel_release}/simple
1550 %dir /boot/libs-%{kernel_release}/utils
1551 %attr(755,root,root) /boot/libs-%{kernel_release}/utils/*
1552 /boot/libs-%{kernel_release}/ld.script
1553 %endif
1554 %endif
1555
1556 %if %{have_sound} && %{without myown}
1557 %files sound-alsa
1558 %defattr(644,root,root,755)
1559 /lib/modules/%{kernel_release}/kernel/sound
1560 %exclude %dir /lib/modules/%{kernel_release}/kernel/sound
1561 %exclude /lib/modules/%{kernel_release}/kernel/sound/ac97_bus.ko*
1562 %exclude /lib/modules/%{kernel_release}/kernel/sound/sound*.ko*
1563 %if %{have_oss}
1564 %exclude /lib/modules/%{kernel_release}/kernel/sound/oss
1565 %endif
1566 %ifnarch sparc
1567 /lib/modules/%{kernel_release}/kernel/drivers/usb/gadget/g_midi.ko*
1568 /lib/modules/%{kernel_release}/kernel/drivers/media/video/cx88/cx88-alsa.ko*
1569 /lib/modules/%{kernel_release}/kernel/drivers/media/video/em28xx/em28xx-alsa.ko*
1570 /lib/modules/%{kernel_release}/kernel/drivers/media/video/saa7134/saa7134-alsa.ko*
1571 %endif
1572
1573 %if %{have_oss} && %{without myown}
1574 %files sound-oss
1575 %defattr(644,root,root,755)
1576 /lib/modules/%{kernel_release}/kernel/sound/oss
1577 %endif
1578 %endif
1579
1580 %files headers
1581 %defattr(644,root,root,755)
1582 %dir %{_kernelsrcdir}
1583 %{_kernelsrcdir}/include
1584 %{_kernelsrcdir}/config-dist
1585 %{_kernelsrcdir}/Module.symvers-dist
1586
1587 %files module-build -f aux_files
1588 %defattr(644,root,root,755)
1589 # symlinks pointint to kernelsrcdir
1590 %dir /lib/modules/%{kernel_release}
1591 /lib/modules/%{kernel_release}/build
1592 %{_kernelsrcdir}/localversion
1593 %ifarch ppc ppc64
1594 %{_kernelsrcdir}/arch/powerpc/lib/crtsavres.*
1595 %endif
1596 %{_kernelsrcdir}/arch/*/kernel/asm-offsets*
1597 %{_kernelsrcdir}/arch/*/kernel/sigframe*.h
1598 %{_kernelsrcdir}/drivers/lguest/lg.h
1599 %{_kernelsrcdir}/kernel/bounds.c
1600 %dir %{_kernelsrcdir}/scripts
1601 %dir %{_kernelsrcdir}/scripts/kconfig
1602 %{_kernelsrcdir}/scripts/Kbuild.include
1603 %{_kernelsrcdir}/scripts/Makefile*
1604 %{_kernelsrcdir}/scripts/basic
1605 %{_kernelsrcdir}/scripts/mkmakefile
1606 %{_kernelsrcdir}/scripts/mod
1607 %{_kernelsrcdir}/scripts/setlocalversion
1608 %{_kernelsrcdir}/scripts/*.c
1609 %{_kernelsrcdir}/scripts/*.sh
1610 %{_kernelsrcdir}/scripts/kconfig/*
1611 %{_kernelsrcdir}/scripts/mkcompile_h
1612
1613 %files doc
1614 %defattr(644,root,root,755)
1615 %dir %{_kernelsrcdir}
1616 %{_kernelsrcdir}/Documentation
1617
1618 %if %{with source}
1619 %files source -f aux_files_exc
1620 %defattr(644,root,root,755)
1621 %{_kernelsrcdir}/arch/*/[!Mk]*
1622 %{_kernelsrcdir}/arch/*/kernel/[!M]*
1623 %{_kernelsrcdir}/arch/ia64/kvm
1624 %{_kernelsrcdir}/arch/powerpc/kvm
1625 %ifarch ppc ppc64
1626 %exclude %{_kernelsrcdir}/arch/powerpc/lib/crtsavres.*
1627 %endif
1628 %{_kernelsrcdir}/arch/s390/kvm
1629 %{_kernelsrcdir}/arch/x86/kvm
1630 %exclude %{_kernelsrcdir}/arch/*/kernel/asm-offsets*
1631 %exclude %{_kernelsrcdir}/arch/*/kernel/sigframe*.h
1632 %exclude %{_kernelsrcdir}/drivers/lguest/lg.h
1633 %{_kernelsrcdir}/block
1634 %{_kernelsrcdir}/crypto
1635 %{_kernelsrcdir}/drivers
1636 %{_kernelsrcdir}/fs
1637 %if %{with grsecurity} && %{without rescuecd}
1638 %{_kernelsrcdir}/grsecurity
1639 %endif
1640 %{_kernelsrcdir}/init
1641 %{_kernelsrcdir}/ipc
1642 %{_kernelsrcdir}/kernel
1643 %exclude %{_kernelsrcdir}/kernel/bounds.c
1644 %{_kernelsrcdir}/lib
1645 %{_kernelsrcdir}/mm
1646 %{_kernelsrcdir}/net
1647 %{_kernelsrcdir}/virt
1648 %{_kernelsrcdir}/scripts/*
1649 %exclude %{_kernelsrcdir}/scripts/Kbuild.include
1650 %exclude %{_kernelsrcdir}/scripts/Makefile*
1651 %exclude %{_kernelsrcdir}/scripts/basic
1652 %exclude %{_kernelsrcdir}/scripts/kconfig
1653 %exclude %{_kernelsrcdir}/scripts/mkmakefile
1654 %exclude %{_kernelsrcdir}/scripts/mod
1655 %exclude %{_kernelsrcdir}/scripts/setlocalversion
1656 %exclude %{_kernelsrcdir}/scripts/*.c
1657 %exclude %{_kernelsrcdir}/scripts/*.sh
1658 %{_kernelsrcdir}/sound
1659 %{_kernelsrcdir}/security
1660 %{_kernelsrcdir}/usr
1661 %{_kernelsrcdir}/COPYING
1662 %{_kernelsrcdir}/CREDITS
1663 %{_kernelsrcdir}/MAINTAINERS
1664 %{_kernelsrcdir}/README
1665 %{_kernelsrcdir}/REPORTING-BUGS
1666 %{_kernelsrcdir}/.mailmap
1667 %endif
This page took 0.134348 seconds and 3 git commands to generate.