/[packages]/cauldron/kernel-tmb/pristine/SPECS/kernel-tmb.spec
ViewVC logotype

Diff of /cauldron/kernel-tmb/pristine/SPECS/kernel-tmb.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 86245 by tmb, Sat Apr 16 10:56:56 2011 UTC revision 177136 by tmb, Mon Dec 5 23:35:56 2011 UTC
# Line 1  Line 1 
1  #  #
2  # *tmb* series kernels now use kernel.org versioning  # *tmb* series kernels now use kernel.org versioning
3  #  #
4  %define kernelversion   2  %define kernelversion   3
5  %define patchlevel      6  %define patchlevel      1
6  %define sublevel        38  # sublevel is now used for -stable patches
7    %define sublevel        4
8    
9    # Package release
10    %define mgarel          3
11    
12  # kernel Makefile extraversion is substituted by  # kernel Makefile extraversion is substituted by
13  # kpatch/kgit/kstable wich are either 0 (empty), rc (kpatch),  # kpatch/kgit wich are either 0 (empty), rc (kpatch), git (kgit)
 # git (kgit, only the number after "git"), or stable release (kstable)  
14  %define kpatch          0  %define kpatch          0
15    # kernel.org -gitX patch (only the number after "git")
16  %define kgit            0  %define kgit            0
 %define kstable         3  
   
 # this is the releaseversion  
 %define kbuild          1  
17    
18  %define ktag            tmb  # Patch tarball tag
19  %define kname           kernel-%{ktag}  %define ktag            tmb
20    # kernel base name (also name of srpm)
21    %define kname           kernel-%{ktag}
22    
23  %define rpmtag          %distsuffix  # release defines
24    %define rpmtag          %{distsuffix}%{mgaver}
25  %if %kpatch  %if %kpatch
26  %if %kgit  %if %kgit
27  %define rpmrel          %mkrel 0.%{kpatch}.%{kgit}.%{kbuild}  %define rpmrel          %mkrel 0.%{kpatch}.%{kgit}.%{mgarel}
28  %else  %else
29  %define rpmrel          %mkrel 0.%{kpatch}.%{kbuild}  %define rpmrel          %mkrel 0.%{kpatch}.%{mgarel}
30  %endif  %endif
31  %else  %else
32  %define rpmrel          %mkrel %{kbuild}  %define rpmrel          %mkrel %{mgarel}
33  %endif  %endif
34    
35  # theese two never change, they are used to fool rpm/urpmi/smart  # fakerel and fakever never change, they are used to fool
36    # rpm/urpmi/smart
37  %define fakever         1  %define fakever         1
38  %define fakerel         %mkrel 1  %define fakerel         %mkrel 1
39    
40    # version defines
41    %define kversion        %{kernelversion}.%{patchlevel}.%{sublevel}
42    %define kverrel         %{kversion}-%{rpmrel}
43    
44  # When we are using a pre/rc patch, the tarball is a sublevel -1  # When we are using a pre/rc patch, the tarball is a sublevel -1
45  %if %kpatch  %if %kpatch
46  %define kversion        %{kernelversion}.%{patchlevel}.%{sublevel}  %if %sublevel
47  %define tar_ver         %{kernelversion}.%{patchlevel}.%(expr %{sublevel} - 1)  %define tar_ver         %{kernelversion}.%{patchlevel}
 %define patch_ver       %{kversion}-%{kpatch}-%{ktag}%{kbuild}  
48  %else  %else
49  %if %kstable  %define tar_ver         %{kernelversion}.%(expr %{patchlevel} - 1)
 %define kversion        %{kernelversion}.%{patchlevel}.%{sublevel}.%{kstable}  
 %define tar_ver         %{kernelversion}.%{patchlevel}.%{sublevel}  
 %else  
 %define kversion        %{kernelversion}.%{patchlevel}.%{sublevel}  
 %define tar_ver         %{kversion}  
50  %endif  %endif
51  %define patch_ver       %{kversion}-%{ktag}%{kbuild}  %define patch_ver       %{kversion}-%{kpatch}-%{ktag}%{mgarel}
52    %else
53    %define tar_ver         %{kernelversion}.%{patchlevel}
54    %define patch_ver       %{kversion}-%{ktag}%{mgarel}
55  %endif  %endif
 %define kverrel         %{kversion}-%{rpmrel}  
56    
57  # used for not making too long names for rpms or search paths  # Used for not making too long names for rpms or search paths
58  %if %kpatch  %if %kpatch
59  %if %kgit  %if %kgit
60  %define buildrpmrel     0.%{kpatch}.%{kgit}.%{kbuild}%{rpmtag}  %define buildrpmrel     0.%{kpatch}.%{kgit}.%{mgarel}%{rpmtag}
61  %else  %else
62  %define buildrpmrel     0.%{kpatch}.%{kbuild}%{rpmtag}  %define buildrpmrel     0.%{kpatch}.%{mgarel}%{rpmtag}
63  %endif  %endif
64  %else  %else
65  %define buildrpmrel     %{kbuild}%{rpmtag}  %define buildrpmrel     %{mgarel}%{rpmtag}
66  %endif  %endif
67  %define buildrel        %{kversion}-%{buildrpmrel}  %define buildrel        %{kversion}-%{buildrpmrel}
68    
69  # having different top level names for packges means that you have to remove them by hard :(  # having different top level names for packges means that you have to remove them by hard :(
70  %define top_dir_name    %{kname}-%{_arch}  %define top_dir_name    %{kname}-%{_arch}
71    
72  %define build_dir       ${RPM_BUILD_DIR}/%{top_dir_name}  %define build_dir       ${RPM_BUILD_DIR}/%{top_dir_name}
73  %define src_dir         %{build_dir}/linux-%{tar_ver}  %define src_dir         %{build_dir}/linux-%{tar_ver}
74    
75  # disable useless debug rpms...  # disable useless debug rpms...
76  %define _enable_debug_packages  %{nil}  %define _enable_debug_packages  %{nil}
77  %define debug_package           %{nil}  %define debug_package           %{nil}
78    
79  # Build defines  # Build defines
80  %define build_doc               0  %define build_doc               0
81  %define build_source            1  %define build_source            1
82  %define build_devel             1  %define build_devel             1
83  %define build_debug             0  %define build_debug             0
84    
85  # Build desktop i586 / 4GB  # Build desktop586 (i586 / 4GB)
86  %ifarch %{ix86}  %ifarch %{ix86}
87  %define build_desktop586        1  %define build_desktop586        1
88  %endif  %endif
89    
90  # Build mm (i686 / 4GB) / x86_64  # Build desktop (i686 / 4GB) / x86_64
91  %define build_desktop           1  %define build_desktop           1
92    
93  # Build laptop (i686 / 4GB)/ x86_64  # Build laptop (i686 / 4GB)/ x86_64
# Line 97  Line 101 
101  # Build server (i686 / 64GB)/x86_64  # Build server (i686 / 64GB)/x86_64
102  %define build_server            1  %define build_server            1
103    
104    # compress modules with xz
105    %define build_modxz             0
106    
107  # End of user definitions  # End of user definitions
108  %{?_without_desktop586: %global build_desktop586 0}  %{?_without_desktop586: %global build_desktop586 0}
109  %{?_without_desktop: %global build_desktop 0}  %{?_without_desktop: %global build_desktop 0}
# Line 107  Line 114 
114  %{?_without_source: %global build_source 0}  %{?_without_source: %global build_source 0}
115  %{?_without_devel: %global build_devel 0}  %{?_without_devel: %global build_devel 0}
116  %{?_without_debug: %global build_debug 0}  %{?_without_debug: %global build_debug 0}
117    %{?_without_modxz: %global build_modxz 0}
118    
119  %{?_with_desktop586: %global build_desktop586 1}  %{?_with_desktop586: %global build_desktop586 1}
120  %{?_with_desktop: %global build_desktop 1}  %{?_with_desktop: %global build_desktop 1}
# Line 117  Line 125 
125  %{?_with_source: %global build_source 1}  %{?_with_source: %global build_source 1}
126  %{?_with_devel: %global build_devel 1}  %{?_with_devel: %global build_devel 1}
127  %{?_with_debug: %global build_debug 1}  %{?_with_debug: %global build_debug 1}
128    %{?_with_modxz: %global build_modxz 1}
129    
130  # For the .nosrc.rpm  # For the .nosrc.rpm
131  %define build_nosrc     0  %define build_nosrc     0
132  %{?_with_nosrc: %global build_nosrc 1}  %{?_with_nosrc: %global build_nosrc 1}
133    
134  %define kmake %make  %define kmake %make
# Line 134  Line 143 
143  #  #
144  # SRC RPM description  # SRC RPM description
145  #  #
146  Summary:        Linux kernel built for Mandriva with modifications by %{ktag}  Summary:        Linux kernel built for %vendor with modifications by %{ktag}
147  Name:           %{kname}  Name:           %{kname}
148  Version:        %{kversion}  Version:        %{kversion}
149  Release:        %{rpmrel}  Release:        %{rpmrel}
# Line 142  License:       GPLv2 Line 151  License:       GPLv2
151  Group:          System/Kernel and hardware  Group:          System/Kernel and hardware
152  ExclusiveArch:  %{ix86} x86_64  ExclusiveArch:  %{ix86} x86_64
153  ExclusiveOS:    Linux  ExclusiveOS:    Linux
154  URL:            http://wiki.mandriva.com/en/Docs/Howto/Mandriva_Kernels#kernel-tmb  URL:            http://www.kernel.org
155    
156  ####################################################################  ####################################################################
157  #  #
158  # Sources  # Sources
159  #  #
160  ### This is for full SRC RPM  ### This is for full SRC RPM
161  Source0:        ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/linux-%{tar_ver}.tar.bz2  Source0:        ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/linux-%{tar_ver}.tar.xz
162  Source1:        ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/linux-%{tar_ver}.tar.bz2.sign  Source1:        ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/linux-%{tar_ver}.tar.sign
163  ### This is for stripped SRC RPM  ### This is for stripped SRC RPM
164  %if %build_nosrc  %if %build_nosrc
165  NoSource: 0  NoSource: 0
# Line 172  Source102:     %{kname}.patchlist Line 181  Source102:     %{kname}.patchlist
181  # Patch0 to Patch100 are for core kernel upgrades.  # Patch0 to Patch100 are for core kernel upgrades.
182  #  #
183    
184  # Pre linus patch: ftp://ftp.kernel.org/pub/linux/kernel/v2.6/testing  # Pre linus patch: ftp://ftp.kernel.org/pub/linux/kernel/v3.0/testing
185    
186  %if %kpatch  %if %kpatch
187  Patch1:         ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/testing/patch-%{kernelversion}.%{patchlevel}.%{sublevel}-%{kpatch}.bz2  %if %sublevel
188  Source10:       ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/testing/patch-%{kernelversion}.%{patchlevel}.%{sublevel}-%{kpatch}.bz2.sign  Patch2:         ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/stable-review/patch-%{kversion}-%{kpatch}.xz
189    Source11:       ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/stable-review/patch-%{kversion}-%{kpatch}.sign
190    %else
191    Patch1:         ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/testing/patch-%{kernelversion}.%{patchlevel}-%{kpatch}.xz
192    Source10:       ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/testing/patch-%{kernelversion}.%{patchlevel}-%{kpatch}.sign
193    %endif
194  %endif  %endif
195  %if %kgit  %if %kgit
196  Patch2:         ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/snapshots/patch-%{kernelversion}.%{patchlevel}.%{sublevel}-%{kpatch}-git%{kgit}.bz2  Patch2:         ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/snapshots/patch-%{kernelversion}.%{patchlevel}-%{kpatch}-git%{kgit}.xz
197  Source11:       ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/snapshots/patch-%{kernelversion}.%{patchlevel}.%{sublevel}-%{kpatch}-git%{kgit}.bz2.sign  Source11:       ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/snapshots/patch-%{kernelversion}.%{patchlevel}-%{kpatch}-git%{kgit}.sign
198    %endif
199    %if %sublevel
200    %if %kpatch
201    %define prev_sublevel %(expr %{sublevel} - 1)
202    %if %prev_sublevel
203    Patch1:         ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/patch-%{kernelversion}.%{patchlevel}.%{prev_sublevel}.xz
204    Source10:       ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/patch-%{kernelversion}.%{patchlevel}.%{prev_sublevel}.sign
205    %endif
206    %else
207    Patch1:         ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/patch-%{kversion}.xz
208    Source10:       ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/patch-%{kversion}.sign
209  %endif  %endif
 %if %kstable  
 Patch1:         ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/patch-%{kversion}.bz2  
 Source10:       ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/patch-%{kversion}.bz2.sign  
210  %endif  %endif
211    
212  #END  #END
# Line 193  Source10:      ftp://ftp.kernel.org/pub/linu Line 215  Source10:      ftp://ftp.kernel.org/pub/linu
215  # Defines for the things that are needed for all the kernels  # Defines for the things that are needed for all the kernels
216  #  #
217  %define common_description_kernel The kernel package contains the Linux kernel (vmlinuz), the core of your \  %define common_description_kernel The kernel package contains the Linux kernel (vmlinuz), the core of your \
218  Mandriva Linux operating system.  The kernel handles the basic functions \  %vendor Linux operating system.  The kernel handles the basic functions \
219  of the operating system:  memory allocation, process allocation, device \  of the operating system:  memory allocation, process allocation, device \
220  input and output, etc.  input and output, etc.
221    
 %define common_description_info For instructions for update, see:       \  
 http://www.mandriva.com/en/security/kernelupdate                        \  
                                                                         \  
 The %{ktag} kernels is an experimental kernel based on the kernel.org   \  
 kernels with added patches. Some of them may/will never end up in       \  
 the main kernels due to their experimental nature. Some refer to        \  
 this kernel as a 'hackkernel' ...                                       \  
 Use these kernels at your own risk !!  
   
222  ### Global Requires/Provides  ### Global Requires/Provides
223  %define requires1       mkinitrd >= 6.0.92-12  %define requires1       mkinitrd >= 6.0.92-12
224  %define requires2       bootloader-utils >= 1.12-1  %define requires2       bootloader-utils >= 1.12-1
# Line 222  BuildRequires:                 gcc >= 4.0.1-5 module-i Line 235  BuildRequires:                 gcc >= 4.0.1-5 module-i
235  %description  %description
236  %common_description_kernel  %common_description_kernel
237    
 %common_description_info  
   
238    
239  # mkflavour() name flavour processor  # mkflavour() name flavour processor
240  # name: the flavour name in the package name  # name: the flavour name in the package name
# Line 243  Group:         System/Kernel and hardware              \ Line 254  Group:         System/Kernel and hardware              \
254  %description -n %{kname}-%{1}-%{buildrel}               \  %description -n %{kname}-%{1}-%{buildrel}               \
255  %common_description_kernel %{expand:%{info_%(echo %{1})}} \  %common_description_kernel %{expand:%{info_%(echo %{1})}} \
256                                                          \                                                          \
 %common_description_info                                \  
                                                         \  
257  %if %build_devel                                        \  %if %build_devel                                        \
258  %package -n     %{kname}-%{1}-devel-%{buildrel}         \  %package -n     %{kname}-%{1}-devel-%{buildrel}         \
259  Version:        %{fakever}                              \  Version:        %{fakever}                              \
# Line 262  This package contains the kernel-devel f Line 271  This package contains the kernel-devel f
271                                                          \                                                          \
272  If you want to build your own kernel, you need to install the full \  If you want to build your own kernel, you need to install the full \
273  %{kname}-source-%{buildrel} rpm.                        \  %{kname}-source-%{buildrel} rpm.                        \
                                                         \  
 %common_description_info                                \  
274  %endif                                                  \  %endif                                                  \
275                                                          \                                                          \
276  %package -n %{kname}-%{1}-latest                        \  %package -n %{kname}-%{1}-latest                        \
# Line 280  Conflicts:     arch(x86_64)                            \ Line 287  Conflicts:     arch(x86_64)                            \
287  This package is a virtual rpm that aims to make sure you always have the \  This package is a virtual rpm that aims to make sure you always have the \
288  latest %{kname}-%{1} installed...                       \  latest %{kname}-%{1} installed...                       \
289                                                          \                                                          \
 %common_description_info                                \  
                                                         \  
290  %if %build_devel                                        \  %if %build_devel                                        \
291  %package -n %{kname}-%{1}-devel-latest                  \  %package -n %{kname}-%{1}-devel-latest                  \
292  Version:        %{kversion}                             \  Version:        %{kversion}                             \
# Line 296  Conflicts:     arch(x86_64)                            \ Line 301  Conflicts:     arch(x86_64)                            \
301  %description -n %{kname}-%{1}-devel-latest              \  %description -n %{kname}-%{1}-devel-latest              \
302  This package is a virtual rpm that aims to make sure you always have the \  This package is a virtual rpm that aims to make sure you always have the \
303  latest %{kname}-%{1}-devel installed...                 \  latest %{kname}-%{1}-devel installed...                 \
                                                         \  
 %common_description_info                                \  
304  %endif                                                  \  %endif                                                  \
305                                                          \                                                          \
306  %post -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1}-post \  %post -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1}-post \
# Line 446  Requires:      glibc-devel, ncurses-devel, m Line 449  Requires:      glibc-devel, ncurses-devel, m
449  Summary:        The Linux source code for %{kname}-%{buildrel}  Summary:        The Linux source code for %{kname}-%{buildrel}
450  Group:          Development/Kernel  Group:          Development/Kernel
451  Autoreqprov:    no  Autoreqprov:    no
452  Provides:       kernel-source = %{kverrel}, kernel-devel = %{kverrel}  Provides:       kernel-source = %{kverrel}
453  %ifarch %{ix86}  Buildarch:      noarch
 Conflicts:      arch(x86_64)  
 %endif  
454    
455  %description -n %{kname}-source-%{buildrel}  %description -n %{kname}-source-%{buildrel}
456  The %{kname}-source package contains the source code files for the %{ktag}  The %{kname}-source package contains the source code files for the %{ktag}
# Line 459  build your own custom kernel that is bet Line 460  build your own custom kernel that is bet
460  If you only want the files needed to build 3rdparty (nVidia, Ati, dkms-*,...)  If you only want the files needed to build 3rdparty (nVidia, Ati, dkms-*,...)
461  drivers against, install the *-devel-* rpm that is matching your kernel.  drivers against, install the *-devel-* rpm that is matching your kernel.
462    
 %common_description_info  
463    
464  %post -n %{kname}-source-%{buildrel}  %post -n %{kname}-source-%{buildrel}
465  for i in /lib/modules/%{kversion}-%{ktag}-*-%{buildrpmrel}; do  for i in /lib/modules/%{kversion}-%{ktag}-*-%{buildrpmrel}; do
# Line 490  Release:       %{rpmrel} Line 490  Release:       %{rpmrel}
490  Summary:        Virtual rpm for latest %{kname}-source  Summary:        Virtual rpm for latest %{kname}-source
491  Group:          Development/Kernel  Group:          Development/Kernel
492  Requires:       %{kname}-source-%{buildrel}  Requires:       %{kname}-source-%{buildrel}
493  %ifarch %{ix86}  Buildarch:      noarch
 Conflicts:      arch(x86_64)  
 %endif  
494    
495  %description -n %{kname}-source-latest  %description -n %{kname}-source-latest
496  This package is a virtual rpm that aims to make sure you always have the  This package is a virtual rpm that aims to make sure you always have the
497  latest %{kname}-source installed...  latest %{kname}-source installed...
   
 %common_description_info  
498  %endif  %endif
499    
500  #  #
# Line 518  Various bits of information about the Li Line 514  Various bits of information about the Li
514  shipped with it are documented in these files. You also might want install  shipped with it are documented in these files. You also might want install
515  this package if you need a reference to the options that can be passed to  this package if you need a reference to the options that can be passed to
516  Linux kernel modules at load time.  Linux kernel modules at load time.
   
 %common_description_info  
517  %endif  %endif
518    
519  #  #
# Line 533  Linux kernel modules at load time. Line 527  Linux kernel modules at load time.
527  %define patches_dir ../%{patch_ver}/  %define patches_dir ../%{patch_ver}/
528    
529  cd %src_dir  cd %src_dir
530    
531    %if %sublevel
532  %if %kpatch  %if %kpatch
533    %if %prev_sublevel
534  %patch1 -p1  %patch1 -p1
535  %endif  %endif
 %if %kgit  
536  %patch2 -p1  %patch2 -p1
537    %else
538    %patch1 -p1
539  %endif  %endif
540  %if %kstable  %else
541    %if %kpatch
542  %patch1 -p1  %patch1 -p1
543  %endif  %endif
544    %endif
545    %if %kgit
546    %patch2 -p1
547    %endif
548    
549  %{patches_dir}/scripts/apply_patches  %{patches_dir}/scripts/apply_patches
550    
# Line 559  cd %src_dir Line 562  cd %src_dir
562  %define debug --no-debug  %define debug --no-debug
563  %endif  %endif
564    
565    # enable xz module compression
566    %if %build_modxz
567    sed -i  's/^CONFIG_MODULE_COMPRESS_GZIP=y/# CONFIG_MODULE_COMPRESS_GZIP is not set/' \
568            %{patches_dir}/configs/*.config
569    sed -i  's/^# CONFIG_MODULE_COMPRESS_XZ is not set/CONFIG_MODULE_COMPRESS_XZ=y/' \
570            %{patches_dir}/configs/*.config
571    %endif
572    
573  %{patches_dir}/scripts/create_configs %debug --user_cpu="%{_arch}"  %{patches_dir}/scripts/create_configs %debug --user_cpu="%{_arch}"
574    
575  # make sure the kernel has the sublevel we know it has...  # make sure the kernel has the sublevel we know it has...
# Line 594  PrepareKernel() { Line 605  PrepareKernel() {
605          fi          fi
606    
607          # make sure EXTRAVERSION says what we want it to say          # make sure EXTRAVERSION says what we want it to say
608          %if %kstable          LC_ALL=C perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -$extension/" Makefile
                 LC_ALL=C perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = .%{kstable}-$extension/" Makefile  
         %else  
                 LC_ALL=C perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -$extension/" Makefile  
         %endif  
609    
610          %smake oldconfig          %smake oldconfig
611  }  }
# Line 608  BuildKernel() { Line 615  BuildKernel() {
615          KernelVer=$1          KernelVer=$1
616          echo "Building kernel $KernelVer"          echo "Building kernel $KernelVer"
617    
618          %kmake all          %kmake -s all
619    
620          # Start installing stuff          # Start installing stuff
621          install -d %{temp_boot}          install -d %{temp_boot}
# Line 668  SaveDevel() { Line 675  SaveDevel() {
675          cp -fR drivers/acpi/acpica/*.h $TempDevelRoot/drivers/acpi/acpica/          cp -fR drivers/acpi/acpica/*.h $TempDevelRoot/drivers/acpi/acpica/
676    
677          for i in alpha arm arm26 avr32 blackfin cris frv h8300 ia64 microblaze mips m32r m68k \          for i in alpha arm arm26 avr32 blackfin cris frv h8300 ia64 microblaze mips m32r m68k \
678                   m68knommu mn10300 parisc powerpc ppc s390 sh sh64 score sparc tile v850 xtensa; do                   m68knommu mn10300 openrisc parisc powerpc ppc s390 sh sh64 score sparc tile \
679                     unicore32 v850 xtensa; do
680                  rm -rf $TempDevelRoot/arch/$i                  rm -rf $TempDevelRoot/arch/$i
681          done          done
682    
# Line 859  EOF Line 867  EOF
867  ### Create kernel Postun script on the fly  ### Create kernel Postun script on the fly
868  cat > $kernel_files-postun <<EOF  cat > $kernel_files-postun <<EOF
869  /sbin/kernel_remove_initrd %{kversion}-%{ktag}-$kernel_flavour-%{buildrpmrel}  /sbin/kernel_remove_initrd %{kversion}-%{ktag}-$kernel_flavour-%{buildrpmrel}
870    rm -rf /lib/modules/%{kversion}-%{ktag}-$kernel_flavour-%{buildrpmrel} > /dev/null
871  EOF  EOF
872  }  }
873    
# Line 938  cp -a %{temp_root} %{buildroot} Line 947  cp -a %{temp_root} %{buildroot}
947    
948  # Create directories infastructure  # Create directories infastructure
949  %if %build_source  %if %build_source
950  install -d %{target_source}  install -d %{target_source}
951    
952  tar cf - . | tar xf - -C %{target_source}  tar cf - . | tar xf - -C %{target_source}
953  chmod -R a+rX %{target_source}  chmod -R a+rX %{target_source}
# Line 946  chmod -R a+rX %{target_source} Line 955  chmod -R a+rX %{target_source}
955  # we remove all the source files that we don't ship  # we remove all the source files that we don't ship
956  # first architecture files  # first architecture files
957  for i in alpha arm arm26 avr32 blackfin cris frv h8300 ia64 microblaze mips m32r m68k \  for i in alpha arm arm26 avr32 blackfin cris frv h8300 ia64 microblaze mips m32r m68k \
958           m68knommu mn10300 parisc powerpc ppc s390 sh sh64 score sparc tile v850 xtensa; do           m68knommu mn10300 openrisc parisc powerpc ppc s390 sh sh64 score sparc tile \
959             v850 xtensa unicore32; do
960          rm -rf %{target_source}/arch/$i          rm -rf %{target_source}/arch/$i
961  done  done
962    
# Line 956  done Line 966  done
966    
967  # other misc files  # other misc files
968  rm -f %{target_source}/{.config.old,.config.cmd,.mailmap,.missing-syscalls.d,arch/.gitignore}  rm -f %{target_source}/{.config.old,.config.cmd,.mailmap,.missing-syscalls.d,arch/.gitignore}
969    rm -rf %{target_source}/.tmp_depmod/
970    
971  #endif %build_source  #endif %build_source
972  %endif  %endif
# Line 1067  rm -rf %{buildroot} Line 1078  rm -rf %{buildroot}
1078  %endif  %endif
1079    
1080  %changelog  %changelog
1081    * Tue Dec  6 2011 Thomas Backlund <tmb@mandriva.org> 3.1.4-3.mga2
1082    - fix patch NI12: IFWLOG: fix return value of checkentry
1083      (not properly modified in 2.6.35+ patch, blino, #3594)
1084    - rebuild with GCC-4.6.2
1085    
1086    * Wed Nov 30 2011 Thomas Backlund <tmb@mandriva.org> 3.1.4-2.mga2
1087    - update patch:
1088      * CK01: upstream 3.1.0-ck2 including BFS 0.415
1089    
1090    * Tue Nov 29 2011 Thomas Backlund <tmb@mandriva.org> 3.1.4-1.mga2
1091    - update to 3.1.4
1092      * reverts usb patch that broke isochronous devices
1093        (i.e. webcam, audio, or other streaming devices)
1094    
1095    * Mon Nov 28 2011 Thomas Backlund <tmb@mandriva.org> 3.1.3-1.mga2
1096    - update to 3.1.3
1097    - add patches:
1098      * DG01: i915: Fix inconsistent backlight level during disabled
1099      * DG02: drm: fix integer overflow in drm_mode_dirtyfb_ioctl()
1100      * DG03: radeon/kms: fix up gpio i2c mask bits for r4xx for real
1101      * DG04: i915: Ivybridge still has fences
1102      * DG05: i915: Turn on a required 3D clock gating bit on Sandybridge
1103      * DG06: i915: Turn on another required clock gating bit on Sandybridge
1104      * DP01: pci: rework ASPM disable code (brings power usage back down
1105                   to 2.6.37 level)
1106      * FX01: don't serialise direct IO reads on page cache checks
1107              (fixes performance regression introduced in 2.6.38)
1108      * FX02: avoid direct I/O write vs buffered I/O race
1109      * FX03: return -EIO when xfs_vn_getattr() failed
1110      * FX04: fix buffer flushing during unmount
1111      * FX05: fix possible memory corruption in xfs_readlink
1112      * FX06: use doalloc flag in xfs_qm_dqattach_one()
1113    - update patches:
1114      * FU01: unionfs 2.5.10 for 3.1.3
1115      * MB02: merge 3rdparty support
1116      * MB10-MB12: ndiswrapper 1.57-rc1
1117    - drop patches:
1118      * DS15: its replaced by SND_HDA_PREALLOC_SIZE config option
1119      * MB13-MB17: ndiswrapper fixes, merged
1120    - disable patches:
1121      * KP01: TuxOnIce support, currently broken
1122    - dont ship openrisc arch files
1123    - update defconfigs
1124    
1125    * Tue Oct 25 2011 Thomas Backlund <tmb@mandriva.org> 3.0.8-1.mga2
1126    - update to 3.0.8
1127      * drop merged patch: DM20
1128    - enable PM_RUNTIME and USB_SUSPEND
1129    
1130    * Tue Oct 18 2011 Thomas Backlund <tmb@mandriva.org> 3.0.7-1.mga2
1131    - update to 3.0.7
1132    - update patch:
1133        * CK01: 3.0.7-ck1 including BFS 0.413
1134    - re-enable usblp as it is needed by both usb-pp adapters and some printers
1135      (mga #2240, #2264) (cups is patched to work with both usblp and libusb)
1136    
1137    * Tue Oct 04 2011 Thomas Backlund <tmb@mandriva.org> 3.0.6-1.mga2
1138    - update to 3.0.6
1139    - add patch:
1140        * DM20: fix boot hang on uvc webcam init (mga #2425)
1141    
1142    * Tue Aug 30 2011 Thomas Backlund <tmb@mandriva.org> 3.0.4-1.mga2
1143    - update to 3.0.4
1144    - drop merged patch: AA01
1145    
1146    * Fri Aug 19 2011 Thomas Backlund <tmb@mandriva.org> 3.0.3-1.mga2
1147    - update to 3.0.3
1148    - update patches:
1149        * CK01: Con Kolivas -ck patchset including BFS
1150        * FU01: unionfs 2.5.9.2
1151        * KP01: TuxonIce 3.2
1152    - drop merged patches:
1153        * CK02, DA60-DA61, DG10-DG14, DN08, DN15-DN19, DP05-DP08
1154        * DP20-DP26, DP30, DV11, FU02-FU03, MK01, NI30-NI31
1155    - add patches:
1156        * AA01: genirq: Fix wrong bit operation
1157        * DP10-DP12: samsung-laptop: support nc110, nc210, r700, x520
1158        * DP13: samsung-laptop: fix support for older N150, N210, N220
1159        * FB01: btrfs: btrfs_calc_avail_data_space: cope with no read_write devices
1160        * MB17: ndiswrapper buildfix for 3.0
1161        * MC84: viahss buildfix for 3.0
1162    - rediff patches:
1163        * NI16: netfilter psd mdv/mga modifications
1164    - disable patches:
1165        * DV01-DV02: framebuffer oops fixes (should not be needed anymore)
1166        * FR01: reiser4 support (broken)
1167    - adapt spec for 3.0 series version changes
1168    - change kernel-tmb-source to noarch
1169    - build with -s(ilent) to only log varnings and errors
1170    - update defconfigs
1171    
1172    * Sun Jun 19 2011 Thomas Backlund <tmb@mandriva.org> 2.6.38.8-1.mga1
1173    - update to 2.6.38.8 (CVE-2011-1017)
1174    - drop merged patches:
1175        * AA01, DP15
1176    - add patches:
1177        * CK02: update bfs scheduler to 0.406
1178        * MK01: ksm: fix race between ksmd and exiting task (CVE-2011-2183)
1179    - add mgaver to 'uname -r'
1180    
1181    * Sun May 22 2011 Thomas Backlund <tmb@mandriva.org> 2.6.38.7-1.mga1
1182    - update to 2.6.38.7 (CVE-2011-1770, CVE-2011-1776, CVE-2011-1927)
1183    - drop merged patches:
1184        * DG20-DG24
1185    - update patches:
1186        * FU01, FU03: rollback unionfs to a working 2.5.8
1187    - add patches:
1188        * AA01: block: rescan partitions on invalidated devices on -ENOMEDIA too
1189        * DN17: r8169: add a new chip for RTL8105
1190        * DN18: r8169: add a new chip for RTL8168DP
1191        * DN19: r8169: add support for RTL8168E/RTL8111E
1192    
1193    * Wed May 18 2011 Thomas Backlund <tmb@mandriva.org> 2.6.38.6-2.mga1
1194    - disable xz module compression again as not all tools/utils can cope
1195      with it (can be enabled with '--with modxz' buildtime flag)
1196    
1197    * Thu May 12 2011 Thomas Backlund <tmb@mandriva.org> 2.6.38.6-1.mga1
1198    - enable xz module compression on 2011.0
1199    - update to 2.6.38.6
1200    - drop merged patches:
1201        * AX01
1202    - add patches:
1203        * DG20: drm/radeon/kms: add pci id to acer travelmate quirk for 5730
1204        * DG21: drm/radeon/kms: fix gart setup on fusion parts (v2) backport
1205        * DG22: drm/i915/dp: Be paranoid in case we disable a DP before it is attached
1206        * DG23: drm/i915/lvds: Only act on lid notify when the device is on
1207        * DG24: drm/i915: Release object along create user fb error path
1208        * DP30: revert: "dell-laptop: Toggle the unsupported hardware killswitch"
1209                as it causes regressions on existing hw (reported by Colin Guthrie)
1210        * SM02: add support for compressing modules with xz
1211    - clean /lib/modules tree on uninstall
1212    - disable ACPI_PROCFS_POWER as its obsoleted by the sysfs interface
1213    - drop hardcoded vendor references from summarys and descriptions (#1161)
1214    - drop warnings about being experimental kernel
1215    
1216    * Wed May  5 2011 Thomas Backlund <tmb@mandriva.org> 2.6.38.5-1.mga1
1217    - update to 2.6.38.5
1218    - add patches:
1219        * AX01: x86, AMD: K8 Rev.A-E processors are subject to erratum 400
1220        * AX05: x86, 32bit: raise default vmalloc area to 192MB (Anssi, #904)
1221        * DN15: r8169: add support for RTL8105E
1222        * DN16: r8169: be verbose when unable to load firmware
1223        * DN20: disable powersaving on rt2800 as it is broken (noted by rtp)
1224        * DP06-DP08: samsung-laptop: add support for N230, R410P
1225        * DP20-DP26: hp-wmi: add support for rfkill on HP Mini 5102 (Anssi)
1226    - update patches:
1227        * FU01: unionfs 2.5.9
1228    - drop patches:
1229        * FU03: unionfs oops fix (obsolete)
1230    - enable DEBUG_RODATA and DEBUG_SET_MODULE_RONX (tv)
1231    
1232    * Sun Apr 24 2011 Thomas Backlund <tmb@mandriva.org> 2.6.38.4-1.mga1
1233    - update to 2.6.38.4
1234    - update patches:
1235        * DG10: drm/i915: Fix tiling corruption from pipelined fencing
1236        * NI30, NI31: ipset 6.4
1237    - add patches:
1238        * DA60, DA61: ide/ahci/raid support for Intel Panther Point
1239        * DF01: add old ieee1394 aliases to new firewire stack
1240        * DG11: drm: Retry i2c transfer of EDID block after failure
1241        * DG12: drm/i915/dp: Sanity check eDP existence
1242        * DG13: drm/i915: Restore missing command flush before interrupt on BLT ring
1243        * DG14: drm/i915: Avoid unmapping pages from a NULL address space
1244        * DG15: drm/i915: Enable GPU semaphores by default
1245        * DM01: add dm-raid45 aliases to the new dm-raid target
1246        * DP15: intel_ips: fix monitor thread to use TASK_INTERRUPTIBLE
1247    
1248  * Sat Apr 16 2011 Thomas Backlund <tmb@mandriva.org> 2.6.38.3-1.mga1  * Sat Apr 16 2011 Thomas Backlund <tmb@mandriva.org> 2.6.38.3-1.mga1
1249  - update to 2.6.38.3  - update to 2.6.38.3
1250  - drop merged patches  - drop merged patches

Legend:
Removed from v.86245  
changed lines
  Added in v.177136

  ViewVC Help
Powered by ViewVC 1.1.30