avatar
Rosa has added ba960dc4e6
Automatic import for version 3.18.11-ql
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,4 @@
1
sources:
2
  "linux-3.18.11-nicco1.tar.xz": 19880e7d74c430988e2510856c0581e36d853c65
3
  "linux-3.18.tar.xz": 4557ef53c89fe70a9da230ae1e6542856d8b0a94
4
  "patch-3.18.11.xz": e0405dbbfc02bdf155462fbbfc6a4dddb758f98a
view file @ ba960dc4e6
... ... --- /dev/null
... ... +++ b/README.kernel-sources
... ... @@ -0,0 +1,91 @@
1
Hello Mandriva, OpenMandriva, MagOS, Mageia, and Rosa Linux Users,
2
3
linux-userspace-headers contains the headers for the source code of
4
Linux kernel. All source code necessary to compile a new kernel is
5
included in two packages linux-userspace-headers, and kernel-source.
6
You will need to install both linux-userspace-headers (needed for
7
general Linux compilation), and kernel-source in order to compile
8
a new kernel.
9
10
The kernel is the central process of your Linux machine, the mediator
11
between the hardware and your programs. It is responsible for memory
12
allocations, process managing, device access...
13
14
Although modern kernels are very flexible thanks to dynamic modules, you
15
may need to compile your own kernel for various reasons: your found a
16
new module which need a more recent kernel, you need a feature of a new
17
kernel, etc...
18
19
Here is a short sum-up of what you can find in the Kernel-HOWTO. Consult
20
it in case of a problem or if the shortcut here provided does not meet
21
your needs. You should also consult the README of kernel-sources.
22
23
24
25
1. Configure your new kernel
26
27
You should never build a kernel as root, so as a normal user:
28
Copy the source in /usr/src/linux/ to ~/kernel/
29
Change to ~/kernel/ and clean-up previous compilations, by issuing 
30
"make mrproper",
31
In console mode, run "make menuconfig",
32
Under X11, run "make xconfig".
33
34
Then configure all sections of your kernel making each feature you need
35
available constantly or as a module. Note that you should compile most
36
features as a module, as it consume less memory, taking into account
37
that some of them cannot be modules as you may need them at boot time,
38
before dynamic modules be loaded...
39
40
41
42
2. Compile it
43
44
Just issue "make" to create a compressed kernel image and the modules you 
45
configured.
46
47
48
49
3. install your new kernel
50
51
Now you need root privilegies, so:
52
Issue "su" and enter root password.
53
Issue "make modules_install"
54
55
This will copy your modules and needed files to /lib/modules/
56
57
Issue "make install"
58
59
This will copy your new kernel and system.map to boot dir (/boot/) with
60
correct names including version, and change respective links.
61
62
It finally runs lilo to take into account your new kernel.
63
64
65
66
4. Modify Lilo to allow your booting on old kernel
67
68
* This step is optional, although recommended *
69
See lilo.conf man page.
70
Your are encouraged during this step to create a new section in your
71
lilo.conf file, in order to enable you to boot on your both kernels, the
72
old and the new one.
73
You need to run lilo then to take your changes into account.
74
You may also use linuxconf to do all that with a nice GUI.
75
76
77
78
5. Reboot your machine...
79
80
And pray.
81
Anyway if something goes wrong, you just need to reboot and choose your
82
old kernel with lilo.
83
84
Enjoy!
85
86
87
========================================================================
88
(c) 1999-2006 Mandriva, Camille Bgnis <camille@mandriva.com>
89
(c) 2006 Thomas Backlund <tmb@mandriva.org> 
90
(c) 2011 Thomas Backlund <tmb@mageia.org> 
91
(c) 2011 Nicol Costanza <abitrules@yahoo.it> 
view file @ ba960dc4e6
... ... --- /dev/null
... ... +++ b/cpupower.config
... ... @@ -0,0 +1,3 @@
1
# See 'cpupower help' and cpupower(1) for more info
2
CPUPOWER_START_OPTS="frequency-set -g performance"
3
CPUPOWER_STOP_OPTS="frequency-set -g performance"
view file @ ba960dc4e6
... ... --- /dev/null
... ... +++ b/cpupower.service
... ... @@ -0,0 +1,13 @@
1
[Unit]
2
Description=Configure CPU power related settings
3
After=syslog.target
4
5
[Service]
6
Type=oneshot
7
RemainAfterExit=yes
8
EnvironmentFile=/etc/sysconfig/cpupower
9
ExecStart=/usr/bin/cpupower $CPUPOWER_START_OPTS
10
ExecStop=/usr/bin/cpupower $CPUPOWER_STOP_OPTS
11
12
[Install]
13
WantedBy=multi-user.target
view file @ ba960dc4e6
... ... --- /dev/null
... ... +++ b/disable-mrproper-prepare-scripts-configs-in-devel-rpms.patch
... ... @@ -0,0 +1,116 @@
1
2
 Makefile                 |   17 +++++------------
3
 scripts/kconfig/Makefile |   18 ------------------
4
 2 files changed, 5 insertions(+), 30 deletions(-)
5
6
diff -Nurp linux-3.18-rc6-mga1/Makefile linux-3.18-rc6-mga1-mrp/Makefile
7
--- linux-3.18-rc6-mga1/Makefile	2014-11-30 01:37:14.554576609 +0200
8
+++ linux-3.18-rc6-mga1-mrp/Makefile	2014-11-30 01:37:46.312753291 +0200
9
@@ -550,9 +550,7 @@ ifeq ($(KBUILD_EXTMOD),)
10
 # Carefully list dependencies so we do not try to build scripts twice
11
 # in parallel
12
 PHONY += scripts
13
-scripts: scripts_basic include/config/auto.conf include/config/tristate.conf \
14
-	 asm-generic
15
-	$(Q)$(MAKE) $(build)=$(@)
16
+scripts:
17
 
18
 # Objects we will link into vmlinux / subdirs we need to visit
19
 init-y		:= init/
20
@@ -980,7 +978,7 @@ prepare0: archprepare FORCE
21
 	$(Q)$(MAKE) $(build)=.
22
 
23
 # All the preparing..
24
-prepare: prepare0
25
+prepare:
26
 
27
 # Generate some files
28
 # ---------------------------------------------------------------------------
29
@@ -1169,13 +1167,8 @@ endif # CONFIG_MODULES
30
 CLEAN_DIRS  += $(MODVERDIR)
31
 
32
 # Directories & files removed with 'make mrproper'
33
-MRPROPER_DIRS  += include/config usr/include include/generated          \
34
-		  arch/*/include/generated .tmp_objdiff
35
-MRPROPER_FILES += .config .config.old .version .old_version $(version_h) \
36
-		  Module.symvers tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS \
37
-		  signing_key.priv signing_key.x509 x509.genkey		\
38
-		  extra_certificates signing_key.x509.keyid		\
39
-		  signing_key.x509.signer include/linux/version.h
40
+MRPROPER_DIRS  += ""
41
+MRPROPER_FILES += ""
42
 
43
 # clean - Delete most, but leave enough to build external modules
44
 #
45
@@ -1196,7 +1189,7 @@ clean: archclean vmlinuxclean
46
 #
47
 mrproper: rm-dirs  := $(wildcard $(MRPROPER_DIRS))
48
 mrproper: rm-files := $(wildcard $(MRPROPER_FILES))
49
-mrproper-dirs      := $(addprefix _mrproper_,Documentation/DocBook scripts)
50
+mrproper-dirs      := $(addprefix _mrproper_,Documentation/DocBook)
51
 
52
 PHONY += $(mrproper-dirs) mrproper archmrproper
53
 $(mrproper-dirs):
54
diff -Nurp linux-3.18-rc6-mga1/scripts/kconfig/Makefile linux-3.18-rc6-mga1-mrp/scripts/kconfig/Makefile
55
--- linux-3.18-rc6-mga1/scripts/kconfig/Makefile	2014-11-30 01:37:14.554576609 +0200
56
+++ linux-3.18-rc6-mga1-mrp/scripts/kconfig/Makefile	2014-11-30 01:37:46.312753291 +0200
57
@@ -15,26 +15,19 @@ endif
58
 unexport CONFIG_
59
 
60
 xconfig: $(obj)/qconf 3rdparty/Makefile
61
-	$< $(Kconfig)
62
 
63
 gconfig: $(obj)/gconf 3rdparty/Makefile
64
-	$< $(Kconfig)
65
 
66
 menuconfig: $(obj)/mconf 3rdparty/Makefile
67
-	$< $(Kconfig)
68
 
69
 config: $(obj)/conf 3rdparty/Makefile
70
-	$< --oldaskconfig $(Kconfig)
71
 
72
 nconfig: $(obj)/nconf 3rdparty/Makefile
73
-	$< $(Kconfig)
74
 
75
 oldconfig: $(obj)/conf 3rdparty/Makefile
76
-	$< --$@ $(Kconfig)
77
 
78
 silentoldconfig: $(obj)/conf 3rdparty/Makefile
79
 	$(Q)mkdir -p include/config include/generated
80
-	$< --$@ $(Kconfig)
81
 
82
 localyesconfig localmodconfig: $(obj)/streamline_config.pl $(obj)/conf 3rdparty/Makefile
83
 	$(Q)mkdir -p include/config include/generated
84
@@ -77,32 +70,21 @@ update-po-config: $(obj)/kxgettext $(obj
85
 PHONY += allnoconfig allyesconfig allmodconfig alldefconfig randconfig
86
 
87
 allnoconfig allyesconfig allmodconfig alldefconfig randconfig: $(obj)/conf 3rdparty/Makefile
88
-	$< --$@ $(Kconfig)
89
 
90
 PHONY += listnewconfig olddefconfig oldnoconfig savedefconfig defconfig
91
 
92
 listnewconfig olddefconfig: $(obj)/conf 3rdparty/Makefile
93
-	$< --$@ $(Kconfig)
94
 
95
 # oldnoconfig is an alias of olddefconfig, because people already are dependent
96
 # on its behavior(sets new symbols to their default value but not 'n') with the
97
 # counter-intuitive name.
98
 oldnoconfig: $(obj)/conf 3rdparty/Makefile
99
-	$< --olddefconfig $(Kconfig)
100
 
101
 savedefconfig: $(obj)/conf 3rdparty/Makefile
102
-	$< --$@=defconfig $(Kconfig)
103
 
104
 defconfig: $(obj)/conf 3rdparty/Makefile
105
-ifeq ($(KBUILD_DEFCONFIG),)
106
-	$< --defconfig $(Kconfig)
107
-else
108
-	@echo "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'"
109
-	$(Q)$< --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig)
110
-endif
111
 
112
 %_defconfig: $(obj)/conf 3rdparty/Makefile
113
-	$(Q)$< --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig)
114
 
115
 configfiles=$(wildcard $(srctree)/kernel/configs/$(1).config $(srctree)/arch/$(SRCARCH)/configs/$(1).config)
116
 
view file @ ba960dc4e6
... ... --- /dev/null
... ... +++ b/kernel-3.18.11-69.spec
... ... @@ -0,0 +1,4221 @@
1
# MIB header
2
3
%if %{mdvver} <= 201100
4
%define distsuffix mib
5
%define disttag %{distsuffix}
6
Vendor: MIB - Mandriva International Backports
7
%endif
8
9
Packager: Nicolo' Costanza <abitrules@yahoo.it>
10
# end MIB header
11
12
#
13
%define kernelversion	3
14
%define patchlevel	18
15
# sublevel is now used for -stable patches
16
%define sublevel	11
17
18
# Package release
19
# Experimental kernel serie with CK patches, BFS, BFQ, TOI, UKSM
20
%define mibrel		1
21
22
# kernel Makefile extraversion is substituted by
23
# kpatch wich are either 0 (empty), rc (kpatch)
24
%define kpatch		0
25
# kernel.org -gitX patch (only the number after "git")
26
%define kgit		0
27
28
# kernel base name (also name of srpm)
29
%define kname 		kernel
30
31
# Patch tarball tag
32
%define ktag		nicco
33
34
# define rpmtag		%{disttag}
35
%define rpmtag		%{disttag}
36
%if %kpatch
37
%if %kgit
38
%define rpmrel		%mkrel 0.%{kpatch}.%{kgit}.%{mibrel}
39
%else
40
%define rpmrel		%mkrel 0.%{kpatch}.%{mibrel}
41
%endif
42
%else
43
%define rpmrel		ql
44
%endif
45
46
# fakerel and fakever never change, they are used to fool
47
# rpm/urpmi/smart and ensure the kernels are installed,
48
# not upgraded so old kernel is not overwritten or removed
49
%define fakever		1
50
%define fakerel 	%mkrel 1
51
52
# version defines
53
%define kversion  	%{kernelversion}.%{patchlevel}.%{sublevel}
54
%define kverrel   	%{kversion}-%{rpmrel}
55
56
# When we are using a pre/rc patch, the tarball is a sublevel -1
57
%if %kpatch
58
%if %sublevel
59
%define tar_ver   	%{kernelversion}.%{patchlevel}
60
%else
61
%define tar_ver		%{kernelversion}.%(expr %{patchlevel} - 1)
62
%endif
63
%define patch_ver 	%{kversion}-%{kpatch}-%{ktag}%{mibrel}
64
%else
65
%define tar_ver   	%{kernelversion}.%{patchlevel}
66
%define patch_ver 	%{kversion}-%{ktag}%{mibrel}
67
%endif
68
69
# Used for not making too long names for rpms or search paths
70
# replaced mibrel with rpmrel / release > we can use only ONE sources folder for nrj & nrjQL
71
%if %kpatch
72
%if %kgit
73
%define buildrpmrel     0.%{kpatch}.%{kgit}.%{rpmrel}%{rpmtag}
74
%else
75
%define buildrpmrel     0.%{kpatch}.%{rpmrel}%{rpmtag}
76
%endif
77
%else
78
%define buildrpmrel     %{rpmrel}%{rpmtag}
79
%endif
80
%define buildrel     	%{kversion}-%{buildrpmrel}
81
82
# Having different top level names for packges means that you have to remove
83
# them by hard :(
84
%define top_dir_name 	%{kname}-%{_arch}
85
86
%define build_dir 	${RPM_BUILD_DIR}/%{top_dir_name}
87
%define src_dir 	%{build_dir}/linux-%{tar_ver}
88
89
# Disable useless debug rpms...
90
%define _enable_debug_packages 	%{nil}
91
%define debug_package 		%{nil}
92
93
# Build defines
94
%define build_doc 		1
95
%define build_source 		1
96
%define build_devel 		1
97
98
%define build_debug 		0
99
100
%define	cross_header_archs	arm arm64 mips
101
102
#
103
# Old Mandriva kernel flavours plus new two PAE flavours
104
#
105
106
#
107
# MIB experimental low latency optimized flavours
108
#
109
110
# Build nrjQL desktop (i686 / 4GB) / x86_64 / sparc64 sets
111
%define build_nrjQL_desktop			1
112
113
# Build nrjQL realtime (i686 / 4GB) / x86_64 / sparc64 sets
114
%define build_nrjQL_realtime			0
115
116
# Build nrjQL laptop (i686 / 4GB) / x86_64
117
%define build_nrjQL_laptop			0
118
119
# Build nrjQL netbook (i686 / 4GB) / x86_64
120
%define build_nrjQL_netbook			0
121
122
# Build nrjQL_server (i686 / 64GB)/x86_64 / sparc64 sets
123
%define build_nrjQL_server			0
124
125
# Build nrjQL_gameserver (i686 / 64GB)/x86_64 / sparc64 sets
126
%define build_nrjQL_server_games		0
127
128
# Build nrjQL_gameserver (i686 / 64GB)/x86_64 / sparc64 sets
129
%define build_nrjQL_server_computing		0
130
131
#
132
# MIB experimental low latency optimized flavours with PAE 
133
#
134
135
# Build nrjQL desktop pae (i686 / 64GB)
136
%ifarch %{ix86}
137
%define build_nrjQL_desktop_pae			0
138
%endif
139
140
# Build nrjQL realtime pae (i686 / 64GB)
141
%ifarch %{ix86}
142
%define build_nrjQL_realtime_pae		0
143
%endif
144
145
# Build nrjQL laptop pae (i686 / 64GB)
146
%ifarch %{ix86}
147
%define build_nrjQL_laptop_pae			0
148
%endif
149
150
# Build nrjQL netbook pae (i686 / 64GB)
151
%ifarch %{ix86}
152
%define build_nrjQL_netbook_pae			0
153
%endif
154
155
#
156
# Begin > experimental "cpu level" optimized flavours
157
#
158
159
# Build nrjQL desktop Intel Core2 (mcore2 / 4GB)
160
%ifarch %{ix86}
161
%define build_nrjQL_desktop_core2	   	0
162
%endif
163
164
# Build nrjQL desktop Intel Core2 pae (mcore2 / 64GB)
165
%ifarch %{ix86}
166
%define build_nrjQL_desktop_core2_pae  	 	0
167
%endif
168
169
#
170
# End for > experimental "cpu level" optimized flavours
171
# END OF FLAVOURS
172
173
174
# build perf and cpupower tools
175
%if %{mdvver} == 201500
176
%define build_perf		1
177
%define build_cpupower		1
178
%endif
179
%if %{mdvver} == 201410
180
%define build_perf		1
181
%define build_cpupower		1
182
%endif
183
%if %{mdvver} == 201400
184
%define build_perf		1
185
%define build_cpupower		1
186
%endif
187
%if %{mdvver} == 201300
188
%define build_perf		1
189
%define build_cpupower		1
190
%endif
191
%if %{mdvver} == 201210
192
%define build_perf		0
193
%define build_cpupower		1
194
%endif
195
%if %{mdvver} == 201200
196
%define build_perf		0
197
%define build_cpupower		1
198
%endif
199
200
# compress modules with xz
201
%if %{mdvver} >= 201200
202
%define build_modxz		1
203
%else
204
%define build_modxz		0
205
%endif
206
207
# ARM builds
208
%ifarch %{arm}
209
%define build_desktop		0
210
%define build_netbook		0
211
%define build_server		0
212
%define build_iop32x		0
213
%define build_kirkwood		1
214
%define build_versatile		1
215
# no cpupower tools on arm yet
216
%define build_cpupower		0
217
# arm is currently not using xz
218
%define build_modxz		0
219
%endif
220
# End of user definitions
221
222
223
# buildtime flags
224
%{?_without_nrjQL_desktop: %global build_nrjQL_desktop 0}
225
%{?_without_nrjQL_realtime: %global build_nrjQL_realtime 0}
226
227
%{?_without_nrjQL_laptop: %global build_nrjQL_laptop 0}
228
%{?_without_nrjQL_laptop: %global build_nrjQL_netbook 0}
229
230
%{?_without_nrjQL_server: %global build_nrjQL_server 0}
231
%{?_without_nrjQL_gameserver: %global build_nrjQL_server_games 0}
232
%{?_without_nrjQL_gameserver: %global build_nrjQL_server_computing 0}
233
234
%{?_without_nrjQL_desktop_pae: %global build_nrjQL_desktop_pae 0}
235
%{?_without_nrjQL_desktop_pae: %global build_nrjQL_realtime_pae 0}
236
237
%{?_without_nrjQL_laptop_pae: %global build_nrjQL_laptop_pae 0}
238
%{?_without_nrjQL_laptop_pae: %global build_nrjQL_netbook_pae 0}
239
240
%{?_without_nrjQL_desktop_core2: %global build_nrjQL_desktop_core2 0}
241
%{?_without_nrjQL_desktop_core2_pae: %global build_nrjQL_desktop_core2_pae 0}
242
243
%{?_without_doc: %global build_doc 0}
244
%{?_without_source: %global build_source 0}
245
%{?_without_devel: %global build_devel 0}
246
%{?_without_debug: %global build_debug 0}
247
%{?_without_perf: %global build_perf 0}
248
%{?_without_cpupower: %global build_cpupower 0}
249
%{?_without_modxz: %global build_modxz 0}
250
251
252
%{?_with_nrjQL_desktop: %global build_nrjQL_desktop 1}
253
%{?_with_nrjQL_realtime: %global build_nrjQL_realtime 1}
254
255
%{?_with_nrjQL_laptop: %global build_nrjQL_laptop 1}
256
%{?_with_nrjQL_netbook: %global build_nrjQL_netbook 1}
257
258
%{?_with_nrjQL_server: %global build_nrjQL_server 1}
259
%{?_with_nrjQL_gameserver: %global build_nrjQL_server_games 1}
260
%{?_with_nrjQL_gameserver: %global build_nrjQL_server_computing 1}
261
262
%{?_with_nrjQL_desktop_pae: %global build_nrjQL_desktop_pae 1}
263
%{?_with_nrjQL_realtime_pae: %global build_nrjQL_realtime_pae 1}
264
265
%{?_with_nrjQL_laptop_pae: %global build_nrjQL_laptop_pae 1}
266
%{?_with_nrjQL_laptop_pae: %global build_nrjQL_netbook_pae 1}
267
268
%{?_with_nrjQL_desktop_core2: %global build_nrjQL_desktop_core2 1}
269
%{?_with_nrjQL_desktop_core2_pae: %global build_nrjQL_desktop_core2_pae 1}
270
271
%{?_with_doc: %global build_doc 1}
272
%{?_with_source: %global build_source 1}
273
%{?_with_devel: %global build_devel 1}
274
%{?_with_debug: %global build_debug 1}
275
%{?_with_perf: %global build_perf 1}
276
%{?_with_cpupower: %global build_cpupower 1}
277
%{?_with_modxz: %global build_modxz 1}
278
279
280
# ARM builds
281
%{?_with_iop32x: %global build_iop32x 1}
282
%{?_with_kirkwood: %global build_kirkwood 1}
283
%{?_with_versatile: %global build_versatile 1}
284
%{?_without_iop32x: %global build_iop32x 0}
285
%{?_without_kirkwood: %global build_kirkwood 0}
286
%{?_without_versatile: %global build_versatile 0}
287
288
# For the .nosrc.rpm
289
%define build_nosrc 	0
290
%{?_with_nosrc: %global build_nosrc 1}
291
292
293
############################################################
294
### Linker start1 > Check point to build for omv or rosa ###
295
############################################################
296
%if %{mdvver} == 201500
297
%if %cross_compiling
298
%if %(if [ -z "$CC" ] ; then echo 0; else echo 1; fi)
299
%define kmake %make ARCH=%target_arch CROSS_COMPILE=%(echo %__cc |sed -e 's,-gcc,-,') CC="$CC" LD="$LD" LDFLAGS="$LDFLAGS"
300
%else
301
%define kmake %make ARCH=%target_arch CROSS_COMPILE=%(echo %__cc |sed -e 's,-gcc,-,') LD="$LD" LDFLAGS="$LDFLAGS"
302
%endif
303
# there are places where parallel make don't work
304
%define smake make ARCH=%target_arch CROSS_COMPILE=%(echo %__cc |sed -e 's,-gcc,-,') LD="$LD" LDFLAGS="$LDFLAGS"
305
%else
306
%if %(if [ -z "$CC" ] ; then echo 0; else echo 1; fi)
307
%define kmake %make CC="$CC" LD="$LD" LDFLAGS="$LDFLAGS"
308
%else
309
%define kmake %make LD="$LD" LDFLAGS="$LDFLAGS"
310
%endif
311
# there are places where parallel make don't work
312
%define smake make LD="$LD" LDFLAGS="$LDFLAGS"
313
%endif
314
%endif
315
316
%if %{mdvver} == 201410
317
%if %(if [ -z "$CC" ] ; then echo 0; else echo 1; fi)
318
%define kmake %make CC="$CC"
319
%else
320
%define kmake %make
321
%endif
322
# there are places where parallel make don't work
323
%define smake make
324
%endif
325
326
%if %{mdvver} == 201400
327
%if %cross_compiling
328
%if %(if [ -z "$CC" ] ; then echo 0; else echo 1; fi)
329
%define kmake %make ARCH=%target_arch CROSS_COMPILE=%(echo %__cc |sed -e 's,-gcc,-,') CC="$CC" LD="$LD" LDFLAGS="$LDFLAGS"
330
%else
331
%define kmake %make ARCH=%target_arch CROSS_COMPILE=%(echo %__cc |sed -e 's,-gcc,-,') LD="$LD" LDFLAGS="$LDFLAGS"
332
%endif
333
# there are places where parallel make don't work
334
%define smake make ARCH=%target_arch CROSS_COMPILE=%(echo %__cc |sed -e 's,-gcc,-,') LD="$LD" LDFLAGS="$LDFLAGS"
335
%else
336
%if %(if [ -z "$CC" ] ; then echo 0; else echo 1; fi)
337
%define kmake %make CC="$CC" LD="$LD" LDFLAGS="$LDFLAGS"
338
%else
339
%define kmake %make LD="$LD" LDFLAGS="$LDFLAGS"
340
%endif
341
# there are places where parallel make don't work
342
%define smake make LD="$LD" LDFLAGS="$LDFLAGS"
343
%endif
344
%endif
345
346
%if %{mdvver} == 201300
347
%if %cross_compiling
348
%if %(if [ -z "$CC" ] ; then echo 0; else echo 1; fi)
349
%define kmake %make ARCH=%target_arch CROSS_COMPILE=%(echo %__cc |sed -e 's,-gcc,-,') CC="$CC" LD="$LD" LDFLAGS="$LDFLAGS"
350
%else
351
%define kmake %make ARCH=%target_arch CROSS_COMPILE=%(echo %__cc |sed -e 's,-gcc,-,') LD="$LD" LDFLAGS="$LDFLAGS"
352
%endif
353
# there are places where parallel make don't work
354
%define smake make ARCH=%target_arch CROSS_COMPILE=%(echo %__cc |sed -e 's,-gcc,-,') LD="$LD" LDFLAGS="$LDFLAGS"
355
%else
356
%if %(if [ -z "$CC" ] ; then echo 0; else echo 1; fi)
357
%define kmake %make CC="$CC" LD="$LD" LDFLAGS="$LDFLAGS"
358
%else
359
%define kmake %make LD="$LD" LDFLAGS="$LDFLAGS"
360
%endif
361
# there are places where parallel make don't work
362
%define smake make LD="$LD" LDFLAGS="$LDFLAGS"
363
%endif
364
%endif
365
366
%if %{mdvver} < 201300
367
%if %(if [ -z "$CC" ] ; then echo 0; else echo 1; fi)
368
%define kmake %make CC="$CC"
369
%else
370
%define kmake %make
371
%endif
372
# there are places where parallel make don't work
373
%define smake make
374
%endif
375
###########################################################
376
###  Linker end1 > Check point to build for omv or rosa ###
377
###########################################################
378
379
380
# Parallelize xargs invocations on smp machines
381
%define kxargs xargs %([ -z "$RPM_BUILD_NCPUS" ] \\\
382
	&& RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
383
	[ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-P $RPM_BUILD_NCPUS")
384
385
# Sparc arch wants sparc64 kernels
386
%define target_arch    %(echo %{_arch} | sed -e 's/mips.*/mips/' -e 's/arm.*/arm/' -e 's/aarch64/arm64/')
387
388
389
#
390
# SRC RPM description
391
#
392
Summary: 	Linux kernel built for Mandriva and ROSA
393
Name:		%{kname}
394
Version: 	%{kversion}
395
Release: 	%{rpmrel}
396
License: 	GPLv2
397
Group: 	 	System/Kernel and hardware
398
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64
399
ExclusiveOS: 	Linux
400
URL:            http://www.kernel.org
401
402
####################################################################
403
#
404
# Sources
405
#
406
### This is for full SRC RPM
407
Source0: 	ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.x/linux-%{tar_ver}.tar.xz
408
Source1: 	ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.x/linux-%{tar_ver}.tar.sign
409
### This is for stripped SRC RPM
410
%if %build_nosrc
411
NoSource: 0
412
%endif
413
# This is for disabling *config, mrproper, prepare, scripts on -devel rpms
414
Source2: 	disable-mrproper-prepare-scripts-configs-in-devel-rpms.patch
415
416
Source4: 	README.kernel-sources
417
Source5:	kernel.rpmlintrc
418
419
# config and systemd service file from fedora
420
Source50:	cpupower.service
421
Source51:	cpupower.config
422
423
# our patch tarball
424
Source100: 	linux-%{patch_ver}.tar.xz
425
426
####################################################################
427
#
428
# Patches
429
430
#
431
# Patch0 to Patch100 are for core kernel upgrades.
432
#
433
434
# Pre linus patch: ftp://ftp.kernel.org/pub/linux/kernel/v3.0/testing
435
436
%if %kpatch
437
%if %sublevel
438
Patch2:		ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.x/stable-review/patch-%{kversion}-%{kpatch}.xz
439
Source11:	ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.x/stable-review/patch-%{kversion}-%{kpatch}.sign
440
%else
441
Patch1:		ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.x/testing/patch-%{kernelversion}.%{patchlevel}-%{kpatch}.xz
442
Source10: 	ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.x/testing/patch-%{kernelversion}.%{patchlevel}-%{kpatch}.sign	
443
%endif	
444
%endif
445
%if %kgit
446
Patch2:		ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.x/snapshots/patch-%{kernelversion}.%{patchlevel}-%{kpatch}-git%{kgit}.xz
447
Source11: 	ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.x/snapshots/patch-%{kernelversion}.%{patchlevel}-%{kpatch}-git%{kgit}.sign
448
%endif
449
%if %sublevel
450
%if %kpatch
451
%define prev_sublevel %(expr %{sublevel} - 1)
452
%if %prev_sublevel
453
Patch1:   	ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.x/patch-%{kernelversion}.%{patchlevel}.%{prev_sublevel}.xz
454
Source10: 	ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.x/patch-%{kernelversion}.%{patchlevel}.%{prev_sublevel}.sign
455
%endif
456
%else
457
Patch1:   	ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.x/patch-%{kversion}.xz
458
Source10: 	ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.x/patch-%{kversion}.sign
459
%endif
460
%endif
461
462
#END
463
####################################################################
464
465
# Defines for the things that are needed for all the kernels
466
#
467
%define common_desc_kernel The kernel package contains the Linux kernel (vmlinuz), the core of your \
468
Mandriva and ROSA operating system. The kernel handles the basic functions \
469
of the operating system: memory allocation, process allocation, device \
470
input and output, etc.
471
472
%define common_desc_kernel_smp This kernel relies on in-kernel smp alternatives to switch between up & smp \
473
mode depending on detected hardware. To force the kernel to boot in single \
474
processor mode, use the "nosmp" boot parameter.
475
476
477
### Global Requires/Provides
478
479
%if %{mdvver} == 201500
480
%define requires1	microcode
481
%define requires2	dracut >= 026
482
%define requires3	kmod >= 12
483
%define requires4	sysfsutils >=  2.1.0-12
484
%define requires5	kernel-firmware >=  20120219-1
485
%endif
486
487
%if %{mdvver} == 201410
488
%define requires1	bootloader-utils >= 1.15-8
489
%define requires2	dracut >= 017-16
490
%define requires3	kmod >= 7-6
491
%define requires4	sysfsutils >=  2.1.0-12
492
%define requires5	kernel-firmware >=  20120219-1
493
%endif
494
495
%if %{mdvver} == 201400
496
%define requires1	microcode
497
%define requires2	dracut >= 026
498
%define requires3	kmod >= 12
499
%define requires4	sysfsutils >=  2.1.0-12
500
%define requires5	kernel-firmware >=  20120219-1
501
%endif
502
503
%if %{mdvver} == 201300
504
%define requires1	microcode
505
%define requires2	dracut >= 026
506
%define requires3	kmod >= 12
507
%define requires4	sysfsutils >=  2.1.0-12
508
%define requires5	kernel-firmware >=  20120219-1
509
%endif
510
511
%if %{mdvver} == 201210
512
%define requires1	bootloader-utils >= 1.15-8
513
%define requires2	dracut >= 017-16
514
%define requires3	kmod >= 7-6
515
%define requires4	sysfsutils >=  2.1.0-12
516
%define requires5	kernel-firmware >=  20120219-1
517
%endif
518
519
%if %{mdvver} == 201200
520
%define requires1	bootloader-utils >= 1.15-8
521
%define requires2	dracut >= 017-16
522
%define requires3	module-init-tools >= 3.16-5
523
%define requires4	sysfsutils >=  2.1.0-12
524
%define requires5	kernel-firmware >=  20120219-1
525
%endif
526
527
%if %{mdvver} < 201200
528
%define requires1	bootloader-utils >= 1.13-1
529
%define requires2	mkinitrd >= 4.2.17-31
530
%define requires3	module-init-tools >= 3.0-7
531
%define requires4	sysfsutils >= 1.3.0-1
532
%define requires5	kernel-firmware >= 20101024-2
533
%endif
534
535
%define kprovides1 	%{kname} = %{kverrel}
536
%define kprovides2 	kernel = %{tar_ver}
537
%define kprovides3 	alsa = 1.0.27
538
%define kprovides_server drbd-api = 88
539
540
%define	kobsoletes1	dkms-r8192se <= 0019.1207.2010-2
541
%define	kobsoletes2	dkms-lzma <= 4.43-32
542
%define	kobsoletes3	dkms-psb <= 4.41.1-7
543
544
# conflict dkms packages that dont support kernel-3.15
545
# all driver versions must be carefully checked to add
546
547
# config for all distros apart mdvver 2013.0 & 2012.1
548
%define kconflicts1	dkms-broadcom-wl < 5.100.82.112-12
549
%define kconflicts2	dkms-fglrx < 13.200.5-1
550
%define kconflicts3	dkms-nvidia-current < 325.15-2
551
%define kconflicts4	dkms-nvidia-long-lived < 304.88-3
552
%define kconflicts5	dkms-nvidia173 < 173.14.37-4
553
# nvidia96xx does not support this kernel or x11-server-1.13
554
555
%if %{mdvver} >= 201300
556
%define kconflicts1	dkms-broadcom-wl < 5.100.82.112-12
557
%define kconflicts2	dkms-fglrx < 13.200.5-1
558
%define kconflicts3	dkms-nvidia-current < 325.15-1
559
%define kconflicts4	dkms-nvidia-long-lived < 304.123-1
560
%define kconflicts5	dkms-nvidia304 < 304.108-1
561
# nvidia173 does not support this kernel
562
# nvidia96xx does not support this kernel or x11-server-1.13
563
%endif
564
565
%if %{mdvver} == 201210
566
%define kconflicts1	dkms-broadcom-wl < 5.100.82.112-12
567
%define kconflicts2	dkms-fglrx < 13.200.5-1
568
%define kconflicts3	dkms-nvidia-current < 325.15-2
569
%define kconflicts4	dkms-nvidia-long-lived < 304.108-1
570
%define kconflicts5	dkms-nvidia173 < 173.14.37-4
571
# nvidia96xx does not support this kernel or x11-server-1.13
572
%endif
573
574
Autoreqprov: 	no
575
576
BuildRequires: 	bc
577
BuildRequires: 	binutils
578
BuildRequires: 	gcc
579
# For power tools
580
BuildRequires:	pkgconfig(ncurses)
581
582
%if %{mdvver} >= 201210
583
BuildRequires:	kmod-devel kmod-compat
584
%else
585
BuildRequires:	module-init-tools
586
%endif
587
588
%ifarch x86_64
589
BuildRequires:  numa-devel
590
%endif
591
592
# BuildRequires:  audit-devel perl-devel (need only for perf???)
593
594
# for perf, cpufreq and all other tools
595
596
# for cpupower
597
%if %{build_cpupower}
598
BuildRequires:		pciutils-devel
599
%endif
600
601
# for docs
602
%if %{build_doc}
603
BuildRequires:          xmlto
604
%endif
605
606
# for perf
607
%if %{build_perf}
608
%if %{mdvver} == 201500
609
BuildRequires:		pkgconfig(python2)
610
%endif
611
%if %{mdvver} >= 201210
612
BuildRequires:		libunwind-devel
613
%endif
614
BuildRequires:		asciidoc
615
BuildRequires:		audit-devel
616
BuildRequires:		binutils-devel
617
BuildRequires:		bison
618
# BuildRequires:	docbook-style-xsl
619
BuildRequires:		elfutils-devel
620
BuildRequires:		flex
621
# BuildRequires:	gettext
622
# BuildRequires:	gtk2-devel
623
BuildRequires:		newt-devel
624
BuildRequires:		perl-devel
625
# BuildRequires:	perl(ExtUtils::Embed)
626
BuildRequires:		pkgconfig(gtk+-2.0)
627
BuildRequires:		python-devel
628
# BuildRequires:	xmlto
629
BuildRequires:		zlib-devel
630
%endif
631
632
%ifarch %{arm}
633
BuildRequires:		uboot-mkimage
634
%endif
635
636
# might be useful too:
637
Suggests:		microcode
638
639
640
%description
641
%common_desc_kernel
642
%ifnarch %{arm}
643
%common_desc_kernel_smp
644
%endif
645
646
# Define obsolete/provides to help automatic upgrades of old kernel-xen-pvops
647
%define latest_obsoletes_server kernel-xen-pvops-latest < 3.2.1-1
648
%define latest_provides_server kernel-xen-pvops-latest = %{kverrel}
649
%define latest_obsoletes_devel_server kernel-xen-pvops-devel-latest < 3.2.1-1
650
%define latest_provides_devel_server kernel-xen-pvops-devel-latest = %{kverrel}
651
652
# mkflavour() name flavour processor
653
# name: the flavour name in the package name
654
# flavour: first parameter of CreateKernel()
655
%define mkflavour()					\
656
%package -n %{kname}-%{1}-%{buildrel}			\
657
Version:	%{fakever}				\
658
Release:	%{fakerel}				\
659
Provides:	%kprovides1 %kprovides2 %kprovides3	\
660
%{expand:%%{?kprovides_%{1}:Provides: %{kprovides_%{1}}}} \
661
Provides:   %{kname}-%{1}               		\
662
%if %{build_nrjQL_desktop}              		\
663
Provides:   kernel-desktop              		\
664
%endif                                  		\
665
Requires(pre):	%requires1 %requires2 %requires3 %requires4 \
666
Requires:	%requires2 %requires5 			\
667
Obsoletes:	%kobsoletes1 %kobsoletes2 %kobsoletes3	\
668
Conflicts:	%kconflicts1 %kconflicts2 %kconflicts3	\
669
Conflicts:	%kconflicts4 %kconflicts5		\
670
Provides:	should-restart = system			\
671
Suggests:	crda					\
672
%ifarch %{ix86}						\
673
Conflicts:	arch(x86_64)				\
674
%endif							\
675
Summary:	%{expand:%{summary_%(echo %{1} | sed -e "s/-/_/")}} \
676
Group:		System/Kernel and hardware		\
677
%description -n %{kname}-%{1}-%{buildrel}		\
678
%common_desc_kernel %{expand:%{info_%(echo %{1} | sed -e "s/-/_/")}} \
679
%ifnarch %{arm}						\
680
%common_desc_kernel_smp					\
681
%endif							\
682
							\
683
%if %build_devel					\
684
%package -n	%{kname}-%{1}-devel-%{buildrel}		\
685
Version:	%{fakever}				\
686
Release:	%{fakerel}				\
687
Requires:	glibc-devel ncurses-devel make gcc perl	\
688
Summary:	The kernel-devel files for %{kname}-%{1}-%{buildrel} \
689
Group:		Development/Kernel			\
690
Provides:	%{kname}-devel = %{kverrel} 		\
691
Provides:	%{kname}-%{1}-devel			\
692
%ifarch %{ix86}						\
693
Conflicts:	arch(x86_64)				\
694
%endif							\
695
%description -n %{kname}-%{1}-devel-%{buildrel}		\
696
This package contains the kernel files (headers and build tools) \
697
that should be enough to build additional drivers for   \
698
use with %{kname}-%{1}-%{buildrel}.                     \
699
							\
700
If you want to build your own kernel, you need to install the full \
701
%{kname}-source-%{buildrel} rpm.			\
702
							\
703
%endif							\
704
							\
705
%if %build_debug					\
706
%package -n	%{kname}-%{1}-%{buildrel}-debuginfo	\
707
Version:	%{fakever}				\
708
Release:	%{fakerel}				\
709
Summary:	Files with debuginfo for %{kname}-%{1}-%{buildrel} \
710
Group:		Development/Debug			\
711
Provides:	kernel-debug = %{kverrel} 		\
712
%ifarch %{ix86}						\
713
Conflicts:	arch(x86_64)				\
714
%endif							\
715
%description -n %{kname}-%{1}-%{buildrel}-debuginfo	\
716
This package contains the files with debuginfo to aid in debug tasks \
717
when using %{kname}-%{1}-%{buildrel}.			\
718
							\
719
If you need to look at debug information or use some application that \
720
needs debugging info from the kernel, this package may help. \
721
							\
722
%endif							\
723
							\
724
%package -n %{kname}-%{1}-latest			\
725
Version:	%{kversion}				\
726
Release:	%{rpmrel}				\
727
Summary:	Virtual rpm for latest %{kname}-%{1}	\
728
Group:		System/Kernel and hardware		\
729
Requires:	%{kname}-%{1}-%{buildrel}		\
730
%ifarch %{ix86}						\
731
Conflicts:	arch(x86_64)				\
732
%endif							\
733
%{expand:%%{?latest_obsoletes_%{1}:Obsoletes: %{latest_obsoletes_%{1}}}} \
734
%{expand:%%{?latest_provides_%{1}:Provides: %{latest_provides_%{1}}}} \
735
%description -n %{kname}-%{1}-latest			\
736
This package is a virtual rpm that aims to make sure you always have the \
737
latest %{kname}-%{1} installed...			\
738
							\
739
%if %build_devel					\
740
%package -n %{kname}-%{1}-devel-latest			\
741
Version:	%{kversion}				\
742
Release:	%{rpmrel}				\
743
Summary:	Virtual rpm for latest %{kname}-%{1}-devel \
744
Group:		Development/Kernel			\
745
Requires:	%{kname}-%{1}-devel-%{buildrel}		\
746
%ifarch %{ix86}						\
747
Conflicts:	arch(x86_64)				\
748
%endif							\
749
Provides:	%{kname}-devel-latest			\
750
%{expand:%%{?latest_obsoletes_devel_%{1}:Obsoletes: %{latest_obsoletes_devel_%{1}}}} \
751
%{expand:%%{?latest_provides_devel_%{1}:Provides: %{latest_provides_devel_%{1}}}} \
752
%description -n %{kname}-%{1}-devel-latest		\
753
This package is a virtual rpm that aims to make sure you always have the \
754
latest %{kname}-%{1}-devel installed...			\
755
							\
756
%endif							\
757
							\
758
%post -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1}-post \
759
%posttrans -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1}-posttrans \
760
%preun -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1}-preun \
761
%postun -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1}-postun \
762
							\
763
%if %build_devel					\
764
%post -n %{kname}-%{1}-devel-%{buildrel} -f kernel_devel_files.%{1}-post \
765
%preun -n %{kname}-%{1}-devel-%{buildrel} -f kernel_devel_files.%{1}-preun \
766
%postun -n %{kname}-%{1}-devel-%{buildrel} -f kernel_devel_files.%{1}-postun \
767
%endif							\
768
							\
769
%files -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1} \
770
%files -n %{kname}-%{1}-latest				\
771
							\
772
%if %build_devel					\
773
%files -n %{kname}-%{1}-devel-%{buildrel} -f kernel_devel_files.%{1} \
774
%files -n %{kname}-%{1}-devel-latest			\
775
%endif							\
776
							\
777
%if %build_debug					\
778
%files -n %{kname}-%{1}-%{buildrel}-debuginfo -f kernel_debug_files.%{1} \
779
%endif
780
781
#
782
# kernel-nrjQL-desktop: nrjQL, i686, smp-alternatives, 4 GB / x86_64
783
#
784
%if %build_nrjQL_desktop
785
%ifarch %{ix86}
786
%define summary_nrjQL_desktop Linux Kernel for desktop use with i686 & 4GB RAM
787
%define info_nrjQL_desktop This kernel is compiled for desktop use, single or \
788
multiple i686 processor(s)/core(s), less than 4GB RAM (usually 3-3.5GB detected)\
789
using HZ_1000, full preempt, rcu boost, CK1, BFS cpu scheduler, BFQ I/O scheduler.\
790
This kernel relies on in-kernel smp alternatives to switch between up & smp \
791
mode depending on detected hardware. To force the kernel to boot in single \
792
processor mode, use the "nosmp" boot parameter.
793
%else
794
%define summary_nrjQL_desktop Linux Kernel for desktop use with %{_arch}
795
%define info_nrjQL_desktop This kernel is compiled for desktop use, single or \
796
multiple %{_arch} processor(s)/core(s),\
797
using HZ_1000, full preempt, rcu boost, CK1, BFS cpu scheduler, BFQ I/O scheduler.\
798
This kernel relies on in-kernel smp alternatives to switch between up & smp \
799
mode depending on detected hardware. To force the kernel to boot in single \
800
processor mode, use the "nosmp" boot parameter.
801
%endif
802
%mkflavour nrjQL-desktop
803
%endif
804
805
#
806
# kernel-nrjQL-realtime: nrjQL, i686, smp-alternatives, 4 GB / x86_64
807
#
808
%if %build_nrjQL_realtime
809
%ifarch %{ix86}
810
%define summary_nrjQL_realtime Linux Kernel for desktop and realtime use with i686 & 4GB RAM
811
%define info_nrjQL_realtime This kernel is compiled for desktop and realtime use, single or \
812
multiple i686 processor(s)/core(s) and less than 4GB RAM (usually 3-3.5GB detected), \
813
using full preempt and realtime, rcu boost, CK1, BFS cpu scheduler, BFQ I/O scheduler.\
814
This kernel relies on in-kernel smp alternatives to switch between up & smp \
815
mode depending on detected hardware. To force the kernel to boot in single \
816
processor mode, use the "nosmp" boot parameter.
817
%else
818
%define summary_nrjQL_realtime Linux Kernel for desktop and realtime use with %{_arch}
819
%define info_nrjQL_realtime This kernel is compiled for desktop and realtime use, single or \
820
multiple %{_arch} processor(s)/core(s), \
821
using full preempt and realtime, rcu boost, CK1, BFS cpu scheduler, BFQ I/O scheduler.\
822
This kernel relies on in-kernel smp alternatives to switch between up & smp \
823
mode depending on detected hardware. To force the kernel to boot in single \
824
processor mode, use the "nosmp" boot parameter.
825
%endif
826
%mkflavour nrjQL-realtime
827
%endif
828
829
#
830
# kernel-nrjQL-laptop: nrjQL, i686, smp-alternatives, 4 GB / x86_64
831
#
832
%if %build_nrjQL_laptop
833
%ifarch %{ix86}
834
%define summary_nrjQL_laptop Linux Kernel for laptop use with i686 & 4GB RAM
835
%define info_nrjQL_laptop This kernel is compiled for laptop use, single or \
836
multiple i686 processor(s)/core(s) and less than 4GB RAM (usually 3-3.5GB detected), \
837
using HZ_300 and CPU frequency scaling ondemand default, everything to save battery, \
838
using full preempt, rcu boost, CK1, BFS cpu scheduler, BFQ I/O scheduler, \
839
and some other laptop-specific optimizations. \
840
If you want to sacrifice battery life for performance, you better use the \
841
%{kname}-desktop. \
842
This kernel relies on in-kernel smp alternatives to switch between up & smp \
843
mode depending on detected hardware. To force the kernel to boot in single \
844
processor mode, use the "nosmp" boot parameter. \
845
NOTE! This kernel also uses TuxOnIce by default.
846
%else
847
%define summary_nrjQL_laptop Linux Kernel for laptop use with %{_arch}
848
%define info_nrjQL_laptop This kernel is compiled for laptop use, single or \
849
multiple %{_arch} processor(s)/core(s), \
850
using HZ_300 and CPU frequency scaling ondemand default, everything to save battery, \
851
using full preempt, rcu boost, CK1, BFS cpu scheduler, BFQ I/O scheduler, \
852
and some other laptop-specific optimizations. \
853
If you want to sacrifice battery life for performance, you better use the \
854
%{kname}-desktop. \
855
This kernel relies on in-kernel smp alternatives to switch between up & smp \
856
mode depending on detected hardware. To force the kernel to boot in single \
857
processor mode, use the "nosmp" boot parameter. \
858
NOTE! This kernel also uses TuxOnIce by default.
859
%endif
860
%mkflavour nrjQL-laptop
861
%endif
862
863
#
864
# kernel-nrjQL-netbook: nrj, i686, smp-alternatives, 4 GB / x86_64
865
#
866
%if %build_nrjQL_netbook
867
%ifarch %{ix86}
868
%define summary_nrjQL_netbook Linux Kernel for netbook use with i686 & 4GB RAM
869
%define info_nrjQL_netbook This kernel is compiled for netbook use, single or \
870
multiple i686 processor(s)/core(s) and less than 4GB RAM (usually 3-3.5GB detected), \
871
using HZ_250 and CPU frequency scaling ondemand default, everything to save battery, \
872
using full preempt, rcu boost, CK1, BFS cpu scheduler, BFQ I/O scheduler, \
873
and some other netbook-specific optimizations. \
874
If you want to sacrifice battery life for performance, you better use the \
875
%{kname}-desktop. \
876
This kernel relies on in-kernel smp alternatives to switch between up & smp \
877
mode depending on detected hardware. To force the kernel to boot in single \
878
processor mode, use the "nosmp" boot parameter. \
879
NOTE! This kernel also uses TuxOnIce by default.
880
%else
881
%define summary_nrjQL_netbook Linux Kernel for netbook use with %{_arch}
882
%define info_nrjQL_netbook This kernel is compiled for netbook use, single or \
883
multiple %{_arch} processor(s)/core(s), \
884
using HZ_250 and CPU frequency scaling ondemand default, everything to save battery, \
885
using full preempt, rcu boost, CK1, BFS cpu scheduler, BFQ I/O scheduler, \
886
and some other netbook-specific optimizations. \
887
If you want to sacrifice battery life for performance, you better use the \
888
%{kname}-desktop. \
889
This kernel relies on in-kernel smp alternatives to switch between up & smp \
890
mode depending on detected hardware. To force the kernel to boot in single \
891
processor mode, use the "nosmp" boot parameter. \
892
NOTE! This kernel also uses TuxOnIce by default.
893
%endif
894
%mkflavour nrjQL-netbook
895
%endif
896
897
#
898
# kernel-server: i686, smp-alternatives, 64 GB / x86_64
899
#
900
%if %build_nrjQL_server
901
%ifarch %{ix86}
902
%define summary_nrjQL_server Linux Kernel for server use with i686 & 64GB RAM
903
%define info_nrjQL_server This kernel is compiled for server use, single or \
904
multiple i686 processor(s)/core(s) and up to 64GB RAM using PAE, using \
905
no preempt, HZ_100, CK1, BFS cpu scheduler, BFQ I/O scheduler. \
906
This kernel relies on in-kernel smp alternatives to switch between up & smp \
907
mode depending on detected hardware. To force the kernel to boot in single \
908
processor mode, use the "nosmp" boot parameter.
909
%else
910
%define summary_nrjQL_server Linux Kernel for server use with %{_arch}
911
%define info_nrjQL_server This kernel is compiled for server use, single or \
912
multiple %{_arch} processor(s)/core(s), using no preempt, HZ_100, \
913
CK1, BFS cpu scheduler, BFQ I/O scheduler. \
914
This kernel relies on in-kernel smp alternatives to switch between up & smp \
915
mode depending on detected hardware. To force the kernel to boot in single \
916
processor mode, use the "nosmp" boot parameter.
917
%endif
918
%mkflavour nrjQL-server
919
%endif
920
921
#
922
# kernel-server-computing: i686, smp-alternatives, 64 GB / x86_64
923
#
924
%if %build_nrjQL_server_computing
925
%ifarch %{ix86}
926
%define summary_nrjQL_server_computing Linux Kernel for server use with i686 & 64GB RAM
927
%define info_nrjQL_server_computing This kernel is compiled for server use, to obtain a \
928
optimized dedicated encoding / compiling / computational machine, single or \
929
multiple i686 processor(s)/core(s) and up to 64GB RAM using PAE, using \
930
no preempt, HZ_100, CK1, BFS cpu scheduler, BFQ I/O scheduler. \
931
This kernel relies on in-kernel smp alternatives to switch between up & smp \
932
mode depending on detected hardware. To force the kernel to boot in single \
933
processor mode, use the "nosmp" boot parameter.
934
%else
935
%define summary_nrjQL_server_computing Linux Kernel for server use with %{_arch}
936
%define info_nrjQL_server_computing This kernel is compiled for server use, to obtain a \
937
optimized dedicated encoding / compiling / computational machine, single or \
938
multiple %{_arch} processor(s)/core(s), using no preempt, HZ_100, \
939
CK1, BFS cpu scheduler, BFQ I/O scheduler. \
940
This kernel relies on in-kernel smp alternatives to switch between up & smp \
941
mode depending on detected hardware. To force the kernel to boot in single \
942
processor mode, use the "nosmp" boot parameter.
943
%endif
944
%mkflavour nrjQL-server-computing
945
%endif
946
947
#
948
# kernel-server-games: i686, smp-alternatives, 64 GB / x86_64
949
#
950
%if %build_nrjQL_server_games
951
%ifarch %{ix86}
952
%define summary_nrjQL_server_games Linux Kernel for games server use with i686 & 64GB RAM
953
%define info_nrjQL_server_games This kernel is compiled for games server use, single or \
954
multiple i686 processor(s)/core(s) and up to 64GB RAM using PAE, \
955
using no preempt, HZ_3000, CK1, BFS cpu scheduler, BFQ I/O scheduler. \
956
This kernel relies on in-kernel smp alternatives to switch between up & smp \
957
mode depending on detected hardware. To force the kernel to boot in single \
958
processor mode, use the "nosmp" boot parameter.
959
%else
960
%define summary_nrjQL_server_games Linux Kernel for games server use with %{_arch}
961
%define info_nrjQL_server_games This kernel is compiled for games server use, single or \
962
multiple %{_arch} processor(s)/core(s), \
963
using no preempt, HZ_3000, CK1, BFS cpu scheduler, BFQ I/O scheduler. \
964
This kernel relies on in-kernel smp alternatives to switch between up & smp \
965
mode depending on detected hardware. To force the kernel to boot in single \
966
processor mode, use the "nosmp" boot parameter.
967
%endif
968
%mkflavour nrjQL-server-games
969
%endif
970
971
#
972
%ifarch %{ix86}
973
#
974
# kernel-nrjQL-desktop-pae: nrjQL, i686, smp-alternatives, 64GB
975
#
976
%if %build_nrjQL_desktop_pae
977
%define summary_nrjQL_desktop_pae Linux kernel for desktop use with i686 & upto 64GB RAM
978
%define info_nrjQL_desktop_pae This kernel is compiled for desktop use, single or \
979
multiple i686 processor(s)/core(s) and up to 64GB RAM using PAE, \
980
using HZ_1000, full preempt, rcu boost, CK1, BFS cpu scheduler, BFQ I/O scheduler.\
981
This kernel relies on in-kernel smp alternatives to switch between up & smp \
982
mode depending on detected hardware. To force the kernel to boot in single \
983
processor mode, use the "nosmp" boot parameter.
984
%mkflavour nrjQL-desktop-pae
985
%endif
986
%endif
987
988
#
989
%ifarch %{ix86}
990
#
991
# kernel-nrjQL-realtime-pae: nrjQL, i686, smp-alternatives, 64GB
992
#
993
%if %build_nrjQL_realtime_pae
994
%define summary_nrjQL_realtime_pae Linux kernel for desktop and realtime use with i686 & upto 64GB RAM
995
%define info_nrjQL_realtime_pae This kernel is compiled for desktop and realtime use, single or \
996
multiple i686 processor(s)/core(s) and up to 64GB RAM using PAE, \
997
using full preempt and realtime, rcu boost, CK1, BFS cpu scheduler, BFQ I/O scheduler.\
998
This kernel relies on in-kernel smp alternatives to switch between up & smp \
999
mode depending on detected hardware. To force the kernel to boot in single \
1000
processor mode, use the "nosmp" boot parameter.
1001
%mkflavour nrjQL-realtime-pae
1002
%endif
1003
%endif
1004
1005
#
1006
%ifarch %{ix86}
1007
#
1008
# kernel-nrjQL-laptop-pae: nrjQL, i686, smp-alternatives, 64 GB
1009
#
1010
%if %build_nrjQL_laptop_pae
1011
%define summary_nrjQL_laptop_pae Linux Kernel for for laptop use with i686 & upto 64GB RAM
1012
%define info_nrjQL_laptop_pae This kernel is compiled for laptop use, single or \
1013
multiple i686 processor(s)/core(s) and up to 64GB RAM using PAE, \
1014
using HZ_300 and CPU frequency scaling ondemand default, everything to save battery, \
1015
using full preempt, rcu boost, CK1, BFS cpu scheduler, BFQ I/O scheduler, \
1016
and some other laptop-specific optimizations. \
1017
If you want to sacrifice battery life for performance, you better use the \
1018
%{kname}-desktop. \
1019
This kernel relies on in-kernel smp alternatives to switch between up & smp \
1020
mode depending on detected hardware. To force the kernel to boot in single \
1021
processor mode, use the "nosmp" boot parameter. \
1022
NOTE! This kernel also uses TuxOnIce by default.
1023
%mkflavour nrjQL-laptop-pae
1024
%endif
1025
%endif
1026
1027
#
1028
%ifarch %{ix86}
1029
#
1030
# kernel-nrjQL-netbook-pae: nrjQL, i686, smp-alternatives, 64 GB
1031
#
1032
%if %build_nrjQL_netbook_pae
1033
%define summary_nrjQL_netbook_pae Linux Kernel for netbook use with i686 & upto 64GB RAM
1034
%define info_nrjQL_netbook_pae This kernel is compiled for netbook use, single or \
1035
multiple i686 processor(s)/core(s) and up to 64GB RAM using PAE, \
1036
using HZ_250 and CPU frequency scaling ondemand default, everything to save battery, \
1037
using full preempt, rcu boost, CK1, BFS cpu scheduler, BFQ I/O scheduler, \
1038
and some other netbook-specific optimizations. \
1039
If you want to sacrifice battery life for performance, you better use the \
1040
%{kname}-desktop. \
1041
This kernel relies on in-kernel smp alternatives to switch between up & smp \
1042
mode depending on detected hardware. To force the kernel to boot in single \
1043
processor mode, use the "nosmp" boot parameter. \
1044
NOTE! This kernel also uses TuxOnIce by default.
1045
%mkflavour nrjQL-netbook-pae
1046
%endif
1047
%endif
1048
1049
#
1050
%ifarch %{ix86}
1051
#
1052
# kernel-nrjQL-desktop-core2: nrjQL, Intel Core 2 and newer, smp-alternatives, 4 GB 
1053
#
1054
%if %build_nrjQL_desktop_core2
1055
%define summary_nrjQL_desktop_core2 Linux Kernel for desktop use with i686 & 4GB RAM
1056
%define info_nrjQL_desktop_core2 This kernel is compiled for desktop use, single or \
1057
multiple Intel Core 2 and newer processor(s)/core(s) and less than 4GB RAM (usually 3-3.5GB detected), \
1058
using HZ_1000, full preempt, rcu boost, CK1, BFS cpu scheduler, BFQ I/O scheduler.\
1059
This kernel relies on in-kernel smp alternatives to switch between up & smp \
1060
mode depending on detected hardware. To force the kernel to boot in single \
1061
processor mode, use the "nosmp" boot parameter.
1062
%mkflavour nrjQL-desktop-core2
1063
%endif
1064
%endif
1065
1066
#
1067
%ifarch %{ix86}
1068
#
1069
# kernel-nrjQL-desktop-core2-pae: nrjQL, Intel Core 2 and newer, smp-alternatives, 64 GB
1070
#
1071
%if %build_nrjQL_desktop_core2_pae
1072
%define summary_nrjQL_desktop_core2_pae Linux Kernel for desktop use with i686 & upto 64GB RAM
1073
%define info_nrjQL_desktop_core2_pae This kernel is compiled for desktop use, single or \
1074
multiple Intel Core 2 and newer processor(s)/core(s) and up to 64GB RAM using PAE, \
1075
using HZ_1000, full preempt, rcu boost, CK1, BFS cpu scheduler, BFQ I/O scheduler.\
1076
This kernel relies on in-kernel smp alternatives to switch between up & smp \
1077
mode depending on detected hardware. To force the kernel to boot in single \
1078
processor mode, use the "nosmp" boot parameter.
1079
%mkflavour nrjQL-desktop-core2-pae
1080
%endif
1081
%endif
1082
1083
#
1084
# ARM kernels
1085
#
1086
%ifarch %{arm}
1087
%if %build_iop32x
1088
%define summary_iop32x Linux Kernel for Arm machines based on Xscale IOP32X
1089
%define info_iop32x This kernel is compiled for iop32x boxes. It will run on n2100 \
1090
or ss4000e or sanmina boards.
1091
%mkflavour iop32x
1092
%endif
1093
%if %build_kirkwood
1094
%define summary_kirkwood Linux Kernel for Arm machines based on Kirkwood
1095
%define info_kirkwood This kernel is compiled for kirkwood boxes. It will run on openrd boards.
1096
%mkflavour kirkwood
1097
%endif
1098
%if %build_versatile
1099
%define summary_versatile Linux Kernel for Versatile arm machines
1100
%define info_versatile This kernel is compiled for Versatile boxes. It will run on Qemu for instance.
1101
%mkflavour versatile
1102
%endif
1103
%endif
1104
1105
#
1106
# kernel-source
1107
#
1108
%if %build_source
1109
%package -n %{kname}-source-%{buildrel}
1110
Version: 	%{fakever}
1111
Release: 	%{fakerel}
1112
Requires: 	glibc-devel, ncurses-devel, make, gcc, perl, diffutils
1113
Summary: 	The Linux source code for %{kname}-%{buildrel}
1114
Group: 		Development/Kernel
1115
Autoreqprov: 	no
1116
Provides: 	kernel-source = %{kverrel}
1117
Buildarch:	noarch
1118
1119
%description -n %{kname}-source-%{buildrel}
1120
The %{kname}-source package contains the source code files for the Mandriva and
1121
ROSA kernel. Theese source files are only needed if you want to build your own
1122
custom kernel that is better tuned to your particular hardware.
1123
1124
If you only want the files needed to build 3rdparty (nVidia, Ati, dkms-*,...)
1125
drivers against, install the *-devel-* rpm that is matching your kernel.
1126
1127
#
1128
# kernel-source-latest: virtual rpm
1129
#
1130
%package -n %{kname}-source-latest
1131
Version: 	%{kversion}
1132
Release: 	%{rpmrel}
1133
Summary: 	Virtual rpm for latest %{kname}-source
1134
Group:   	Development/Kernel
1135
Requires: 	%{kname}-source-%{buildrel}
1136
Buildarch:	noarch
1137
1138
%description -n %{kname}-source-latest
1139
This package is a virtual rpm that aims to make sure you always have the
1140
latest %{kname}-source installed...
1141
%endif
1142
1143
#
1144
# kernel-doc: documentation for the Linux kernel
1145
#
1146
%if %build_doc
1147
%package -n %{kname}-doc
1148
Version: 	%{kversion}
1149
Release: 	%{rpmrel}
1150
Summary: 	Various documentation bits found in the %{kname} source
1151
Group: 		Documentation
1152
Buildarch:	noarch
1153
1154
%description -n %{kname}-doc
1155
This package contains documentation files from the %{kname} source.
1156
Various bits of information about the Linux kernel and the device drivers
1157
shipped with it are documented in these files. You also might want install
1158
this package if you need a reference to the options that can be passed to
1159
Linux kernel modules at load time.
1160
%endif
1161
1162
#
1163
# kernel/tools
1164
#
1165
%if %{build_perf}
1166
%package -n perf
1167
Version:	%{kversion}
1168
Release:	%{rpmrel}
1169
Summary:	perf tool and the supporting documentation
1170
Group:		System/Kernel and hardware
1171
1172
%description -n perf
1173
the perf tool and the supporting documentation.
1174
%endif
1175
1176
%if %{build_cpupower}
1177
%package -n cpupower
1178
Version:	%{kversion}
1179
Release:	%{rpmrel}
1180
Summary:	the cpupower tools
1181
Group:		System/Kernel and hardware
1182
Requires(post):  rpm-helper >= 0.24.0-3
1183
Requires(preun): rpm-helper >= 0.24.0-3
1184
%if %{mdvver} >= 201200
1185
Obsoletes:	cpufreq cpufrequtils
1186
%endif
1187
1188
%description -n cpupower
1189
the cpupower tools.
1190
1191
%post -n cpupower
1192
# %systemd_post cpupower
1193
if [ $1 -ge 0 ]; then
1194
        /bin/systemctl enable cpupower >/dev/null 2>&1 || :
1195
        /bin/systemctl start cpupower >/dev/null 2>&1 || :
1196
fi
1197
1198
%preun -n cpupower
1199
# %systemd_preun cpupower
1200
if [ $1 -eq 0 ]; then
1201
        /bin/systemctl --no-reload disable cpupower > /dev/null 2>&1 || :
1202
        /bin/systemctl stop cpupower > /dev/null 2>&1 || :
1203
fi
1204
1205
%package -n cpupower-devel
1206
Version:	%{kversion}
1207
Release:	%{rpmrel}
1208
Summary:	devel files for cpupower
1209
Group:		Development/Kernel
1210
Requires:	cpupower = %{kversion}-%{rpmrel}
1211
Conflicts:	%{_lib}cpufreq-devel
1212
1213
%description -n cpupower-devel
1214
This package contains the development files for cpupower.
1215
%endif
1216
1217
%package headers
1218
Version:	%kversion
1219
Release:	%rpmrel
1220
Summary:	Linux kernel header files mostly used by your C library
1221
Group:		System/Kernel and hardware
1222
Epoch:		1
1223
%rename linux-userspace-headers
1224
1225
%description headers
1226
C header files from the Linux kernel. The header files define
1227
structures and constants that are needed for building most
1228
standard programs, notably the C library.
1229
1230
This package is not suitable for building kernel modules, you
1231
should use the 'kernel-devel' package instead.
1232
1233
%files headers
1234
%_includedir/*
1235
# Don't conflict with cpupower-devel
1236
%if %{build_cpupower}
1237
%exclude %_includedir/cpufreq.h
1238
%endif
1239
1240
%package -n	cross-%{name}-headers	
1241
Version:	%kversion
1242
Release:	%rpmrel
1243
Summary:	Linux kernel header files for cross toolchains
1244
Group:		System/Kernel and hardware
1245
Epoch:		1
1246
BuildArch:	noarch
1247
1248
%description -n	cross-%{name}-headers
1249
C header files from the Linux kernel. The header files define	
1250
structures and constants that are needed for building most
1251
standard programs, notably the C library.
1252
1253
This package is only of interest if you're cross-compiling for one of the	
1254
following platforms:
1255
%{cross_header_archs}
1256
	
1257
%files -n cross-%{name}-headers
1258
%{_prefix}/*-%{_target_os}/include/*
1259
1260
# %endif (???)
1261
# from 1486-1505 >https://abf.io/openmandriva/kernel/commit/b967a6b9458236d594dac87de97193f0e172c55c
1262
# endif should be wrong, that is not an %if before...
1263
1264
#
1265
# End packages - here begins build stage
1266
#
1267
%prep
1268
%setup -q -n %top_dir_name -c
1269
%setup -q -n %top_dir_name -D -T -a100
1270
1271
%define patches_dir ../%{patch_ver}/
1272
1273
cd %src_dir
1274
1275
%if %sublevel
1276
%if %kpatch
1277
%if %prev_sublevel
1278
%patch1 -p1
1279
%endif
1280
%patch2 -p1
1281
%else
1282
%patch1 -p1
1283
%endif
1284
%else
1285
%if %kpatch
1286
%patch1 -p1
1287
%endif
1288
%endif
1289
%if %kgit
1290
%patch2 -p1
1291
%endif
1292
1293
%{patches_dir}/scripts/apply_patches
1294
%{patches_dir}/scripts/apply_patches-geek
1295
%{patches_dir}/scripts/apply_patches-latest
1296
%{patches_dir}/scripts/apply_patches-NRJ
1297
%{patches_dir}/scripts/apply_patches-QL
1298
# PATCH END
1299
1300
1301
#
1302
# Setup Begin
1303
#
1304
1305
# Prepare all the variables for calling create_configs
1306
1307
%if %build_debug
1308
%define debug --debug
1309
%else
1310
%define debug --no-debug
1311
%endif
1312
1313
1314
%{patches_dir}/scripts/create_configs-QL %debug --user_cpu="%{target_arch}"
1315
1316
# make sure the kernel has the sublevel we know it has...
1317
LC_ALL=C perl -p -i -e "s/^SUBLEVEL.*/SUBLEVEL = %{sublevel}/" Makefile
1318
1319
# get rid of unwanted files
1320
find . -name '*~' -o -name '*.orig' -o -name '*.append' | %kxargs rm -f
1321
1322
1323
%build
1324
1325
1326
############################################################
1327
### Linker start2 > Check point to build for omv or rosa ###
1328
############################################################
1329
%if %{mdvver} == 201500
1330
# Make sure we don't use gold
1331
export LD="%{_target_platform}-ld.bfd"
1332
export LDFLAGS="--hash-style=sysv --build-id=none"
1333
%endif
1334
1335
%if %{mdvver} == 201400
1336
# Make sure we don't use gold
1337
export LD="%{_target_platform}-ld.bfd"
1338
export LDFLAGS="--hash-style=sysv --build-id=none"
1339
%endif
1340
1341
%if %{mdvver} == 201300
1342
# Make sure we don't use gold
1343
export LD="%{_target_platform}-ld.bfd"
1344
export LDFLAGS="--hash-style=sysv --build-id=none"
1345
%endif
1346
############################################################
1347
###  Linker end2 > Check point to build for omv or rosa ###
1348
############################################################
1349
1350
1351
# Common target directories
1352
%define _kerneldir /usr/src/linux-%{kversion}-%{buildrpmrel}
1353
%define _bootdir /boot
1354
%define _modulesdir /lib/modules
1355
%define _efidir %{_bootdir}/efi/mandriva
1356
1357
# Directories definition needed for building
1358
%define temp_root %{build_dir}/temp-root
1359
%define temp_source %{temp_root}%{_kerneldir}
1360
%define temp_boot %{temp_root}%{_bootdir}
1361
%define temp_modules %{temp_root}%{_modulesdir}
1362
1363
PrepareKernel() {
1364
	name=$1
1365
	extension=$2
1366
%ifarch %{ix86} x86_64
1367
	config_dir=arch/x86/configs
1368
%endif
1369
%ifarch	%arm
1370
	config_dir=arch/arm/configs
1371
%endif
1372
%ifarch aarc64
1373
	config_dir=arch/arm64/configs
1374
%endif
1375
	echo "Make config for kernel $extension"
1376
1377
	%smake -s mrproper
1378
1379
	if [ "%{target_arch}" == "i386" -o "%{target_arch}" == "x86_64" ]; then
1380
	    if [ -z "$name" ]; then
1381
		cp ${config_dir}/%{target_arch}_defconfig-desktop .config
1382
	    else
1383
		cp ${config_dir}/%{target_arch}_defconfig-$name .config
1384
	    fi
1385
	else
1386
	    if [ -z "$name" ]; then
1387
		cp arch/%{target_arch}/defconfig-desktop .config
1388
	    else
1389
		cp arch/%{target_arch}/defconfig-$name .config
1390
	    fi
1391
	fi
1392
1393
	# make sure EXTRAVERSION says what we want it to say
1394
	LC_ALL=C perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -$extension/" Makefile
1395
1396
	%smake oldconfig
1397
}
1398
1399
BuildKernel() {
1400
	KernelVer=$1
1401
1402
	echo "Building kernel $KernelVer"
1403
1404
	%kmake -s all
1405
1406
	# kirkwood boxes have u-boot
1407
	if [ "$KernelVer" = "%{kversion}-kirkwood-%{buildrpmrel}" ]; then
1408
		%kmake uImage
1409
	fi
1410
1411
	# Start installing stuff
1412
	install -d %{temp_boot}
1413
	install -m 644 System.map %{temp_boot}/System.map-$KernelVer
1414
	install -m 644 .config %{temp_boot}/config-$KernelVer
1415
	xz -c Module.symvers > %{temp_boot}/symvers-$KernelVer.xz
1416
1417
	%ifarch %{arm}
1418
		if [ -f arch/arm/boot/uImage ]; then
1419
			cp -f arch/arm/boot/uImage %{temp_boot}/uImage-$KernelVer
1420
		else
1421
			cp -f arch/arm/boot/zImage %{temp_boot}/vmlinuz-$KernelVer
1422
		fi
1423
	%else
1424
		cp -f arch/%{target_arch}/boot/bzImage %{temp_boot}/vmlinuz-$KernelVer
1425
	%endif
1426
1427
	# modules
1428
	install -d %{temp_modules}/$KernelVer
1429
	%smake INSTALL_MOD_PATH=%{temp_root} KERNELRELEASE=$KernelVer modules_install
1430
1431
	# headers	
1432
	%make INSTALL_HDR_PATH=%{temp_root}%_prefix KERNELRELEASE=$KernelVer headers_install
1433
	# kernel headers for cross toolchains
1434
	for arch in %{cross_header_archs}; do	
1435
		%make SRCARCH=$arch INSTALL_HDR_PATH=%{temp_root}%{_prefix}/$arch-%{_target_os} KERNELRELEASE=$KernelVer headers_install	
1436
	done
1437
1438
	# remove /lib/firmware, we use a separate kernel-firmware
1439
	rm -rf %{temp_root}/lib/firmware
1440
}
1441
1442
SaveDevel() {
1443
	devel_flavour=$1
1444
1445
	DevelRoot=/usr/src/linux-%{kversion}-$devel_flavour-%{buildrpmrel}
1446
	TempDevelRoot=%{temp_root}$DevelRoot
1447
1448
	mkdir -p $TempDevelRoot
1449
	for i in $(find . -name 'Makefile*'); do cp -R --parents $i $TempDevelRoot;done
1450
	for i in $(find . -name 'Kconfig*' -o -name 'Kbuild*'); do cp -R --parents $i $TempDevelRoot;done
1451
	cp -fR Documentation/DocBook/media/*.b64 $TempDevelRoot/Documentation/DocBook/media/
1452
	cp -fR include $TempDevelRoot
1453
	# ln -s ../generated/uapi/linux/version.h $TempDevelRoot/include/linux/version.h
1454
	cp -fR scripts $TempDevelRoot
1455
	cp -fR kernel/bounds.c $TempDevelRoot/kernel
1456
	cp -fR tools/include $TempDevelRoot/tools/
1457
	%ifarch %{arm}
1458
		cp -fR arch/%{target_arch}/tools $TempDevelRoot/arch/%{target_arch}/
1459
	%endif
1460
	%ifarch %{ix86} x86_64
1461
		cp -fR arch/x86/kernel/asm-offsets.{c,s} $TempDevelRoot/arch/x86/kernel/
1462
		cp -fR arch/x86/kernel/asm-offsets_{32,64}.c $TempDevelRoot/arch/x86/kernel/
1463
		cp -fR arch/x86/purgatory/* $TempDevelRoot/arch/x86/purgatory/
1464
		cp -fR arch/x86/syscalls/syscall* $TempDevelRoot/arch/x86/syscalls/
1465
		cp -fR arch/x86/include $TempDevelRoot/arch/x86/
1466
		cp -fR arch/x86/tools $TempDevelRoot/arch/x86/
1467
	%else
1468
		cp -fR arch/%{target_arch}/kernel/asm-offsets.{c,s} $TempDevelRoot/arch/%{target_arch}/kernel/
1469
		for f in $(find arch/%{target_arch} -name include); do cp -fR --parents $f $TempDevelRoot; done
1470
	%endif
1471
	cp -fR .config Module.symvers $TempDevelRoot
1472
	cp -fR 3rdparty/mkbuild.pl $TempDevelRoot/3rdparty
1473
1474
#3rdparty/vloopback/vloopback.c:179:2: error: #error "need CONFIG_VIDEO_V4L1_COMPAT"
1475
#3rdparty/vloopback/vloopback.c:203:28: fatal error: linux/videodev.h: No such file or directory
1476
#compilation terminated.
1477
#make[2]: *** [3rdparty/vloopback/vloopback.o] Error 1
1478
#make[1]: *** [3rdparty/vloopback] Error 2
1479
#make: *** [3rdparty] Error 2
1480
#make: *** Waiting for unfinished jobs....
1481
1482
	# Needed for truecrypt build (Danny)
1483
	cp -fR drivers/md/dm.h $TempDevelRoot/drivers/md/
1484
1485
	# Needed for lguest
1486
	cp -fR drivers/lguest/lg.h $TempDevelRoot/drivers/lguest/
1487
1488
	# Needed for lirc_gpio (#39004)
1489
	cp -fR drivers/media/pci/bt8xx/bttv{,p}.h $TempDevelRoot/drivers/media/pci/bt8xx/
1490
	cp -fR drivers/media/pci/bt8xx/bt848.h $TempDevelRoot/drivers/media/pci/bt8xx/
1491
	cp -fR drivers/media/common/btcx-risc.h $TempDevelRoot/drivers/media/common/
1492
1493
	# Needed for external dvb tree (#41418)
1494
	cp -fR drivers/media/dvb-core/*.h $TempDevelRoot/drivers/media/dvb-core/
1495
	cp -fR drivers/media/dvb-frontends/lgdt330x.h $TempDevelRoot/drivers/media/dvb-frontends/
1496
1497
	# add acpica header files, needed for fglrx build
1498
	cp -fR drivers/acpi/acpica/*.h $TempDevelRoot/drivers/acpi/acpica/
1499
1500
	# aufs2 has a special file needed
1501
	cp -fR fs/aufs/magic.mk $TempDevelRoot/fs/aufs
1502
1503
	for i in alpha arc avr32 blackfin c6x cris frv h8300 hexagon ia64 m32r m68k m68knommu metag microblaze \
1504
		 mips mn10300 openrisc parisc powerpc s390 score sh sparc tile unicore32 xtensa; do
1505
		rm -rf $TempDevelRoot/arch/$i
1506
	done
1507
1508
	%ifnarch %{arm}
1509
		rm -rf $TempDevelRoot/arch/arm*
1510
		rm -rf $TempDevelRoot/include/kvm/arm*
1511
		rm -rf $TempDevelRoot/include/soc
1512
	%endif
1513
	%ifnarch %{ix86} x86_64
1514
		rm -rf $TempDevelRoot/arch/x86
1515
	%endif
1516
1517
	# Clean the scripts tree, and make sure everything is ok (sanity check)
1518
	# running prepare+scripts (tree was already "prepared" in build)
1519
	pushd $TempDevelRoot >/dev/null
1520
		%smake -s prepare scripts
1521
		%smake -s clean
1522
	popd >/dev/null
1523
	rm -f $TempDevelRoot/.config.old
1524
1525
	# fix permissions
1526
	chmod -R a+rX $TempDevelRoot
1527
1528
	# disable mrproper in -devel rpms
1529
	patch -p1 --fuzz=0 -d $TempDevelRoot -i %{SOURCE2}
1530
1531
	kernel_devel_files=../kernel_devel_files.$devel_flavour
1532
1533
1534
### Create the kernel_devel_files.*
1535
cat > $kernel_devel_files <<EOF
1536
%dir $DevelRoot
1537
%dir $DevelRoot/arch
1538
%dir $DevelRoot/include
1539
$DevelRoot/3rdparty
1540
$DevelRoot/Documentation
1541
%ifarch %{arm}
1542
$DevelRoot/arch/arm
1543
$DevelRoot/arch/arm64
1544
%endif
1545
$DevelRoot/arch/um
1546
%ifarch %{ix86} x86_64
1547
$DevelRoot/arch/x86
1548
%endif
1549
$DevelRoot/block
1550
$DevelRoot/crypto
1551
$DevelRoot/drivers
1552
$DevelRoot/firmware
1553
$DevelRoot/fs
1554
$DevelRoot/include/Kbuild
1555
$DevelRoot/include/acpi
1556
$DevelRoot/include/asm-generic
1557
$DevelRoot/include/clocksource
1558
$DevelRoot/include/config
1559
$DevelRoot/include/crypto
1560
$DevelRoot/include/drm
1561
$DevelRoot/include/dt-bindings
1562
$DevelRoot/include/generated
1563
$DevelRoot/include/keys
1564
$DevelRoot/include/linux
1565
$DevelRoot/include/math-emu
1566
$DevelRoot/include/media
1567
$DevelRoot/include/memory
1568
$DevelRoot/include/misc
1569
$DevelRoot/include/net
1570
$DevelRoot/include/pcmcia
1571
$DevelRoot/include/ras
1572
$DevelRoot/include/rdma
1573
$DevelRoot/include/rxrpc
1574
$DevelRoot/include/scsi
1575
%ifarch %{arm}
1576
$DevelRoot/include/soc
1577
%endif
1578
$DevelRoot/include/sound
1579
$DevelRoot/include/target
1580
$DevelRoot/include/trace
1581
$DevelRoot/include/uapi
1582
$DevelRoot/include/video
1583
$DevelRoot/include/xen
1584
$DevelRoot/init
1585
$DevelRoot/ipc
1586
$DevelRoot/kernel
1587
$DevelRoot/lib
1588
$DevelRoot/mm
1589
$DevelRoot/net
1590
$DevelRoot/samples
1591
$DevelRoot/scripts
1592
$DevelRoot/security
1593
$DevelRoot/sound
1594
$DevelRoot/tools
1595
$DevelRoot/usr
1596
$DevelRoot/virt
1597
$DevelRoot/.config
1598
$DevelRoot/Kbuild
1599
$DevelRoot/Kconfig
1600
$DevelRoot/Makefile
1601
$DevelRoot/Module.symvers
1602
$DevelRoot/arch/Kconfig
1603
%doc README.kernel-sources
1604
EOF
1605
1606
1607
### Create -devel Post script on the fly
1608
cat > $kernel_devel_files-post <<EOF
1609
if [ -d /lib/modules/%{kversion}-$devel_flavour-%{buildrpmrel} ]; then
1610
	rm -f /lib/modules/%{kversion}-$devel_flavour-%{buildrpmrel}/{build,source}
1611
	ln -sf $DevelRoot /lib/modules/%{kversion}-$devel_flavour-%{buildrpmrel}/build
1612
	ln -sf $DevelRoot /lib/modules/%{kversion}-$devel_flavour-%{buildrpmrel}/source
1613
fi
1614
EOF
1615
1616
1617
### Create -devel Preun script on the fly
1618
cat > $kernel_devel_files-preun <<EOF
1619
if [ -L /lib/modules/%{kversion}-$devel_flavour-%{buildrpmrel}/build ]; then
1620
	rm -f /lib/modules/%{kversion}-$devel_flavour-%{buildrpmrel}/build
1621
fi
1622
if [ -L /lib/modules/%{kversion}-$devel_flavour-%{buildrpmrel}/source ]; then
1623
	rm -f /lib/modules/%{kversion}-$devel_flavour-%{buildrpmrel}/source
1624
fi
1625
exit 0
1626
EOF
1627
1628
### Create -devel Postun script on the fly
1629
cat > $kernel_devel_files-postun <<EOF
1630
rm -rf /usr/src/linux-%{kversion}-$devel_flavour-%{buildrpmrel} >/dev/null
1631
EOF
1632
}
1633
1634
SaveDebug() {
1635
	debug_flavour=$1
1636
1637
	install -m 644 vmlinux \
1638
	      %{temp_boot}/vmlinux-%{kversion}-$debug_flavour-%{buildrpmrel}
1639
	kernel_debug_files=../kernel_debug_files.$debug_flavour
1640
	echo "%{_bootdir}/vmlinux-%{kversion}-$debug_flavour-%{buildrpmrel}" \
1641
		>> $kernel_debug_files
1642
1643
	find %{temp_modules}/%{kversion}-$debug_flavour-%{buildrpmrel}/kernel \
1644
		-name "*.ko" | \
1645
		%kxargs -I '{}' objcopy --only-keep-debug '{}' '{}'.debug
1646
	find %{temp_modules}/%{kversion}-$debug_flavour-%{buildrpmrel}/kernel \
1647
		-name "*.ko" | %kxargs -I '{}' \
1648
		sh -c 'cd `dirname {}`; \
1649
		       objcopy --add-gnu-debuglink=`basename {}`.debug \
1650
		       --strip-debug `basename {}`'
1651
1652
	pushd %{temp_modules}
1653
	find %{kversion}-$debug_flavour-%{buildrpmrel}/kernel \
1654
		-name "*.ko.debug" > debug_module_list
1655
	popd
1656
	cat %{temp_modules}/debug_module_list | \
1657
		sed 's|\(.*\)|%{_modulesdir}/\1|' >> $kernel_debug_files
1658
	cat %{temp_modules}/debug_module_list | \
1659
		sed 's|\(.*\)|%exclude %{_modulesdir}/\1|' \
1660
		>> ../kernel_exclude_debug_files.$debug_flavour
1661
	rm -f %{temp_modules}/debug_module_list
1662
}
1663
1664
CreateFiles() {
1665
	kernel_flavour=$1
1666
1667
	kernel_files=../kernel_files.$kernel_flavour
1668
1669
ker="vmlinuz"
1670
if [ "$kernel_flavour" = "kirkwood" ]; then
1671
       ker="uImage"
1672
fi
1673
### Create the kernel_files.*
1674
cat > $kernel_files <<EOF
1675
%{_bootdir}/System.map-%{kversion}-$kernel_flavour-%{buildrpmrel}
1676
%{_bootdir}/symvers-%{kversion}-$kernel_flavour-%{buildrpmrel}.xz
1677
%{_bootdir}/config-%{kversion}-$kernel_flavour-%{buildrpmrel}
1678
%{_bootdir}/$ker-%{kversion}-$kernel_flavour-%{buildrpmrel}
1679
%dir %{_modulesdir}/%{kversion}-$kernel_flavour-%{buildrpmrel}/
1680
%{_modulesdir}/%{kversion}-$kernel_flavour-%{buildrpmrel}/kernel
1681
%{_modulesdir}/%{kversion}-$kernel_flavour-%{buildrpmrel}/modules.*
1682
%doc README.kernel-sources
1683
EOF
1684
1685
%if %build_debug
1686
    cat ../kernel_exclude_debug_files.$kernel_flavour >> $kernel_files
1687
%endif
1688
1689
### Create kernel Post script
1690
cat > $kernel_files-post <<EOF
1691
%ifarch %{arm}
1692
/sbin/installkernel -i -N %{kversion}-$kernel_flavour-%{buildrpmrel}
1693
%else
1694
/sbin/installkernel %{kversion}-$kernel_flavour-%{buildrpmrel}
1695
pushd /boot > /dev/null
1696
if [ -L vmlinuz-$kernel_flavour ]; then
1697
	rm -f vmlinuz-$kernel_flavour
1698
fi
1699
ln -sf vmlinuz-%{kversion}-$kernel_flavour-%{buildrpmrel} vmlinuz-$kernel_flavour
1700
if [ -L initrd-$kernel_flavour.img ]; then
1701
	rm -f initrd-$kernel_flavour.img
1702
fi
1703
ln -sf initrd-%{kversion}-$kernel_flavour-%{buildrpmrel}.img initrd-$kernel_flavour.img
1704
popd > /dev/null
1705
%endif
1706
%if %build_devel
1707
# create kernel-devel symlinks if matching -devel- rpm is installed
1708
if [ -d /usr/src/linux-%{kversion}-$kernel_flavour-%{buildrpmrel} ]; then
1709
	rm -f /lib/modules/%{kversion}-$kernel_flavour-%{buildrpmrel}/{build,source}
1710
	ln -sf /usr/src/linux-%{kversion}-$kernel_flavour-%{buildrpmrel} /lib/modules/%{kversion}-$kernel_flavour-%{buildrpmrel}/build
1711
	ln -sf /usr/src/linux-%{kversion}-$kernel_flavour-%{buildrpmrel} /lib/modules/%{kversion}-$kernel_flavour-%{buildrpmrel}/source
1712
fi
1713
%endif
1714
EOF
1715
1716
### Create kernel Posttrans script
1717
cat > $kernel_files-posttrans <<EOF
1718
if [ -x /usr/sbin/dkms_autoinstaller -a -d /usr/src/linux-%{kversion}-$kernel_flavour-%{buildrpmrel} ]; then
1719
    /usr/sbin/dkms_autoinstaller start %{kversion}-$kernel_flavour-%{buildrpmrel}
1720
fi
1721
EOF
1722
1723
### Create kernel Preun script on the fly
1724
cat > $kernel_files-preun <<EOF
1725
/sbin/installkernel -R %{kversion}-$kernel_flavour-%{buildrpmrel}
1726
pushd /boot > /dev/null
1727
if [ -L vmlinuz-$kernel_flavour ]; then
1728
	if [ "$(readlink vmlinuz-$kernel_flavour)" = "vmlinuz-%{kversion}-$kernel_flavour-%{buildrpmrel}" ]; then
1729
		rm -f vmlinuz-$kernel_flavour
1730
	fi
1731
fi
1732
if [ -L initrd-$kernel_flavour.img ]; then
1733
	if [ "$(readlink initrd-$kernel_flavour.img)" = "initrd-%{kversion}-$kernel_flavour-%{buildrpmrel}.img" ]; then
1734
		rm -f initrd-$kernel_flavour.img
1735
	fi
1736
fi
1737
popd > /dev/null
1738
%if %build_devel
1739
if [ -L /lib/modules/%{kversion}-$kernel_flavour-%{buildrpmrel}/build ]; then
1740
	rm -f /lib/modules/%{kversion}-$kernel_flavour-%{buildrpmrel}/build
1741
fi
1742
if [ -L /lib/modules/%{kversion}-$kernel_flavour-%{buildrpmrel}/source ]; then
1743
	rm -f /lib/modules/%{kversion}-$kernel_flavour-%{buildrpmrel}/source
1744
fi
1745
%endif
1746
exit 0
1747
EOF
1748
1749
1750
### Create kernel Postun script on the fly
1751
cat > $kernel_files-postun <<EOF
1752
/sbin/kernel_remove_initrd %{kversion}-$kernel_flavour-%{buildrpmrel}
1753
rm -rf /lib/modules/%{kversion}-$kernel_flavour-%{buildrpmrel} >/dev/null
1754
if [ -d /var/lib/dkms ]; then
1755
    rm -f /var/lib/dkms/*/kernel-%{kversion}-$devel_flavour-%{buildrpmrel}-%{_target_cpu} >/dev/null
1756
    rm -rf /var/lib/dkms/*/*/%{kversion}-$devel_flavour-%{buildrpmrel} >/dev/null
1757
    rm -f /var/lib/dkms-binary/*/kernel-%{kversion}-$devel_flavour-%{buildrpmrel}-%{_target_cpu} >/dev/null
1758
    rm -rf /var/lib/dkms-binary/*/*/%{kversion}-$devel_flavour-%{buildrpmrel} >/dev/null
1759
fi
1760
EOF
1761
}
1762
1763
1764
CreateKernel() {
1765
	flavour=$1
1766
1767
	PrepareKernel $flavour $flavour-%{buildrpmrel}
1768
1769
	BuildKernel %{kversion}-$flavour-%{buildrpmrel}
1770
	%if %build_devel
1771
		SaveDevel $flavour
1772
	%endif
1773
	%if %build_debug
1774
		SaveDebug $flavour
1775
	%endif
1776
	CreateFiles $flavour
1777
}
1778
1779
1780
###
1781
# DO it...
1782
###
1783
1784
1785
# Create a simulacro of buildroot
1786
rm -rf %{temp_root}
1787
install -d %{temp_root}
1788
1789
1790
# make sure we are in the directory
1791
cd %src_dir
1792
1793
%if %build_nrjQL_desktop
1794
CreateKernel nrjQL-desktop
1795
%endif
1796
1797
%if %build_nrjQL_realtime
1798
CreateKernel nrjQL-realtime
1799
%endif
1800
1801
%if %build_nrjQL_laptop
1802
CreateKernel nrjQL-laptop
1803
%endif
1804
1805
%if %build_nrjQL_netbook
1806
CreateKernel nrjQL-netbook
1807
%endif
1808
1809
%if %build_nrjQL_server
1810
CreateKernel nrjQL-server
1811
%endif
1812
1813
%if %build_nrjQL_server_computing
1814
CreateKernel nrjQL-server-computing
1815
%endif
1816
1817
%if %build_nrjQL_server_games
1818
CreateKernel nrjQL-server-games
1819
%endif
1820
1821
%ifarch %{ix86}
1822
%if %build_nrjQL_desktop_pae
1823
CreateKernel nrjQL-desktop-pae
1824
%endif
1825
%endif
1826
1827
%ifarch %{ix86}
1828
%if %build_nrjQL_realtime_pae
1829
CreateKernel nrjQL-realtime-pae
1830
%endif
1831
%endif
1832
1833
%ifarch %{ix86}
1834
%if %build_nrjQL_laptop_pae
1835
CreateKernel nrjQL-laptop-pae
1836
%endif
1837
%endif
1838
1839
%ifarch %{ix86}
1840
%if %build_nrjQL_netbook_pae
1841
CreateKernel nrjQL-netbook-pae
1842
%endif
1843
%endif
1844
1845
%ifarch %{ix86}
1846
%if %build_nrjQL_desktop_core2
1847
CreateKernel nrjQL-desktop-core2
1848
%endif
1849
%endif
1850
1851
%ifarch %{ix86}
1852
%if %build_nrjQL_desktop_core2_pae
1853
CreateKernel nrjQL-desktop-core2-pae
1854
%endif
1855
%endif
1856
1857
1858
%ifarch %{arm}
1859
%if %build_iop32x
1860
CreateKernel iop32x
1861
%endif
1862
%if %build_kirkwood
1863
CreateKernel kirkwood
1864
%endif
1865
%if %build_versatile
1866
CreateKernel versatile
1867
%endif
1868
%endif
1869
1870
# set extraversion to match srpm to get nice version reported by the tools
1871
LC_ALL=C perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -%{rpmrel}/" Makefile
1872
1873
1874
############################################################
1875
### Linker start3 > Check point to build for omv or rosa ###
1876
############################################################
1877
%if %{build_perf}
1878
1879
%if %{mdvver} == 201500
1880
# https://abf.rosalinux.ru/openmandriva/kernel/commit/3f7127817f2d8918fa049a5f6b2d1bf4f4956a32
1881
# https://abf.rosalinux.ru/openmandriva/kernel/commit/3cda10f5dc0c584113255a9011b177af712bfdad
1882
%smake -C tools/perf -s HAVE_CPLUS_DEMANGLE=1 CC=%__cc PYTHON=python2 WERROR=0 LDFLAGS="-Wl,--hash-style=sysv -Wl,--build-id=none" prefix=%{_prefix} all
1883
# https://abf.rosalinux.ru/openmandriva/kernel/commit/f18c8cfe481496ee47d66bfea6c5d21bbb8064be
1884
%smake -C tools/perf -s prefix=%{_prefix} PYTHON=python2 man
1885
%endif
1886
%if %{mdvver} == 201410
1887
%smake -C tools/perf -s HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} all
1888
%smake -C tools/perf -s prefix=%{_prefix} man
1889
%endif
1890
%if %{mdvver} == 201400
1891
%smake -C tools/perf -s HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} LDFLAGS="%optflags" all
1892
%smake -C tools/perf -s prefix=%{_prefix} LDFLAGS="%optflags" man
1893
%endif
1894
%if %{mdvver} == 201300
1895
%smake -C tools/perf -s HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} LDFLAGS="%optflags" all
1896
%smake -C tools/perf -s prefix=%{_prefix} LDFLAGS="%optflags" man
1897
%endif
1898
%if %{mdvver} <= 201210
1899
%smake -C tools/perf -s HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} all
1900
%smake -C tools/perf -s prefix=%{_prefix} man
1901
%endif
1902
1903
%endif
1904
1905
1906
1907
%if %{build_cpupower}
1908
# make sure version-gen.sh is executable.
1909
chmod +x tools/power/cpupower/utils/version-gen.sh
1910
1911
%if %{mdvver} == 201500
1912
%kmake -C tools/power/cpupower CPUFREQ_BENCH=false LDFLAGS="%optflags"
1913
%endif
1914
%if %{mdvver} == 201410
1915
%make -C tools/power/cpupower CPUFREQ_BENCH=false
1916
%endif
1917
%if %{mdvver} == 201400
1918
%kmake -C tools/power/cpupower CPUFREQ_BENCH=false LDFLAGS="%optflags"
1919
%endif
1920
%if %{mdvver} == 201300
1921
%kmake -C tools/power/cpupower CPUFREQ_BENCH=false LDFLAGS="%optflags"
1922
%endif
1923
%if %{mdvver} < 201300
1924
%make -C tools/power/cpupower CPUFREQ_BENCH=false
1925
%endif
1926
1927
%endif
1928
############################################################
1929
###  Linker end3 > Check point to build for omv or rosa  ###
1930
############################################################
1931
1932
1933
# We don't make to repeat the depend code at the install phase
1934
%if %build_source
1935
%ifarch %{arm}
1936
    PrepareKernel "kirkwood" %{buildrpmrel}custom
1937
%else
1938
    PrepareKernel "" %{buildrpmrel}custom
1939
%endif
1940
%smake -s mrproper
1941
%endif
1942
1943
1944
###
1945
### install
1946
###
1947
%install
1948
install -m 644 %{SOURCE4}  .
1949
1950
cd %src_dir
1951
1952
# Directories definition needed for installing
1953
%define target_source %{buildroot}%{_kerneldir}
1954
%define target_boot %{buildroot}%{_bootdir}
1955
%define target_modules %{buildroot}%{_modulesdir}
1956
1957
# We want to be able to test several times the install part
1958
rm -rf %{buildroot}
1959
cp -a %{temp_root} %{buildroot}
1960
1961
# Create directories infastructure
1962
%if %build_source
1963
install -d %{target_source}
1964
1965
tar cf - . | tar xf - -C %{target_source}
1966
chmod -R a+rX %{target_source}
1967
1968
# we remove all the source files that we don't ship
1969
# first architecture files
1970
for i in alpha arc avr32 blackfin c6x cris frv h8300 hexagon ia64 m32r m68k m68knommu metag microblaze \
1971
	 mips openrisc parisc powerpc s390 score sh sh64 sparc tile unicore32 v850 xtensa mn10300; do
1972
	rm -rf %{target_source}/arch/$i
1973
done
1974
%ifnarch %{arm}
1975
	rm -rf %{target_source}/include/kvm/arm*
1976
%endif
1977
1978
# other misc files
1979
rm -f %{target_source}/{.config.old,.config.cmd,.gitignore,.lst,.mailmap}
1980
rm -f %{target_source}/{.missing-syscalls.d,arch/.gitignore,firmware/.gitignore}
1981
rm -rf %{target_source}/.tmp_depmod/
1982
1983
#endif %build_source
1984
%endif
1985
1986
# compressing modules
1987
%if %{build_modxz}
1988
find %{target_modules} -name "*.ko" | %kxargs xz -6e
1989
%else
1990
find %{target_modules} -name "*.ko" | %kxargs gzip -9
1991
%endif
1992
1993
# We used to have a copy of PrepareKernel here
1994
# Now, we make sure that the thing in the linux dir is what we want it to be
1995
for i in %{target_modules}/*; do
1996
	rm -f $i/build $i/source
1997
done
1998
1999
# sniff, if we compressed all the modules, we change the stamp :(
2000
# we really need the depmod -ae here
2001
pushd %{target_modules}
2002
for i in *; do
2003
	/sbin/depmod -ae -b %{buildroot} -F %{target_boot}/System.map-$i $i
2004
	echo $?
2005
done
2006
2007
for i in *; do
2008
	pushd $i
2009
	echo "Creating modules.description for $i"
2010
	modules=`find . -name "*.ko.[g,x]z"`
2011
	echo $modules | %kxargs /sbin/modinfo \
2012
	| perl -lne 'print "$name\t$1" if $name && /^description:\s*(.*)/; $name = $1 if m!^filename:\s*(.*)\.k?o!; $name =~ s!.*/!!' > modules.description
2013
	popd
2014
done
2015
popd
2016
2017
# need to set extraversion to match srpm again to avoid rebuild
2018
LC_ALL=C perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -%{rpmrel}/" Makefile
2019
2020
2021
%if %{build_perf}
2022
2023
# perf tool binary and supporting scripts/binaries
2024
%if %{mdvver} == 201500
2025
# https://abf.rosalinux.ru/openmandriva/kernel/commit/3f7127817f2d8918fa049a5f6b2d1bf4f4956a32
2026
# https://abf.rosalinux.ru/openmandriva/kernel/commit/2d3fc3061440acb1f1e0b72661ae1664f0f1d2b1
2027
make -C tools/perf -s V=1 DESTDIR=%{buildroot} WERROR=0 PYTHON=python2 HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} install
2028
%endif
2029
%if %{mdvver} <= 201410
2030
make -C tools/perf -s V=1 DESTDIR=%{buildroot} HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} install
2031
%endif
2032
2033
# perf man pages (note: implicit rpm magic compresses them later)
2034
%if %{mdvver} == 201500
2035
# https://abf.rosalinux.ru/openmandriva/kernel/commit/2d3fc3061440acb1f1e0b72661ae1664f0f1d2b1
2036
make -C tools/perf  -s V=1 DESTDIR=%{buildroot} WERROR=0 PYTHON=python2 HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} install-man
2037
%endif
2038
%if %{mdvver} <= 201410
2039
make -C tools/perf  -s V=1 DESTDIR=%{buildroot} HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} install-man
2040
%endif
2041
2042
%endif
2043
2044
2045
############################################################
2046
### Linker start4 > Check point to build for omv or rosa ###
2047
############################################################
2048
%if %{build_cpupower}
2049
2050
%if %{mdvver} == 201500
2051
%make -C tools/power/cpupower DESTDIR=%{buildroot} libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false LDFLAGS="%optflags" install
2052
%endif
2053
%if %{mdvver} == 201410
2054
make -C tools/power/cpupower DESTDIR=%{buildroot} libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false install
2055
%endif
2056
%if %{mdvver} == 201400
2057
%make -C tools/power/cpupower DESTDIR=%{buildroot} libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false LDFLAGS="%optflags" install
2058
%endif
2059
%if %{mdvver} == 201300
2060
%make -C tools/power/cpupower DESTDIR=%{buildroot} libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false LDFLAGS="%optflags" install
2061
%endif
2062
%if %{mdvver} < 201300
2063
make -C tools/power/cpupower DESTDIR=%{buildroot} libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false install
2064
%endif
2065
2066
rm -f %{buildroot}%{_libdir}/*.{a,la}
2067
%find_lang cpupower
2068
mv cpupower.lang ../
2069
chmod 0755 %{buildroot}%{_libdir}/libcpupower.so*
2070
mkdir -p %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/sysconfig
2071
install -m644 %{SOURCE50} %{buildroot}%{_unitdir}/cpupower.service
2072
install -m644 %{SOURCE51} %{buildroot}%{_sysconfdir}/sysconfig/cpupower
2073
2074
%endif
2075
############################################################
2076
### Linker start4 > Check point to build for omv or rosa ###
2077
############################################################
2078
2079
2080
###
2081
### clean
2082
###
2083
%clean
2084
rm -rf %{buildroot}
2085
2086
2087
# We don't want to remove this, the whole reason of its existence is to be
2088
# able to do several rpm --short-circuit -bi for testing install
2089
# phase without repeating compilation phase
2090
#rm -rf %{temp_root}
2091
2092
###
2093
### source and doc file lists
2094
###
2095
2096
%if %build_source
2097
%files -n %{kname}-source-%{buildrel}
2098
%dir %{_kerneldir}
2099
%dir %{_kerneldir}/arch
2100
%dir %{_kerneldir}/include
2101
%{_kerneldir}/3rdparty
2102
%{_kerneldir}/Documentation
2103
%{_kerneldir}/arch/Kconfig
2104
%{_kerneldir}/arch/arm
2105
%{_kerneldir}/arch/arm64
2106
%{_kerneldir}/arch/um
2107
%{_kerneldir}/arch/x86
2108
%{_kerneldir}/block
2109
%{_kerneldir}/crypto
2110
%{_kerneldir}/drivers
2111
%{_kerneldir}/firmware
2112
%{_kerneldir}/fs
2113
%{_kerneldir}/include/Kbuild
2114
%{_kerneldir}/include/acpi
2115
%{_kerneldir}/include/asm-generic
2116
%{_kerneldir}/include/clocksource
2117
%{_kerneldir}/include/crypto
2118
%{_kerneldir}/include/drm
2119
%{_kerneldir}/include/dt-bindings
2120
%{_kerneldir}/include/keys
2121
%{_kerneldir}/include/linux
2122
%{_kerneldir}/include/math-emu
2123
%{_kerneldir}/include/media
2124
%{_kerneldir}/include/memory
2125
%{_kerneldir}/include/misc
2126
%{_kerneldir}/include/net
2127
%{_kerneldir}/include/pcmcia
2128
%{_kerneldir}/include/ras
2129
%{_kerneldir}/include/rdma
2130
%{_kerneldir}/include/rxrpc
2131
%{_kerneldir}/include/scsi
2132
%{_kerneldir}/include/soc
2133
%{_kerneldir}/include/sound
2134
%{_kerneldir}/include/target
2135
%{_kerneldir}/include/trace
2136
%{_kerneldir}/include/uapi
2137
%{_kerneldir}/include/video
2138
%{_kerneldir}/include/xen
2139
%{_kerneldir}/init
2140
%{_kerneldir}/ipc
2141
%{_kerneldir}/kernel
2142
%{_kerneldir}/lib
2143
%{_kerneldir}/mm
2144
%{_kerneldir}/net
2145
%{_kerneldir}/virt
2146
%{_kerneldir}/samples
2147
%{_kerneldir}/scripts
2148
%{_kerneldir}/security
2149
%{_kerneldir}/sound
2150
%{_kerneldir}/tools
2151
%{_kerneldir}/usr
2152
%{_kerneldir}/COPYING
2153
%{_kerneldir}/CREDITS
2154
%{_kerneldir}/Kbuild
2155
%{_kerneldir}/Kconfig
2156
%{_kerneldir}/MAINTAINERS
2157
%{_kerneldir}/Makefile
2158
%{_kerneldir}/README
2159
%{_kerneldir}/REPORTING-BUGS
2160
%doc README.kernel-sources
2161
2162
%files -n %{kname}-source-latest
2163
%endif
2164
2165
%if %build_doc
2166
%files -n %{kname}-doc
2167
%doc linux-%{tar_ver}/Documentation/*
2168
%endif
2169
2170
%if %{build_perf}
2171
%files -n perf
2172
%{_bindir}/perf
2173
%{_bindir}/trace
2174
%dir %{_prefix}/libexec/perf-core
2175
%{_libdir}/libperf-gtk.so
2176
%dir %{_libdir}/traceevent
2177
%dir %{_libdir}/traceevent/plugins
2178
%{_libdir}/traceevent/plugins/*
2179
%{_prefix}/libexec/perf-core/*
2180
%{_mandir}/man[1-8]/perf*
2181
%{_sysconfdir}/bash_completion.d/perf
2182
%endif
2183
2184
%if %{build_cpupower}
2185
%files -n cpupower -f cpupower.lang
2186
%{_bindir}/cpupower
2187
%{_libdir}/libcpupower.so.0
2188
%{_libdir}/libcpupower.so.0.0.0
2189
%{_unitdir}/cpupower.service
2190
%{_mandir}/man[1-8]/cpupower*
2191
%config(noreplace) %{_sysconfdir}/sysconfig/cpupower
2192
2193
%files -n cpupower-devel
2194
%{_libdir}/libcpupower.so
2195
%{_includedir}/cpufreq.h
2196
%endif
2197
2198
2199
%changelog
2200
2201
* Thu Apr 09 2015 Nicolo' Costanza <abitrules@yahoo.it> 3.18.11-QL
2202
+ update to 3.18.11 - this is the current LTS kernel version ;-) 
2203
- readd TOI (we need to test a lot with different hardware and configs)
2204
- small fixes and cleanups
2205
- ---------------------------------------------------------------------
2206
- Kernel 3.18 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2207
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2208
- The rel (-1) (mainline serie), with official kernel sources and addons,
2209
- the rel (-69) will be used for development and experimental flavours,
2210
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2211
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2212
- ---------------------------------------------------------------------
2213
2214
* Fri Mar 27 2015 Nicolo' Costanza <abitrules@yahoo.it> 3.18.10-QL
2215
+ update to 3.18.10 - this is the current LTS kernel version ;-) 
2216
- add patch: fifo-nv04-remove-the-loop-from-the-interrupt-handler
2217
- drop a patch that now is already in mainstream:
2218
  0001-drm-radeon-dp-Set-EDP_CONFIGURATION_SET-for-bridge-c.patch
2219
- fix few kernel keys hoping that now lxc-checkconfig may be happy
2220
- fix BR: xmlto is now required only for docs build with a condition,
2221
  to avoid a ton of requested rpms installation when docs is disable
2222
- small fixes and cleanups
2223
- ---------------------------------------------------------------------
2224
- Kernel 3.18 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2225
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2226
- The rel (-1) (mainline serie), with official kernel sources and addons,
2227
- the rel (-69) will be used for development and experimental flavours,
2228
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2229
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2230
- ---------------------------------------------------------------------
2231
2232
* Fri Mar 20 2015 Nicolo' Costanza <abitrules@yahoo.it> 3.18.9-QL
2233
+ update to 3.18.9 - this is the first 3.18 LTS version ;-)
2234
- disable Multiblock Queue I/O, revert to old disk I/O schedulers,
2235
­- for that I've changed to > # CONFIG_SCSI_MQ_DEFAULT is not set
2236
- add two pending patches for the bfs 460 scheduler:
2237
- /patches-QL/bfs460-locked-pluggedio.patch
2238
- /patches-QL/bfs460-smt-should-sched-not-is.patch
2239
- small fixes and cleanups
2240
- ---------------------------------------------------------------------
2241
- Kernel 3.18 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2242
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2243
- The rel (-1) (mainline serie), with official kernel sources and addons,
2244
- the rel (-69) will be used for development and experimental flavours,
2245
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2246
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2247
- ---------------------------------------------------------------------
2248
2249
* Wed Mar 04 2015 Nicolo' Costanza <abitrules@yahoo.it> 3.18.8-QL
2250
+ update to 3.18.8 - stable 
2251
- drop TOI: there are still issues with hybernation/resume in some HW
2252
- the four patches for TOI support have been moved to /archives
2253
- add 0001-drm-radeon-dp-Set-EDP_CONFIGURATION_SET-for-bridge-c.patch
2254
- a try to fix : https://issues.openmandriva.org/show_bug.cgi?id=1137
2255
- small fixes and cleanups
2256
- ---------------------------------------------------------------------
2257
- Kernel 3.18 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2258
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2259
- The rel (-1) (mainline serie), with official kernel sources and addons,
2260
- the rel (-69) will be used for development and experimental flavours,
2261
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2262
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2263
- ---------------------------------------------------------------------
2264
2265
* Fri Feb 27 2015 Nicolo' Costanza <abitrules@yahoo.it> 3.18.7-QL
2266
+ update to 3.18.7 - stable 
2267
- add support for the reiser4 fs with: reiser4-for-3.18.6.patch
2268
- add TOI for 3.18 plus 3 fix patches: TOI is back!
2269
- drop some patches patches that now are already in mainstream 
2270
- fix a kconflicts for nvidia-long-lived when mdvver >= 201300
2271
- small fixes and cleanups
2272
- ---------------------------------------------------------------------
2273
- Kernel 3.18 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2274
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2275
- The rel (-1) (mainline serie), with official kernel sources and addons,
2276
- the rel (-69) will be used for development and experimental flavours,
2277
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2278
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2279
- ---------------------------------------------------------------------
2280
2281
* Wed Feb 25 2015 Nicolo' Costanza <abitrules@yahoo.it> 3.18.6-QL
2282
+ update to 3.18.6 - stable 
2283
- small fixes and cleanups
2284
- ---------------------------------------------------------------------
2285
- Kernel 3.18 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2286
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2287
- The rel (-1) (mainline serie), with official kernel sources and addons,
2288
- the rel (-69) will be used for development and experimental flavours,
2289
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2290
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2291
- ---------------------------------------------------------------------
2292
2293
* Mon Feb 02 2015 Nicolo' Costanza <abitrules@yahoo.it> 3.18.5-QL
2294
+ update to 3.18.5 - stable 
2295
- drop some patches patches that now are already in mainstream 
2296
- small fixes and cleanups
2297
- ---------------------------------------------------------------------
2298
- Kernel 3.18 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2299
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2300
- The rel (-1) (mainline serie), with official kernel sources and addons,
2301
- the rel (-69) will be used for development and experimental flavours,
2302
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2303
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2304
- ---------------------------------------------------------------------
2305
2306
* Sat Jan 31 2015 Nicolo' Costanza <abitrules@yahoo.it> 3.18.4-QL
2307
+ update to 3.18.4 - stable 
2308
- add a new key > Fibre Channel over Ethernet (FCoE) (I40E_FCOE) [N/y/?] (NEW)
2309
- currently its first setup value as disabled > # CONFIG_I40E_FCOE is not set
2310
- drop some patches patches that now are already in mainstream 
2311
- small fixes and cleanups
2312
- ---------------------------------------------------------------------
2313
- Kernel 3.18 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2314
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2315
- The rel (-1) (mainline serie), with official kernel sources and addons,
2316
- the rel (-69) will be used for development and experimental flavours,
2317
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2318
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2319
- ---------------------------------------------------------------------
2320
2321
* Tue Jan 27 2015 Nicolo' Costanza <abitrules@yahoo.it> 3.18.3-QL
2322
+ update to 3.18.3 - stable 
2323
- drop # block fixes patches that now are already in mainstream 
2324
- small fixes and cleanups
2325
- ---------------------------------------------------------------------
2326
- Kernel 3.18 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2327
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2328
- The rel (-1) (mainline serie), with official kernel sources and addons,
2329
- the rel (-69) will be used for development and experimental flavours,
2330
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2331
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2332
- ---------------------------------------------------------------------
2333
2334
* Fri Jan 23 2015 Nicolo' Costanza <abitrules@yahoo.it> 3.18.2-QL
2335
+ update to 3.18.2 - stable 
2336
- add a patch to fix performance issue:
2337
- x86-vdso-Use-asm-volatile-in-__getcpu.patch
2338
- add a patch for iwlwifi:
2339
- net-wireless-iwlwifi-mvm-fix-Rx-with-both-chains.patch
2340
- ---------------------------------------------------------------------
2341
- Kernel 3.18 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2342
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2343
- The rel (-1) (mainline serie), with official kernel sources and addons,
2344
- the rel (-69) will be used for development and experimental flavours,
2345
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2346
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2347
- ---------------------------------------------------------------------
2348
2349
* Wed Jan 21 2015 Nicolo' Costanza <abitrules@yahoo.it> 3.18.1-QL
2350
+ update to 3.18.1 - stable
2351
+ it's first version of "nrj/nrjQL" stable 3.18.x, in early development
2352
- stage, so, it's only for testing purposes, please, dont use this srpm,
2353
- for your daily PC working, because is still to fix all over!!!
2354
- all the defconfigs have been prepared for the 3.18 series
2355
- all the patches have been added/update for the 3.18 series
2356
- all the kernel specs have been updated to the 3.18 series
2357
- all custom openmandriva/rosa features have been backported from previous
2358
- ---------------------------------------------------------------------
2359
- Kernel 3.18 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2360
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2361
- The rel (-1) (mainline serie), with official kernel sources and addons,
2362
- the rel (-69) will be used for development and experimental flavours,
2363
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2364
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2365
- ---------------------------------------------------------------------
2366
2367
* Mon Jan 12 2015 Nicolo' Costanza <abitrules@yahoo.it> 3.17.8-QL
2368
+ update to 3.17.8 - stable
2369
- ---------------------------------------------------------------------
2370
- Kernel 3.17 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2371
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2372
- The rel (-1) (mainline serie), with official kernel sources and addons,
2373
- the rel (-QL) will be used for development and experimental flavours,
2374
- instead (-ONE) is born by the -1 % -69 merge, can generate all flavours
2375
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2376
- ---------------------------------------------------------------------
2377
2378
* Sun Dec 28 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.17.7-QL
2379
+ update to 3.17.7 - stable
2380
- update BFQ patches from v7r6 to v7r7 to prevent an occasional memory leak
2381
- add AUFS support (there is a new key, currently disabled):
2382
- File-based Hierarchical Storage Management (AUFS_FHSM): set as "disabled"
2383
- add OverlayFS code being merged in upstream 3.18
2384
- a request from POK: CONFIG_SATA_SIL changed from =m to =y
2385
- netlink: Re-add locking to netlink_lookup() and seq walker
2386
  (fixes latency regression)
2387
- input: i8042 - touchpad quirks for Fujitsu Lifebook A(H)544
2388
- ext4: fix oops when loading block bitmap failed
2389
- saa7146: Create a device name before it's used
2390
- drm/i915: Do not store the error pointer for a failed userptr registration
2391
- drm/i915: Do not leak pages when freeing userptr objects
2392
- drm/radeon/dpm: disable ulv support on SI
2393
- drm/radeon: dpm fixes for asrock systems
2394
- lib/scatterlist: fix memory leak with scsi-mq
2395
- revert 'block: all blk-mq requests are tagged'
2396
- scsi: set REQ_QUEUE for the blk-mq case
2397
- revert 'ACPI / EC: Add support to disallow QR_EC to be issued before
2398
  completing previous QR_EC'
2399
- ACPI / EC: Fix regression due to conflicting firmware behavior between
2400
  Samsung and Acer
2401
- rcu: Provide counterpart to rcu_dereference() for non-RCU situations
2402
- add ahci, alsa, i2c support for Intel Sunrise Point PCH / Skylake
2403
- ---------------------------------------------------------------------
2404
- Kernel 3.17 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2405
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2406
- The rel (-1) (mainline serie), with official kernel sources and addons,
2407
- the rel (-QL) will be used for development and experimental flavours,
2408
- instead (-ONE) is born by the -1 % -69 merge, can generate all flavours
2409
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2410
- ---------------------------------------------------------------------
2411
2412
* Sun Dec 14 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.17.6-QL
2413
+ update to 3.17.6 - stable
2414
- ---------------------------------------------------------------------
2415
- Kernel 3.17 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2416
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2417
- The rel (-1) (mainline serie), with official kernel sources and addons,
2418
- the rel (-QL) will be used for development and experimental flavours,
2419
- instead (-ONE) is born by the -1 % -69 merge, can generate all flavours
2420
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2421
- ---------------------------------------------------------------------
2422
2423
* Sat Dec 06 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.17.5-QL
2424
+ update to 3.17.5 - stable
2425
- ---------------------------------------------------------------------
2426
- Kernel 3.17 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2427
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2428
- The rel (-1) (mainline serie), with official kernel sources and addons,
2429
- the rel (-QL) will be used for development and experimental flavours,
2430
- instead (-ONE) is born by the -1 % -69 merge, can generate all flavours
2431
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2432
- ---------------------------------------------------------------------
2433
2434
* Fri Nov 28 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.17.4-QL
2435
+ update to 3.17.4 - stable
2436
- drop unofficial ck1/bfs 456
2437
- added official ck2/bfs 458
2438
- ---------------------------------------------------------------------
2439
- Kernel 3.17 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2440
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2441
- The rel (-1) (mainline serie), with official kernel sources and addons,
2442
- the rel (-QL) will be used for development and experimental flavours,
2443
- instead (-ONE) is born by the -1 % -69 merge, can generate all flavours
2444
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2445
- ---------------------------------------------------------------------
2446
2447
* Thu Nov 20 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.17.3-QL
2448
+ update to 3.17.3 - stable
2449
- added UKSM 0.1.2.3 ge.2 for kernel 3.17
2450
- added Reiser4 file system for kernel 3.17
2451
- added ix86 & x86_64 build fixes for cooker (201500)
2452
- ---------------------------------------------------------------------
2453
- Kernel 3.17 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2454
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2455
- The rel (-1) (mainline serie), with official kernel sources and addons,
2456
- the rel (-QL) will be used for development and experimental flavours,
2457
- instead (-ONE) is born by the -1 % -69 merge, can generate all flavours
2458
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2459
- ---------------------------------------------------------------------
2460
2461
* Sat Nov 01 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.17.2-QL
2462
- Virtual package for new nrj kernel for properly install and updates.
2463
+ update to 3.17.2 - stable
2464
- all the create_configs scripts have been updated to v.2.4
2465
- all netbook flavours have NAMESPACES enabled, as this speedup things
2466
- drop few patches
2467
- ---------------------------------------------------------------------
2468
- Kernel 3.17 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2469
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2470
- The rel (-1) (mainline serie), with official kernel sources and addons,
2471
- the rel (-QL) will be used for development and experimental flavours,
2472
- instead (-ONE) is born by the -1 % -69 merge, can generate all flavours
2473
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2474
- ---------------------------------------------------------------------
2475
2476
* Sun Oct 26 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.17.1-69
2477
+ update to 3.17.1 - stable
2478
+ it's first version of "nrj/nrjQL" stable 3.17.x, in early development
2479
- stage, so, it's only for testing purposes, please, dont use this srpm,
2480
- for your daily PC working, because is still to fix all over!!!
2481
- all the defconfigs have been prepared for the 3.17 series
2482
- all the patches have been added/update for the 3.17 series
2483
- all the create_configs scripts have been updated to v.2.3
2484
- all the kernel specs have been updated to the 3.17 series
2485
- all custom openmandriva/rosa features have been backported from previous
2486
- ---------------------------------------------------------------------
2487
- Kernel 3.17 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2488
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2489
- The rel (-1) (mainline serie), with official kernel sources and addons,
2490
- the rel (-69) will be used for development and experimental flavours,
2491
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2492
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2493
- ---------------------------------------------------------------------
2494
2495
* Sat Aug 30 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.15.10-69
2496
+ update to 3.15.10 (EOL) - stable (replacement release)
2497
- update ReiserFS4:
2498
- /patches-NRJ/0004-reiser4-for-3.15.2.patch
2499
- update BFS scheduler to 455, plus fixes, plus HT/SMT Nice 6 and configs:
2500
- /patches-QL/0001_3.15-sched-bfs-455-2.patch
2501
- /patches-QL/0002_ck-3.16-revert-KVM-workaround-due-to-proper-cond_res.patch
2502
- /patches-QL/0003_bfs449-smtnice-6.patch
2503
- ---------------------------------------------------------------------
2504
- Kernel 3.15 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2505
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2506
- The rel (-1) (mainline serie), with official kernel sources and addons,
2507
- the rel (-69) will be used for development and experimental flavours,
2508
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2509
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2510
- ---------------------------------------------------------------------
2511
2512
* Sat Aug 16 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.15.10-69
2513
+ update to 3.15.10 (EOL) - stable
2514
- add drm/radeon: Adding UVD handle basis fps estimation v2
2515
- http://lists.freedesktop.org/archives/dri-devel/2014-August/065766.html
2516
- add ReiserFS4 for kernel 3.15
2517
- /patches-NRJ/0004-reiser4-for-3.15.1.patch
2518
- /patches-NRJ/0005-3.15.1-reiser4-basic-discard-support.patch
2519
- ---------------------------------------------------------------------
2520
- Kernel 3.15 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2521
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2522
- The rel (-1) (mainline serie), with official kernel sources and addons,
2523
- the rel (-69) will be used for development and experimental flavours,
2524
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2525
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2526
- ---------------------------------------------------------------------
2527
2528
* Fri Aug 08 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.15.9-69
2529
+ update to 3.15.9 - stable
2530
- import ASPM fix patch from kernel 3.17 queue to improve powersave
2531
- to read: http://www.phoronix.com/scan.php?page=news_item&px=MTc0NzE
2532
- audio powersave: reduced idle time from 15 to 10 seconds
2533
- configs for kernel realtime have audio powersave disable
2534
- update TOI (power manager) from release 3.5.7 to 3.5.8  
2535
- fix the broken support for running 16-bit code (X86_16BIT):
2536
- to read: http://cateee.net/lkddb/web-lkddb/X86_16BIT.html
2537
. new keys added to configs for X86_16BIT:
2538
+ CONFIG_X86_16BIT=y
2539
+ CONFIG_X86_ESPFIX32=y
2540
- ---------------------------------------------------------------------
2541
- Kernel 3.15 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2542
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2543
- The rel (-1) (mainline serie), with official kernel sources and addons,
2544
- the rel (-69) will be used for development and experimental flavours,
2545
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2546
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2547
- ---------------------------------------------------------------------
2548
2549
* Fri Aug 01 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.15.8-69
2550
+ update to 3.15.8 - stable
2551
- drop patch: x86-x86_32-entry-store-badsys-error-code-in-eax.patch
2552
- update TOI (power manager) from release 3.5.6 to 3.5.7 
2553
- audio powersave: reduced idle time from 60 to 15 seconds
2554
- ---------------------------------------------------------------------
2555
- Kernel 3.15 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2556
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2557
- The rel (-1) (mainline serie), with official kernel sources and addons,
2558
- the rel (-69) will be used for development and experimental flavours,
2559
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2560
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2561
- ---------------------------------------------------------------------
2562
2563
* Tue Jul 29 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.15.7-69
2564
+ update to 3.15.7 - stable
2565
- add patch: x86-x86_32-entry-store-badsys-error-code-in-eax
2566
- drop patch: revert-Bluetooth-Add-a-new-PID_VID-0cf3_e005-for-AR3012
2567
- fix create_configs-QL script for a new TOI request (TOI_INCREMENTAL=n)
2568
- update BFS (task scheduler) from release 448 to 449 
2569
- ---------------------------------------------------------------------
2570
- Kernel 3.15 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2571
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2572
- The rel (-1) (mainline serie), with official kernel sources and addons,
2573
- the rel (-69) will be used for development and experimental flavours,
2574
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2575
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2576
- ---------------------------------------------------------------------
2577
2578
* Sun Jul 20 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.15.6-69
2579
+ update to 3.15.6 - stable
2580
+ it's first version of "nrj/nrjQL" stable 3.15.x, in early development
2581
- stage, so, it's only for testing purposes, please, dont use this srpm,
2582
- for your daily PC working, because is still to fix all over!!!
2583
- all the defconfigs have been prepared for the 3.15 series
2584
- all the patches have been added/update for the 3.15 series
2585
- all the create_configs scripts have been updated to v.2.2
2586
- all the kernel specs have been updated to the 3.15 series
2587
- ---------------------------------------------------------------------
2588
- Kernel 3.15 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2589
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2590
- The rel (-1) (mainline serie), with official kernel sources and addons,
2591
- the rel (-69) will be used for development and experimental flavours,
2592
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2593
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2594
- ---------------------------------------------------------------------
2595
2596
* Fri Jul 18 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.14.13-69
2597
+ update to 3.14.13 - stable
2598
- update UKSM (nrjQL memory management) from 0.1.2.2 to 0.1.2.3
2599
- x86 configs change: CONFIG_X86_VERBOSE_BOOTUP from "=y" to "=n" 
2600
- to suppress annoying flashing messages while decompressig intrd:
2601
- "Decompressing Linux . . . Parsing ELF . . . done
2602
- Booting the kernel"
2603
- fix from Eugene.S.: add perf-python-ext-link-with-dl.patch
2604
- this patch is needed to fix the proper build of the perf tool
2605
- ---------------------------------------------------------------------
2606
- Kernel 3.14 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2607
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2608
- The rel (-1) (mainline serie), with official kernel sources and addons,
2609
- the rel (-69) will be used for development and experimental flavours,
2610
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2611
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2612
- ---------------------------------------------------------------------
2613
2614
* Tue Jul 01 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.14.10-69
2615
+ update to 3.14.10 - stable
2616
- patch: tux on ice 3.14.10
2617
- kernel.spec: add a new flavour to complete nrj set: nrj-server
2618
- scripts/create_configs: add a new kernel flavour: nrj-server
2619
- bero: added BuildRequires: pkgconfig(ncurses) 
2620
- ---------------------------------------------------------------------
2621
- Kernel 3.14 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2622
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2623
- The rel (-1) (mainline serie), with official kernel sources and addons,
2624
- the rel (-69) will be used for development and experimental flavours,
2625
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2626
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2627
- ---------------------------------------------------------------------
2628
2629
* Fri Jun 27 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.14.9-69
2630
+ update to 3.14.9 - stable
2631
- patch: tux on ice 3.14.9
2632
- ---------------------------------------------------------------------
2633
- Kernel 3.14 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2634
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2635
- The rel (-1) (mainline serie), with official kernel sources and addons,
2636
- the rel (-69) will be used for development and experimental flavours,
2637
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2638
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2639
- ---------------------------------------------------------------------
2640
2641
* Tue Jun 24 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.14.8-69
2642
+ update to 3.14.8 - stable
2643
- few fixes to BR
2644
- ---------------------------------------------------------------------
2645
- Kernel 3.14 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2646
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2647
- The rel (-1) (mainline serie), with official kernel sources and addons,
2648
- the rel (-69) will be used for development and experimental flavours,
2649
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2650
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2651
- ---------------------------------------------------------------------
2652
2653
* Sat Jun 21 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.14.6-69
2654
+ update to 3.14.6 (LTS???) - stable
2655
+ this is first version of "nrj/nrjQL" stable 3.14.x, in its early development
2656
- stage, so, it's only for testing purposes, please, dont use this srpm,
2657
- for your daily PC working, because is still to fix all over!!!
2658
- all the defconfigs have been prepared for the 3.14 series
2659
- all the patches have been added/update for the 3.14 series
2660
- all the create_configs scripts have been updated to v.2.1
2661
- all the kernel specs have been updated to the 3.14 series
2662
- modified kernel.spec to support from %mdvver 201200 to 201500
2663
- tpg: fbsplash/fbcondecor feature: /patches-latest/fbcondecor-3.14.patch
2664
- add config key: CONFIG_FB_CON_DECOR=y, changed: FB_TILEBLITTING=n
2665
- pok: /patches-latest/linux-3.15-rc3-ahci-alpm-with-devslp-accounting.patch
2666
- pok: build a cross-kernel-header package for arm, arm64 & mips toolchains
2667
- arm: from CONFIG_SQUASHFS_DECOMP_MULTI=y to CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU=y
2668
- to be fixed: %if %{build_perf} with /traceevent and /traceevent/plugins
2669
- ---------------------------------------------------------------------
2670
- Kernel 3.14 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2671
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2672
- The rel (-1) (mainline serie), with official kernel sources and addons,
2673
- the rel (-69) will be used for development and experimental flavours,
2674
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2675
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2676
- ---------------------------------------------------------------------
2677
2678
* Sat May 17 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.13.11-69.2
2679
+ update to 3.13.11 (EOL) - stable
2680
- update BFQ to v7r4: 
2681
  it fixes some oops that may happen with some new NCQ HDD devices,
2682
  it leads other small speed improvements:
2683
  - 0001-block-cgroups-kconfig-build-bits-for-BFQ-v7r4-3.13.patch
2684
  - 0002-block-introduce-the-BFQ-v7r4-I-O-sched-for-3.13.patch
2685
  - 0003-block-bfq-add-Early-Queue-Merge-EQM-to-BFQ-v7r4-for-3.13.0.patch
2686
- two lines commented to know what triggers them show up (by TPG request):
2687
  from: /arch/x86/boot/compressed/misc.c
2688
     // debug_putstr("\nDecompressing Linux... ")
2689
    // debug_putstr("done.\nBooting the kernel.\n")
2690
- ---------------------------------------------------------------------
2691
- Kernel 3.13 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2692
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2693
- The rel (-1) (mainline serie), with official kernel sources and addons,
2694
- the rel (-69) will be used for development and experimental flavours,
2695
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2696
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2697
- ---------------------------------------------------------------------
2698
2699
* Thu Apr 24 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.13.11-69
2700
+ update to 3.13.11 (EOL) - stable
2701
- update patches:
2702
  * tuxonice-for-linux-3.13.11-2014-04-24.patch
2703
  * uksm-0.1.2.2-for-v3.13.ge.9.patch
2704
- update BFQ to v7r3
2705
  * 0001-block-cgroups-kconfig-build-bits-for-BFQ-v7r3-3.13.patch
2706
  * 0002-block-introduce-the-BFQ-v7r3-I-O-sched-for-3.13.patch
2707
  * 0003-block-bfq-add-Early-Queue-Merge-EQM-to-BFQ-v7r3-for-.patch
2708
- suggestion / request received by Per Øyvind Karlsen (POK)
2709
  * CONFIG_ACPI_CUSTOM_DSDT=y
2710
- ---------------------------------------------------------------------
2711
- Kernel 3.13 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2712
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2713
- The rel (-1) (mainline serie), with official kernel sources and addons,
2714
- the rel (-69) will be used for development and experimental flavours,
2715
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2716
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2717
- ---------------------------------------------------------------------
2718
2719
* Mon Apr 14 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.13.10-69
2720
+ update to 3.13.10 - stable
2721
- on request by Alexander Khryukin: 
2722
  * adding keys requested by Fedya to solve this issue:
2723
  * https://issues.openmandriva.org/show_bug.cgi?id=165
2724
  * http://pastie.org/9079599 > fixed missing features
2725
  * Cgroup sched: missing
2726
  * Cgroup cpu account: missing
2727
  * Cgroup memory controller: missing
2728
- ---------------------------------------------------------------------
2729
- Kernel 3.13 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2730
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2731
- The rel (-1) (mainline serie), with official kernel sources and addons,
2732
- the rel (-69) will be used for development and experimental flavours,
2733
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2734
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2735
- ---------------------------------------------------------------------
2736
2737
* Sun Apr 13 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.13.10-0
2738
+ update to 3.13.10 - rc1
2739
- add: /patches-latest with its script (where are the latest things)
2740
  * criu-no-expert.patch
2741
  * linux-003-no_dev_console.patch
2742
  * linux-004_lower_undefined_mode_timeout.patch
2743
  * linux-006_enable_utf8.patch
2744
  * linux-991.01-ptrace_fix.patch
2745
- ---------------------------------------------------------------------
2746
- Kernel 3.13 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2747
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2748
- The rel (-1) (mainline serie), with official kernel sources and addons,
2749
- the rel (-69) will be used for development and experimental flavours,
2750
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2751
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2752
- ---------------------------------------------------------------------
2753
2754
* Fri Apr 04 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.13.9-69
2755
+ update to 3.13.9 stable
2756
- add: /patches-queue (for tests) and /patches-geek with HW support:
2757
- * DVB cards, IR receivers, WiFi devices, Game controllers, Laptops  
2758
- add: 6 patches to improve NFS behaviour, fixing ops and start time
2759
- add: the 3 patches for Pegatron device driver (offered by Benatto)
2760
- add: new kernel driver modules are enabled, just below the list:
2761
  * CONFIG_DVB_USB_DVBSKY=m
2762
  * CONFIG_HID_SPINELPLUS=m
2763
  * CONFIG_LIRC_XBOX=m 
2764
  * CONFIG_PEGATRON_LAPTOP=m 
2765
- add: patch to fix a disconnection USB problem with some slow USB HW
2766
- suggested by Marco Benatto and was requested by Colin Close (itchka)
2767
  - website: http://marc.info/?l=linux-usb&m=137714769606183&w=2
2768
  * USB:_Fix_USB_device_disconnects_on_resume.patch
2769
- on request by Fedya
2770
  * adding keys requested by Fedya to solve this issue:
2771
  * https://issues.openmandriva.org/show_bug.cgi?id=165
2772
- fix: Benatto sent a working solution for UKSM 3.13 build error 3.13.9
2773
  * 0001-uksm-0.1.2.2-for-v3.13.patch
2774
  * 0002-uksm_change_compound_head_call.patch
2775
-  visual improvements: boot and console appereance changes:
2776
- add: colored printk feature with the default colors for all .configs
2777
  * we must setup our preferred color palette, different than (=0x07)
2778
- add: font-8x16-iso-latin-1-v3.patch
2779
  * this shows the boot with more readable fonts, with a more dense look
2780
- ---------------------------------------------------------------------
2781
- Kernel 3.13 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2782
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2783
- The rel (-1) (mainline serie), with official kernel sources and addons,
2784
- the rel (-69) will be used for development and experimental flavours,
2785
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2786
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2787
- ---------------------------------------------------------------------
2788
2789
* Mon Mar 31 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.13.8-69
2790
+ update to 3.13.8 stable
2791
- sync patches
2792
- ---------------------------------------------------------------------
2793
- Kernel 3.13 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2794
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2795
- The rel (-1) (mainline serie), with official kernel sources and addons,
2796
- the rel (-69) will be used for development and experimental flavours,
2797
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2798
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2799
- ---------------------------------------------------------------------
2800
2801
* Fri Mar 28 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.13.7-69
2802
+ update to 3.13.7 stable
2803
- sync with few nrjQL patches
2804
- sync all the patches for 3.13.8 (rc1)
2805
- add REISER4 (file system) support, with two new patches:
2806
  * 0004-reiser4-for-3.13.6.patch
2807
  * 0005-3.13.1-reiser4-different-transaction-models.patch
2808
- ---------------------------------------------------------------------
2809
- Kernel 3.13 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2810
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2811
- The rel (-1) (mainline serie), with official kernel sources and addons,
2812
- the rel (-69) will be used for development and experimental flavours,
2813
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2814
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2815
- ---------------------------------------------------------------------
2816
2817
* Mon Mar 10 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.13.6-69
2818
+ update to 3.13.6 stable
2819
+ this is first version of "nrj" stable 3.13.x, in its early development
2820
- stage, so, it's only for testing purposes, please, dont use this srpm,
2821
- because is still to fix all over!!!
2822
- all the defconfigs have been prepared for the 3.13 series
2823
- all the patches have been added for the 3.13 series
2824
- all the create_configs scripts have been updated to v.2.1
2825
- all the kernel specs have been updated to the 3.13 series
2826
- ---------------------------------------------------------------------
2827
- Kernel 3.13 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2828
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2829
- The rel (-1) (mainline serie), with official kernel sources and addons,
2830
- the rel (-69) will be used for development and experimental flavours,
2831
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2832
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2833
- ---------------------------------------------------------------------
2834
2835
* Sun Feb 23 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.12.13-69
2836
+ kernel 3.12.13 stable
2837
- drop 2 patches, already in mainstream:
2838
  * x86-xen-mmu-fix-NUMA-crash.patch
2839
  * revert-usbcore-set-lpm_capable-field-for-lpm-capable-root-hubs.patch
2840
- small fixes and cleanups
2841
- ---------------------------------------------------------------------
2842
- Kernel 3.12 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2843
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2844
- The rel (-1) (mainline serie), with official kernel sources and addons,
2845
- the rel (-69) will be used for development and experimental flavours,
2846
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2847
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2848
- ---------------------------------------------------------------------
2849
2850
* Fri Feb 21 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.12.12-69
2851
+ kernel 3.12.12 stable
2852
- add: libunwind-devel as BR for %mdvver >= 201210 (ROSA 2012.1)
2853
- change ftp://ftp.kernel.org patch format from .bz2 to .xz
2854
- update: tuxonice-for-linux-3.12.12-2014-02-21.patch
2855
- small fixes and cleanups
2856
- ---------------------------------------------------------------------
2857
- Kernel 3.12 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2858
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2859
- The rel (-1) (mainline serie), with official kernel sources and addons,
2860
- the rel (-69) will be used for development and experimental flavours,
2861
- instead (-70) is born by the -1 % -69 merge, can generate all flavours
2862
- Yin & Yang (69) release - it's a very complete kernel flavour sets
2863
- ---------------------------------------------------------------------
2864
2865
* Sat Feb 15 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.12.11-69
2866
+ kernel 3.12.11 stable
2867
- add: H930C-part1.patch, H930C-part2.patch, H930C-part3.patch
2868
- add: kernel-3.11.8-i915-quirk-acer-aspire-v3-772g.patch
2869
- drop: 2 drm patches, already in mainstream
2870
- update: BFQ (disk I/O scheduler) from v7r1 to v7r2
2871
- update: tuxonice-for-linux-3.12.11-2014-02-15.patch
2872
- update: linux-saa716x_PCIe_interface_chipset.patch
2873
- ---------------------------------------------------------------------
2874
- Kernel 3.12 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2875
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2876
- The rel -1 (mainline serie), with official kernel sources and addons,
2877
- instead (-69) will be used for development and experimental flavours,
2878
- Yin & Yang (69) release - a very complete but experimental flavours...
2879
- ---------------------------------------------------------------------
2880
2881
* Tue Feb 11 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.12.10-69
2882
+ kernel 3.12.10 stable
2883
- update BFQ (disk I/O scheduler) to v7r1
2884
- enable the key: CONFIG_DRM_RADEON_UMS=y
2885
- drop 12 patches, already in mainstream
2886
- ---------------------------------------------------------------------
2887
- Kernel 3.12 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2888
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2889
- The rel -1 (mainline serie), with official kernel sources and addons,
2890
- instead (-69) will be used for development and experimental flavours,
2891
- Yin & Yang (69) release - a very complete but experimental flavours...
2892
- ---------------------------------------------------------------------
2893
2894
* Tue Feb 04 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.12.9-69v7
2895
+ this is only a fix release replacement - not changed release nr.
2896
- create_configs > enabled NAMESPACES & UIDGID_STRICT_TYPE_CHECKS
2897
- this release has new BFQv7 enabled, prepared for testing purposes
2898
- ---------------------------------------------------------------------
2899
- Kernel 3.12 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2900
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2901
- The rel -1 (mainline serie), with official kernel sources and addons,
2902
- instead (-69) will be used for development and experimental flavours,
2903
- Yin & Yang (69) release - a very complete but experimental flavours...
2904
- ---------------------------------------------------------------------
2905
2906
* Tue Feb 04 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.12.9-69
2907
+ this is only a fix release replacement - not changed release nr.
2908
- create_configs > enabled NAMESPACES & UIDGID_STRICT_TYPE_CHECKS
2909
- this release has BFQv6r2, not the newest BFQv7, better waiting...
2910
- ---------------------------------------------------------------------
2911
- Kernel 3.12 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2912
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2913
- The rel -1 (mainline serie), with official kernel sources and addons,
2914
- instead (-69) will be used for development and experimental flavours,
2915
- Yin & Yang (69) release - a very complete but experimental flavours...
2916
- ---------------------------------------------------------------------
2917
2918
* Sun Feb 02 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.12.9-69v7
2919
+ kernel 3.12.9 stable
2920
- this is the first testing version with new BFQv7 disk I/O scheduler
2921
- ---------------------------------------------------------------------
2922
- Kernel 3.10 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2923
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2924
- The rel -1 (mainline serie), with official kernel sources and addons,
2925
- the rel -69  is used for development and the experimental flavours,
2926
- the rel -70 is merge of mainline & experimental flavours in ONE srpm
2927
- Yin & Yang (69) release - a very complete but experimental flavours...
2928
- ---------------------------------------------------------------------
2929
2930
* Thu Jan 30 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.12.9-69
2931
+ update to 3.12.9 stable
2932
- small fixes and cleanups:
2933
- removed all the remaining warning msgs from create_configs:
2934
- fixed .defconfigs (arm.config, i386.config, x86_64.config)
2935
 - satisfied all build CHK (audit, numa and unwind): 
2936
- BuildRequires: audit-devel numa-devel unwind-devel
2937
- sync & add new patches
2938
- ---------------------------------------------------------------------
2939
- Kernel 3.12 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2940
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2941
- The rel -1 (mainline serie), with official kernel sources and addons,
2942
- instead (-69) will be used for development and experimental flavours,
2943
- Yin & Yang (69) release - a very complete but experimental flavours...
2944
- ---------------------------------------------------------------------
2945
2946
* Sun Jan 26 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.12.8-69
2947
+ update to 3.12.8 stable
2948
- sync & add new patches
2949
- ---------------------------------------------------------------------
2950
- Kernel 3.12 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2951
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2952
- The rel -1 (mainline serie), with official kernel sources and addons,
2953
- instead (-69) will be used for development and experimental flavours,
2954
- Yin & Yang (69) release - a very complete but experimental flavours...
2955
- ---------------------------------------------------------------------
2956
2957
* Mon Jan 13 2014 Nicolo' Costanza <abitrules@yahoo.it> 3.12.7-69
2958
+ update to 3.12.7 stable
2959
- sync & add new patches
2960
- drop 3rdparty heci driver (obsoleted by in-kernel mei driver)
2961
- switch to percpu squashfs multi-decompressor on i586 & x86_64
2962
- ---------------------------------------------------------------------
2963
- Kernel 3.12 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2964
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2965
- The rel -1 (mainline serie), with official kernel sources and addons,
2966
- instead (-69) will be used for development and experimental flavours,
2967
- Yin & Yang (69) release - a very complete but experimental flavours...
2968
- ---------------------------------------------------------------------
2969
2970
* Tue Dec 31 2013 Nicolo' Costanza <abitrules@yahoo.it> 3.12.6-69
2971
+ update to 3.12.6 stable
2972
- add fix to properly rebuild the modules for latest VMware products 
2973
- add patch: reiser4-for-3.12.6.patch
2974
- add fix to all kernel.spec for a proper "cooker" rebuild 
2975
- drop a workaround introduced since 3.7.9-1 to fix issues with dkms: 
2976
- # /linux/version.h symlink to /include/generated/uapi/linux/version.h
2977
- ---------------------------------------------------------------------
2978
- Kernel 3.12 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2979
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
2980
- The rel -1 (mainline serie), with official kernel sources and addons,
2981
- instead (-69) will be used for development and experimental flavours,
2982
- Yin & Yang (69) release - a very complete but experimental flavours...
2983
- ---------------------------------------------------------------------
2984
2985
* Fri Dec 20 2013 Nicolo' Costanza <abitrules@yahoo.it> 3.12.5-69
2986
+ update to 3.12.5 stable
2987
+ this is first version of "nrj" stable 3.12.x, in its early development
2988
- stage, so, it's only for testing purposes, please, dont use this srpm,
2989
- because is still to fix all over!!!
2990
-
2991
- hoping there will follow many other kernels developed by me...
2992
-
2993
- all the defconfigs have been prepared for the 3.12 series
2994
- all the patches have been added for the 3.12 series
2995
- all the create_configs scripts have been updated to v.2.0
2996
- all the kernel specs have been updated to the 3.12 series
2997
- ---------------------------------------------------------------------
2998
- Kernel 3.12 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
2999
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/
3000
- The rel -1 (mainline serie), with official kernel sources and addons,
3001
- instead (-69) will be used for development and experimental flavours,
3002
- Yin & Yang (69) release - a very complete but experimental flavours...
3003
- ---------------------------------------------------------------------
3004
3005
* Sun Dec 01 2013 Nicolo' Costanza <abitrules@yahoo.it> 3.11.10-69
3006
- Virtual package for new nrj kernel for properly install and updates.
3007
+ update to 3.11.10 stable
3008
- http://lwn.net/Articles/575269/ > This is EOL for 3.11
3009
- * 44 files changed, 395 insertions(+), 195 deletions(-)
3010
- update: /patches-QL/tuxonice-for-linux-3.11.10-2013-11-30.patch
3011
- small fixes and cleanups
3012
- ---------------------------------------------------------------------
3013
- Kernel 3.10 for mdv 2010.2, 2011.0, cooker, rosa.lts2012.0, rosa2012.1
3014
- MIB (Mandriva International Backports) - http://mib.pianetalinux.org/