1 Summary: The Linux kernel (the core of the Linux operating system)
3 # What parts do we want to build? We must build at least one kernel.
4 # These are the kernels that are built IF the architecture allows it.
12 # Versions of various parts
15 # Polite request for people who spin their own kernel rpms:
16 # please modify the "release" field in a way that identifies
17 # that the kernel isn't the stock distribution kernel, for example by
18 # adding some text to the end of the version number.
21 %define kversion 2.6.%{sublevel}
22 %define rpmversion 2.6.%{sublevel}
23 %define release 1.2187_FC5.0%{?pldistro:.%{pldistro}}%{?date:.%{date}}
25 %define make_target bzImage
27 %define KVERREL %{PACKAGE_VERSION}-%{PACKAGE_RELEASE}
29 # Override generic defaults with per-arch defaults
31 %define image_install_path boot
34 # Three sets of minimum package version requirements in the form of Conflicts:
35 # to versions below the minimum
39 # First the general kernel 2.6 required versions as per
40 # Documentation/Changes
42 %define kernel_dot_org_conflicts ppp <= 2.3.15, pcmcia-cs <= 3.1.20, isdn4k-utils <= 3.0, mount < 2.10r-5, nfs-utils < 1.0.3, e2fsprogs < 1.29, util-linux < 2.10, jfsutils < 1.0.14, reiserfsprogs < 3.6.3, xfsprogs < 2.1.0, procps < 2.0.9, oprofile < 0.5.3
45 # Then a series of requirements that are distribution specific, either
46 # because we add patches for something, or the older versions have
47 # problems with the newer kernel or lack certain things that make
48 # integration in the distro harder than needed.
50 %define package_conflicts cipe < 1.4.5, kudzu <= 0.92, initscripts < 7.23, dev < 3.2-7, iptables < 1.2.5-3, bcm5820 < 1.81, nvidia-rh72 <= 1.0 selinux-policy-targeted < 1.23.16-1
53 # Several packages had bugs in them that became obvious when the NPTL
54 # threading code got integrated.
56 %define nptl_conflicts SysVinit < 2.84-13, pam < 0.75-48, vixie-cron < 3.0.1-73, privoxy < 3.0.0-8, spamassassin < 2.44-4.8.x, cups < 1.1.17-13
59 # The ld.so.conf.d file we install uses syntax older ldconfig's don't grok.
63 # %define xen_conflicts glibc < 2.3.5-1
66 # Packages that need to be installed before the kernel is, because the %post
69 %define kernel_prereq fileutils, module-init-tools, initscripts >= 5.83, mkinitrd >= 3.5.5
72 Packager: PlanetLab Central <support@planet-lab.org>
73 Distribution: PlanetLab 3.0
74 URL: http://cvs.planet-lab.org/cvs/linux-2.6
77 Group: System Environment/Kernel
79 Version: %{rpmversion}
82 Provides: kernel = %{version}
83 Provides: kernel-drm = 4.3.0
84 Provides: kernel-%{_target_cpu} = %{rpmversion}-%{release}
85 Prereq: %{kernel_prereq}
86 Conflicts: %{kernel_dot_org_conflicts}
87 Conflicts: %{package_conflicts}
88 Conflicts: %{nptl_conflicts}
89 # We can't let RPM do the dependencies automatic because it'll then pick up
90 # a correct but undesirable perl dependency from the module headers which
91 # isn't required for the kernel proper to function
95 # List the packages used during the kernel build
97 BuildPreReq: module-init-tools, patch >= 2.5.4, bash >= 2.03, sh-utils, tar
98 BuildPreReq: bzip2, findutils, gzip, m4, perl, make >= 3.78, gnupg, diffutils
99 BuildRequires: gcc >= 3.3.3, binutils >= 2.12, redhat-rpm-config
100 BuildConflicts: rhbuildsys(DiskFree) < 500Mb
103 Source0: ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-%{kversion}.tar.bz2
105 BuildRoot: %{_tmppath}/kernel-%{KVERREL}-root
108 The kernel package contains the Linux kernel (vmlinuz), the core of any
109 Linux operating system. The kernel handles the basic functions
110 of the operating system: memory allocation, process allocation, device
111 input and output, etc.
114 Summary: Development package for building kernel modules to match the kernel.
115 Group: System Environment/Kernel
117 Provides: kernel-devel-%{_target_cpu} = %{rpmversion}-%{release}
118 Prereq: /usr/bin/find
121 This package provides kernel headers and makefiles sufficient to build modules
122 against the kernel package.
126 Summary: Various documentation bits found in the kernel source.
130 This package contains documentation files from the kernel
131 source. Various bits of information about the Linux kernel and the
132 device drivers shipped with it are documented in these files.
134 You'll want to install this package if you need a reference to the
135 options that can be passed to Linux kernel modules at load time.
138 Summary: The Linux kernel compiled for SMP machines.
140 Group: System Environment/Kernel
141 Provides: kernel = %{version}
142 Provides: kernel-drm = 4.3.0
143 Provides: kernel-%{_target_cpu} = %{rpmversion}-%{release}smp
144 Prereq: %{kernel_prereq}
145 Conflicts: %{kernel_dot_org_conflicts}
146 Conflicts: %{package_conflicts}
147 Conflicts: %{nptl_conflicts}
148 # upto and including kernel 2.4.9 rpms, the 4Gb+ kernel was called kernel-enterprise
149 # now that the smp kernel offers this capability, obsolete the old kernel
150 Obsoletes: kernel-enterprise < 2.4.10
151 # We can't let RPM do the dependencies automatic because it'll then pick up
152 # a correct but undesirable perl dependency from the module headers which
153 # isn't required for the kernel proper to function
157 This package includes a SMP version of the Linux kernel. It is
158 required only on machines with two or more CPUs as well as machines with
159 hyperthreading technology.
161 Install the kernel-smp package if your machine uses two or more CPUs.
164 Summary: Development package for building kernel modules to match the SMP kernel.
165 Group: System Environment/Kernel
166 Provides: kernel-smp-devel-%{_target_cpu} = %{rpmversion}-%{release}
167 Provides: kernel-devel-%{_target_cpu} = %{rpmversion}-%{release}smp
168 Provides: kernel-devel = %{rpmversion}-%{release}smp
170 Prereq: /usr/bin/find
172 %description smp-devel
173 This package provides kernel headers and makefiles sufficient to build modules
174 against the SMP kernel package.
177 Summary: The Linux kernel compiled for unprivileged Xen guest VMs
179 Group: System Environment/Kernel
180 Provides: kernel = %{version}
181 Provides: kernel-%{_target_cpu} = %{rpmversion}-%{release}xenU
182 Prereq: %{kernel_prereq}
183 Conflicts: %{kernel_dot_org_conflicts}
184 Conflicts: %{package_conflicts}
185 Conflicts: %{nptl_conflicts}
188 # Conflicts: %{xen_conflicts}
190 # We can't let RPM do the dependencies automatic because it'll then pick up
191 # a correct but undesirable perl dependency from the module headers which
192 # isn't required for the kernel proper to function
196 This package includes a version of the Linux kernel which
197 runs in Xen unprivileged guest VMs. This should be installed
198 both inside the unprivileged guest (for the modules) and in
202 Summary: Development package for building kernel modules to match the kernel.
203 Group: System Environment/Kernel
205 Provides: kernel-xenU-devel-%{_target_cpu} = %{rpmversion}-%{release}
206 Provides: kernel-devel-%{_target_cpu} = %{rpmversion}-%{release}xenU
207 Provides: kernel-devel = %{rpmversion}-%{release}xenU
208 Prereq: /usr/sbin/hardlink, /usr/bin/find
210 %description xenU-devel
211 This package provides kernel headers and makefiles sufficient to build modules
212 against the kernel package.
215 Summary: The Linux kernel compiled for use in user mode (User Mode Linux).
217 Group: System Environment/Kernel
220 This package includes a user mode version of the Linux kernel.
223 Summary: Development package for building kernel modules to match the UML kernel.
224 Group: System Environment/Kernel
225 Provides: kernel-uml-devel-%{_target_cpu} = %{rpmversion}-%{release}
226 Provides: kernel-devel-%{_target_cpu} = %{rpmversion}-%{release}smp
227 Provides: kernel-devel = %{rpmversion}-%{release}smp
229 Prereq: /usr/sbin/hardlink, /usr/bin/find
231 %description uml-devel
232 This package provides kernel headers and makefiles sufficient to build modules
233 against the User Mode Linux kernel package.
236 Summary: The Linux kernel modules compiled for use in user mode (User Mode Linux).
238 Group: System Environment/Kernel
240 %description uml-modules
241 This package includes a user mode version of the Linux kernel modules.
244 Summary: A placeholder RPM that provides kernel and kernel-drm
246 Group: System Environment/Kernel
247 Provides: kernel = %{version}
248 Provides: kernel-drm = 4.3.0
249 Provides: kernel-%{_target_cpu} = %{rpmversion}-%{release}
252 VServers do not require and cannot use kernels, but some RPMs have
253 implicit or explicit dependencies on the "kernel" package
254 (e.g. tcpdump). This package installs no files but provides the
255 necessary dependencies to make rpm and yum happy.
259 # First we unpack the kernel tarball.
260 # If this isn't the first make prep, we use links to the existing clean tarball
261 # which speeds things up quite a bit.
262 if [ ! -d kernel-%{kversion}/vanilla ]; then
263 # Ok, first time we do a make prep.
264 rm -f pax_global_header
265 %setup -q -n %{name}-%{version} -c
266 mv linux-%{kversion} vanilla
268 # We already have a vanilla dir.
269 cd kernel-%{kversion}
274 # make sure the kernel has the sublevel we know it has. This looks weird
275 # but for -pre and -rc versions we need it since we only want to use
276 # the higher version when the final kernel is released.
277 perl -p -i -e "s/^SUBLEVEL.*/SUBLEVEL = %{sublevel}/" Makefile
278 perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -prep/" Makefile
280 # get rid of unwanted files resulting from patch fuzz
281 find . \( -name "*.orig" -o -name "*~" \) -exec rm -f {} \; >/dev/null
294 # create a clean copy in BUILD/ (for backward compatibility with
295 # other RPMs that bootstrap off of the kernel build)
297 rm -rf linux-%{kversion}$Flavour
298 cp -rl kernel-%{kversion}/vanilla linux-%{_target_cpu}-%{kversion}$Flavour
299 cd linux-%{_target_cpu}-%{kversion}$Flavour
301 # Pick the right config file for the kernel we're building
302 if [ -n "$Flavour" ] ; then
303 Config=kernel-%{kversion}-%{_target_cpu}-$Flavour-planetlab.config
304 DevelDir=/usr/src/kernels/%{KVERREL}-$Flavour-%{_target_cpu}
305 DevelLink=/usr/src/kernels/%{KVERREL}$Flavour-%{_target_cpu}
307 Config=kernel-%{kversion}-%{_target_cpu}-planetlab.config
308 DevelDir=/usr/src/kernels/%{KVERREL}-%{_target_cpu}
312 KernelVer=%{version}-%{release}$Flavour
313 echo BUILDING A KERNEL FOR $Flavour %{_target_cpu}...
315 # make sure EXTRAVERSION says what we want it to say
316 perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -%{release}$Flavour/" Makefile
318 # and now to start the build process
321 cp configs/$Config .config
323 #Arch=`head -1 .config | cut -b 3-`
324 echo USING ARCH=$Arch
326 make -s ARCH=$Arch nonint_oldconfig > /dev/null
327 make -s ARCH=$Arch %{?_smp_mflags} $MakeTarget
328 make -s ARCH=$Arch %{?_smp_mflags} modules || exit 1
330 # Start installing the results
332 %if "%{_enable_debug_packages}" == "1"
333 mkdir -p $RPM_BUILD_ROOT/usr/lib/debug/boot
335 mkdir -p $RPM_BUILD_ROOT/%{image_install_path}
336 install -m 644 .config $RPM_BUILD_ROOT/boot/config-$KernelVer
337 install -m 644 System.map $RPM_BUILD_ROOT/boot/System.map-$KernelVer
338 if [ -f arch/$Arch/boot/bzImage ]; then
339 cp arch/$Arch/boot/bzImage $RPM_BUILD_ROOT/%{image_install_path}/vmlinuz-$KernelVer
341 if [ -f arch/$Arch/boot/zImage.stub ]; then
342 cp arch/$Arch/boot/zImage.stub $RPM_BUILD_ROOT/%{image_install_path}/zImage.stub-$KernelVer || :
344 if [ "$Flavour" = "uml" ] ; then
345 install -D -m 755 linux $RPM_BUILD_ROOT/%{_bindir}/linux
348 mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer
349 make -s ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_install KERNELRELEASE=$KernelVer
351 # And save the headers/makefiles etc for building modules against
353 # This all looks scary, but the end result is supposed to be:
354 # * all arch relevant include/ files
355 # * all Makefile/Kconfig files
356 # * all script/ files
358 rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
359 rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/source
360 mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
361 (cd $RPM_BUILD_ROOT/lib/modules/$KernelVer ; ln -s build source)
362 # dirs for additional modules per module-init-tools, kbuild/modules.txt
363 mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/extra
364 mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/updates
365 # first copy everything
366 cp --parents `find -type f -name "Makefile*" -o -name "Kconfig*"` $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
367 cp Module.symvers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
368 if [ "$Flavour" = "uml" ] ; then
369 cp --parents -a `find arch/um -name include` $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
371 # then drop all but the needed Makefiles/Kconfig files
372 rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/Documentation
373 rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts
374 rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
375 cp arch/%{_arch}/kernel/asm-offsets.s $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch}/kernel || :
376 cp .config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
377 cp -a scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
378 if [ -d arch/%{_arch}/scripts ]; then
379 cp -a arch/%{_arch}/scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch} || :
381 if [ -f arch/%{_arch}/*lds ]; then
382 cp -a arch/%{_arch}/*lds $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch}/ || :
384 rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*.o
385 rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*/*.o
386 mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
388 cp -a acpi config keys linux math-emu media mtd net pcmcia rdma rxrpc scsi sound video asm asm-generic $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
389 cp -a `readlink asm` $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
390 if [ "$Arch" = "x86_64" ]; then
391 cp -a asm-i386 $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
394 if [ "$Flavour" = "xenU" ]; then
395 cp -a xen $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
396 cp -a asm-i386 $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
400 if [ "$Flavour" = "uml" ] ; then
401 cp -a `readlink -f asm/arch` $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
404 # While arch/powerpc/include/asm is still a symlink to the old
405 # include/asm-ppc{64,} directory, include that in kernel-devel too.
406 if [ "$Arch" = "powerpc" -a -r ../arch/powerpc/include/asm ]; then
407 cp -a `readlink ../arch/powerpc/include/asm` $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
408 mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/$Arch/include
409 pushd $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/$Arch/include
410 ln -sf ../../../include/asm-ppc* asm
414 # Make sure the Makefile and version.h have a matching timestamp so that
415 # external modules can be built
416 touch -r $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/Makefile $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include/linux/version.h
417 touch -r $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/.config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include/linux/autoconf.h
421 # save the vmlinux file for kernel debugging into the kernel-debuginfo rpm
423 %if "%{_enable_debug_packages}" == "1"
424 mkdir -p $RPM_BUILD_ROOT/usr/lib/debug/lib/modules/$KernelVer
425 cp vmlinux $RPM_BUILD_ROOT/usr/lib/debug/lib/modules/$KernelVer
428 if [ -f vmlinuz ]; then
429 cp vmlinuz $RPM_BUILD_ROOT/%{image_install_path}/vmlinuz-$KernelVer
433 find $RPM_BUILD_ROOT/lib/modules/$KernelVer -name "*.ko" -type f >modnames
435 # mark modules executable so that strip-to-file can strip them
436 cat modnames | xargs chmod u+x
438 # remove files that will be auto generated by depmod at rpm -i time
439 rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.*
441 # Move the devel headers out of the root file system
442 mkdir -p $RPM_BUILD_ROOT/usr/src/kernels
443 mv $RPM_BUILD_ROOT/lib/modules/$KernelVer/build $RPM_BUILD_ROOT/$DevelDir
444 ln -sf ../../..$DevelDir $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
445 [ -z "$DevelLink" ] || ln -sf `basename $DevelDir` $RPM_BUILD_ROOT/$DevelLink
452 # prepare directories
453 rm -rf $RPM_BUILD_ROOT
454 mkdir -p $RPM_BUILD_ROOT/boot
456 %if "%{_target_cpu}" == "x86_64"
457 %define kernel_arch %{_target_cpu}
459 %define kernel_arch i386
463 BuildKernel %make_target %kernel_arch
466 %if %{buildsmp} && "%{_target_cpu}" != "i586"
467 BuildKernel %make_target %kernel_arch smp
470 %if %{builduml} && "%{_target_cpu}" != "i586"
471 BuildKernel linux um uml
474 %if %{buildxen} && "%{_target_cpu}" != "i586"
475 BuildKernel vmlinuz %kernel_arch xenU
486 %if %{buildxen} && "%{_target_cpu}" == "i686"
487 mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
488 rm -f $RPM_BUILD_ROOT/etc/ld.so.conf.d/kernelcap-%{KVERREL}.conf
489 cat > $RPM_BUILD_ROOT/etc/ld.so.conf.d/kernelcap-%{KVERREL}.conf <<\EOF
490 # This directive teaches ldconfig to search in nosegneg subdirectories
491 # and cache the DSOs there with extra bit 0 set in their hwcap match
492 # fields. In Xen guest kernels, the vDSO tells the dynamic linker to
493 # search in nosegneg subdirectories and to match this extra hwcap bit
494 # in the ld.so.cache file.
497 chmod 444 $RPM_BUILD_ROOT/etc/ld.so.conf.d/kernelcap-%{KVERREL}.conf
501 mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kernel-doc-%{kversion}/Documentation
503 # sometimes non-world-readable files sneak into the kernel source tree
505 # copy the source over
506 tar cf - Documentation | tar xf - -C $RPM_BUILD_ROOT/usr/share/doc/kernel-doc-%{kversion}
514 rm -rf $RPM_BUILD_ROOT
520 # load the loop module for upgrades...in case the old modules get removed we have
521 # loopback in the kernel so that mkinitrd will work.
523 /sbin/modprobe loop 2> /dev/null > /dev/null || :
527 /sbin/modprobe loop 2> /dev/null > /dev/null || :
531 if [ `uname -i` == "x86_64" ]; then
532 if [ -f /etc/sysconfig/kernel ]; then
533 /bin/sed -i -e 's/^DEFAULTKERNEL=kernel-smp$/DEFAULTKERNEL=kernel/' /etc/sysconfig/kernel
537 # trick mkinitrd in case the current environment does not have device mapper
538 rootdev=$(awk '/^[ \t]*[^#]/ { if ($2 == "/") { print $1; }}' /etc/fstab)
539 if echo $rootdev |grep -q /dev/mapper 2>/dev/null ; then
540 if [ ! -f $rootdev ]; then
542 mkdir -p $(dirname $rootdev)
547 [ ! -x /usr/sbin/module_upgrade ] || /usr/sbin/module_upgrade %{rpmversion}-%{release}
548 #/sbin/new-kernel-pkg --package kernel --mkinitrd --depmod --install %{KVERREL}
549 # Older modutils do not support --package option
550 /sbin/new-kernel-pkg --mkinitrd --depmod --install %{KVERREL}
553 if [ -n "$fake_root_lvm" ]; then
557 # make some useful links
558 pushd /boot > /dev/null ; {
559 ln -sf config-%{KVERREL} config
560 ln -sf initrd-%{KVERREL}.img initrd-boot
561 ln -sf vmlinuz-%{KVERREL} kernel-boot
566 mkdir -p /etc/planetlab
567 touch /etc/planetlab/update-reboot
570 [ -f /etc/sysconfig/kernel ] && . /etc/sysconfig/kernel
571 if [ "$HARDLINK" != "no" -a -x /usr/sbin/hardlink ] ; then
572 pushd /usr/src/kernels/%{KVERREL}-%{_target_cpu} > /dev/null
573 /usr/bin/find . -type f | while read f; do hardlink -c /usr/src/kernels/*FC*/$f $f ; done
578 # trick mkinitrd in case the current environment does not have device mapper
579 rootdev=$(awk '/^[ \t]*[^#]/ { if ($2 == "/") { print $1; }}' /etc/fstab)
580 if echo $rootdev |grep -q /dev/mapper 2>/dev/null ; then
581 if [ ! -f $rootdev ]; then
583 mkdir -p $(dirname $rootdev)
588 [ ! -x /usr/sbin/module_upgrade ] || /usr/sbin/module_upgrade %{rpmversion}-%{release}smp
589 #/sbin/new-kernel-pkg --package kernel-smp --mkinitrd --depmod --install %{KVERREL}smp
590 # Older modutils do not support --package option
591 /sbin/new-kernel-pkg --mkinitrd --depmod --install %{KVERREL}smp
594 if [ -n "$fake_root_lvm" ]; then
598 # make some useful links
599 pushd /boot > /dev/null ; {
600 ln -sf config-%{KVERREL}smp configsmp
601 ln -sf initrd-%{KVERREL}smp.img initrd-bootsmp
602 ln -sf vmlinuz-%{KVERREL}smp kernel-bootsmp
607 mkdir -p /etc/planetlab
608 touch /etc/planetlab/update-reboot
611 [ -f /etc/sysconfig/kernel ] && . /etc/sysconfig/kernel
612 if [ "$HARDLINK" != "no" -a -x /usr/sbin/hardlink ] ; then
613 pushd /usr/src/kernels/%{KVERREL}-smp-%{_target_cpu} > /dev/null
614 /usr/bin/find . -type f | while read f; do hardlink -c /usr/src/kernels/*FC*/$f $f ; done
619 [ ! -x /usr/sbin/module_upgrade ] || /usr/sbin/module_upgrade
620 [ ! -x /sbin/ldconfig ] || /sbin/ldconfig -X
623 [ -f /etc/sysconfig/kernel ] && . /etc/sysconfig/kernel
624 if [ "$HARDLINK" != "no" -a -x /usr/sbin/hardlink ] ; then
625 pushd /usr/src/kernels/%{KVERREL}-xenU-%{_target_cpu} > /dev/null
626 /usr/bin/find . -type f | while read f; do hardlink -c /usr/src/kernels/*FC*/$f $f ; done
631 depmod -ae %{KVERREL}uml
634 /sbin/modprobe loop 2> /dev/null > /dev/null || :
635 /sbin/new-kernel-pkg --rminitrd --rmmoddep --remove %{KVERREL}
638 /sbin/modprobe loop 2> /dev/null > /dev/null || :
639 /sbin/new-kernel-pkg --rminitrd --rmmoddep --remove %{KVERREL}smp
642 /sbin/modprobe loop 2> /dev/null > /dev/null || :
643 /sbin/new-kernel-pkg --rmmoddep --remove %{KVERREL}xenU
646 rm -f /lib/modules/%{KVERREL}uml/modules.*
655 %defattr(-,root,root)
656 /%{image_install_path}/vmlinuz-%{KVERREL}
657 /boot/System.map-%{KVERREL}
658 /boot/config-%{KVERREL}
659 %dir /lib/modules/%{KVERREL}
660 /lib/modules/%{KVERREL}/kernel
661 /lib/modules/%{KVERREL}/build
662 /lib/modules/%{KVERREL}/source
663 /lib/modules/%{KVERREL}/extra
664 /lib/modules/%{KVERREL}/updates
667 %defattr(-,root,root)
668 %verify(not mtime) /usr/src/kernels/%{KVERREL}-%{_target_cpu}
671 %if %{buildsmp} && "%{_target_cpu}" == "i686"
673 %defattr(-,root,root)
674 /%{image_install_path}/vmlinuz-%{KVERREL}smp
675 /boot/System.map-%{KVERREL}smp
676 /boot/config-%{KVERREL}smp
677 %dir /lib/modules/%{KVERREL}smp
678 /lib/modules/%{KVERREL}smp/kernel
679 /lib/modules/%{KVERREL}smp/build
680 /lib/modules/%{KVERREL}smp/source
681 /lib/modules/%{KVERREL}smp/extra
682 /lib/modules/%{KVERREL}smp/updates
685 %defattr(-,root,root)
686 %verify(not mtime) /usr/src/kernels/%{KVERREL}-smp-%{_target_cpu}
687 /usr/src/kernels/%{KVERREL}smp-%{_target_cpu}
690 %if %{builduml} && "%{_target_cpu}" == "i686"
692 %defattr(-,root,root)
696 %defattr(-,root,root)
697 %verify(not mtime) /usr/src/kernels/%{KVERREL}-uml-%{_target_cpu}
698 /usr/src/kernels/%{KVERREL}uml-%{_target_cpu}
701 %defattr(-,root,root)
702 /boot/System.map-%{KVERREL}uml
703 /boot/config-%{KVERREL}uml
704 %dir /lib/modules/%{KVERREL}uml
705 /lib/modules/%{KVERREL}uml/kernel
706 /lib/modules/%{KVERREL}uml/build
707 /lib/modules/%{KVERREL}uml/source
708 /lib/modules/%{KVERREL}uml/extra
709 /lib/modules/%{KVERREL}uml/updates
712 %if %{buildxen} && "%{_target_cpu}" == "i686"
714 %defattr(-,root,root)
715 /%{image_install_path}/vmlinuz-%{KVERREL}xenU
716 /boot/System.map-%{KVERREL}xenU
717 /boot/config-%{KVERREL}xenU
718 %dir /lib/modules/%{KVERREL}xenU
719 /lib/modules/%{KVERREL}xenU/kernel
720 /lib/modules/%{KVERREL}xenU/build
721 /lib/modules/%{KVERREL}xenU/source
722 /lib/modules/%{KVERREL}xenU/extra
723 /lib/modules/%{KVERREL}xenU/updates
724 /etc/ld.so.conf.d/kernelcap-%{KVERREL}.conf
727 %defattr(-,root,root)
728 %verify(not mtime) /usr/src/kernels/%{KVERREL}-xenU-%{_target_cpu}
729 /usr/src/kernels/%{KVERREL}xenU-%{_target_cpu}
733 %defattr(-,root,root)
736 # only some architecture builds need kernel-doc
740 %defattr(-,root,root)
741 %{_datadir}/doc/kernel-doc-%{kversion}/Documentation/*
742 %dir %{_datadir}/doc/kernel-doc-%{kversion}/Documentation
743 %dir %{_datadir}/doc/kernel-doc-%{kversion}
747 * Tue Jul 11 2006 Dave Jones <davej@redhat.com> [2.6.17-1.2142_FC4]
749 - Disable split pagetable lock.
751 * Wed Jul 5 2006 Dave Jones <davej@redhat.com>
752 - Get rid of stack backtrace on panic, which in most
753 cases actually caused a loss of info instead of a gain.
755 * Fri Jun 30 2006 Dave Jones <davej@redhat.com> [2.6.17-1.2141_FC4]
758 * Fri Jun 30 2006 Dave Jones <davej@redhat.com> [2.6.17-1.2140_FC4]
760 - Fix up the alsa list_add bug.
762 * Mon Jun 26 2006 Dave Jones <davej@redhat.com>
763 - Fix up various stupidities incurred by the last big rebase.
764 - Reenable SMP x86-64 builds.
766 - Enable PCI fake hotplug driver.
767 - Enable gameport/joystick on i586 builds. (#196581)
769 * Sat Jun 24 2006 Dave Jones <davej@redhat.com>
770 - Enable profiling for 586 kernels.
772 * Fri Jun 23 2006 Dave Jones <davej@redhat.com> [2.6.17-1.2139_FC4]
773 - Rebuild with slab debug off.
775 * Tue Jun 20 2006 Dave Jones <davej@redhat.com> [2.6.17-1.2138_FC4]
778 * Mon Jun 5 2006 Dave Jones <davej@redhat.com> [2.6.16-1.2115_FC4]
781 * Tue May 30 2006 Dave Jones <davej@redhat.com> [2.6.16-1.2114_FC4]
784 * Mon May 29 2006 Dave Jones <davej@redhat.com> [2.6.16-1.2113_FC4]
785 - Improved list_head debugging.
787 * Tue May 23 2006 Dave Jones <davej@redhat.com> [2.6.16-1.2112_FC4]
790 * Sat May 20 2006 Dave Jones <davej@redhat.com> [2.6.16-1.2111_FC4]
793 * Wed May 10 2006 Dave Jones <davej@redhat.com> [2.6.16-1.2110_FC4]
796 * Tue May 9 2006 Dave Jones <davej@redhat.com> [2.6.16-1.2109_FC4]
798 - make 16C950 UARTs work (again). (#126403)
799 - Fix exec-shield default, which should fix a few programs that
802 * Thu May 4 2006 Dave Jones <davej@redhat.com> [2.6.16-1.2108_FC4]
805 * Tue May 2 2006 Dave Jones <davej@redhat.com> [2.6.16-1.2107_FC4]
808 * Mon May 1 2006 Dave Jones <davej@redhat.com>
811 * Tue Apr 25 2006 Dave Jones <davej@redhat.com>
812 - Fix up SCSI errors with mymusix usb mp3 player (#186187)
814 * Mon Apr 24 2006 Dave Jones <davej@redhat.com>
817 * Wed Apr 19 2006 Dave Jones <davej@redhat.com>
818 - Enable PCI MSI support.
820 * Tue Apr 18 2006 Dave Jones <davej@redhat.com> [2.6.16-1.2096_FC4]
823 * Tue Apr 18 2006 Dave Jones <davej@redhat.com> [2.6.16-1.2093_FC4]
826 * Mon Apr 17 2006 Dave Jones <davej@redhat.com> [2.6.16-1.2092_FC4]
829 * Sun Apr 16 2006 Dave Jones <davej@redhat.com>
832 * Fri Apr 7 2006 Dave Jones <davej@redhat.com>
835 * Tue Apr 4 2006 Dave Jones <davej@redhat.com>
836 - Reenable non-standard serial ports. (#187466)
837 - Reenable snd-es18xx for x86-32 (#187733)
839 * Thu Mar 30 2006 Dave Jones <davej@redhat.com>
840 - ship the .kernelrelease file in -devel too.
841 - Disable EDAC debug.
843 * Tue Mar 26 2006 Dave Jones <davej@redhat.com> [2.6.16-1.2069_FC4]
846 * Mon Mar 25 2006 Dave Jones <davej@redhat.com>
847 - Include patches posted for review for inclusion in 2.6.16.1
848 - Updated new audit msg types.
849 - Reenable HDLC driver (#186257)
850 - Make acpi-cpufreq 'sticky'
851 - Fix broken x86-64 32bit vDSO (#186924)
853 * Tue Mar 21 2006 Dave Jones <davej@redhat.com>
854 - Improve spinlock scalability on big machines.
856 * Mon Mar 20 2006 Dave Jones <davej@redhat.com>
857 - Sync with FC5's 2.6.16 kernel.
858 - Update Tux & Exec-shield to latest.