4 |
%define kernelversion 3 |
%define kernelversion 3 |
5 |
%define patchlevel 1 |
%define patchlevel 1 |
6 |
# sublevel is now used for -stable patches |
# sublevel is now used for -stable patches |
7 |
%define sublevel 5 |
%define sublevel 6 |
8 |
|
|
9 |
# Package release |
# Package release |
10 |
%define mgarel 1 |
%define mgarel 1 |
302 |
%endif \ |
%endif \ |
303 |
\ |
\ |
304 |
%post -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1}-post \ |
%post -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1}-post \ |
305 |
|
%posttrans -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1}-posttrans \ |
306 |
%preun -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1}-preun \ |
%preun -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1}-preun \ |
307 |
%postun -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1}-postun \ |
%postun -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1}-postun \ |
308 |
\ |
\ |
325 |
# |
# |
326 |
%ifarch %{ix86} |
%ifarch %{ix86} |
327 |
%if %build_desktop586 |
%if %build_desktop586 |
328 |
%define summary_desktop586 Linux kernel for desktop use with i586 & 4GB RAM |
%define summary_desktop586 Linux kernel for desktop use with i586 and up to 4GB RAM |
329 |
%define info_desktop586 This kernel is compiled for desktop use, single or \ |
%define info_desktop586 This kernel is compiled for desktop use, single or \ |
330 |
multiple i586 processor(s)/core(s) and less than 4GB RAM, using full \ |
multiple i586 processor(s)/core(s) and less than 4GB RAM (usually 3-3.5GB \ |
331 |
preempt, BFS cpu scheduler and cfq i/o scheduler. \ |
detected, if you need/want to use all 4GB or more, install %{kname}-server),\ |
332 |
|
using full preempt, BFS cpu scheduler and cfq i/o scheduler. \ |
333 |
This kernel relies on in-kernel smp alternatives to switch between up & smp \ |
This kernel relies on in-kernel smp alternatives to switch between up & smp \ |
334 |
mode depending on detected hardware. To force the kernel to boot in single \ |
mode depending on detected hardware. To force the kernel to boot in single \ |
335 |
processor mode, use the "nosmp" boot parameter. |
processor mode, use the "nosmp" boot parameter. |
342 |
# |
# |
343 |
%if %build_desktop |
%if %build_desktop |
344 |
%ifarch %{ix86} |
%ifarch %{ix86} |
345 |
%define summary_desktop Linux Kernel for desktop use with i686 & 4GB RAM |
%define summary_desktop Linux Kernel for desktop use with i686 and up to 4GB RAM |
346 |
%define info_desktop This kernel is compiled for desktop use, single or \ |
%define info_desktop This kernel is compiled for desktop use, single or \ |
347 |
multiple i686 processor(s)/core(s) and less than 4GB RAM, using full \ |
multiple i686 processor(s)/core(s) and less than 4GB RAM (usually 3-3.5GB \ |
348 |
preempt, BFS cpu scheduler and cfq i/o scheduler. \ |
detected, if you need/want to use all 4GB or more, install %{kname}-server), \ |
349 |
|
using full preempt, BFS cpu scheduler and cfq i/o scheduler. \ |
350 |
This kernel relies on in-kernel smp alternatives to switch between up & smp \ |
This kernel relies on in-kernel smp alternatives to switch between up & smp \ |
351 |
mode depending on detected hardware. To force the kernel to boot in single \ |
mode depending on detected hardware. To force the kernel to boot in single \ |
352 |
processor mode, use the "nosmp" boot parameter. |
processor mode, use the "nosmp" boot parameter. |
367 |
# |
# |
368 |
%if %build_laptop |
%if %build_laptop |
369 |
%ifarch %{ix86} |
%ifarch %{ix86} |
370 |
%define summary_laptop Linux kernel for laptop use with i686-up/smp-4GB |
%define summary_laptop Linux kernel for laptop use with i686 and up to 4GB |
371 |
%define info_laptop This kernel is compiled for laptop use, single or \ |
%define info_laptop This kernel is compiled for laptop use, single or \ |
372 |
multiple i686 processor(s)/core(s) and less than 4GB RAM, using HZ_250 \ |
multiple i686 processor(s)/core(s) and less than 4GB RAM (usually 3-3.5GB \ |
373 |
to save battery, voluntary preempt, BFS cpu scheduler, cfq i/o scheduler \ |
detected, if you need/want to use all 4GB or more, install %{kname}-server), \ |
374 |
and some other laptop-specific optimizations. If you want to sacrifice \ |
using HZ_250 to save battery, voluntary preempt, BFS cpu scheduler, \ |
375 |
battery life for performance, you better use the %{kname}-desktop. \ |
cfq i/o scheduler and some other laptop-specific optimizations. \ |
376 |
|
If you want to sacrifice battery life for performance, you better use the \ |
377 |
|
%{kname}-desktop. \ |
378 |
This kernel relies on in-kernel smp alternatives to switch between up & smp \ |
This kernel relies on in-kernel smp alternatives to switch between up & smp \ |
379 |
mode depending on detected hardware. To force the kernel to boot in single \ |
mode depending on detected hardware. To force the kernel to boot in single \ |
380 |
processor mode, use the "nosmp" boot parameter. \ |
processor mode, use the "nosmp" boot parameter. \ |
835 |
%endif |
%endif |
836 |
EOF |
EOF |
837 |
|
|
838 |
|
### Create kernel Posttran script |
839 |
|
cat > $kernel_files-posttrans <<EOF |
840 |
|
if [ -x /usr/sbin/dkms_autoinstaller ]; then |
841 |
|
/usr/sbin/dkms_autoinstaller start %{kversion}-%{ktag}-$kernel_flavour-%{buildrpmrel} |
842 |
|
fi |
843 |
|
EOF |
844 |
|
|
845 |
### Create kernel Preun script on the fly |
### Create kernel Preun script on the fly |
846 |
cat > $kernel_files-preun <<EOF |
cat > $kernel_files-preun <<EOF |
1073 |
%endif |
%endif |
1074 |
|
|
1075 |
%changelog |
%changelog |
1076 |
|
* Thu Dec 22 2011 Thomas Backlund <tmb@mandriva.org> 3.1.6-1.mga2 |
1077 |
|
- update to 3.1.6 |
1078 |
|
- drop patch DS01 (merged) |
1079 |
|
- trigger dkms build in posttrans so modules get built at kernel install |
1080 |
|
instead of at boot (speeds up boot time with new kernel) |
1081 |
|
- update desktop(586) & laptop summaries and descriptions to point out that |
1082 |
|
only 3-3.5GB RAM is detected on 32bit, and that server kernel is needed to |
1083 |
|
fully support 4GB or more |
1084 |
|
- switch transparent hugepages from on by default to madvise (only enabled |
1085 |
|
for apps that requests it), as it fixes desktop freeze when accessing |
1086 |
|
slow media such as usb (thanks to fbui/mdv mail on @cooker ml). |
1087 |
|
|
1088 |
* Fri Dec 9 2011 Thomas Backlund <tmb@mandriva.org> 3.1.5-1.mga2 |
* Fri Dec 9 2011 Thomas Backlund <tmb@mandriva.org> 3.1.5-1.mga2 |
1089 |
- update to 3.1.5 |
- update to 3.1.5 |
1090 |
- drop merged patches: |
- drop merged patches: |