[opensuse-kernel] How to compile the kernel style "OpenSuSE"?
Hello, I have a doubt in the correct procedure for compiling the operating system kernel in OpenSUSE. I have sought help in forums, but nobody could help me, so I'm turning to you. I hope you can understand me, my English is not very good. I'm using version 12.1 of the "OpenSUSE" with kernel "1.3.10-1.16-default." After downloading the kernel source code and all the build dependencies via "YAST", run the following commands as "root": cd /usr/src/linux-3.1.10-1.16/; make clean; make mrproper; cp /boot/config-3.1.10-1.16-default ./.config; make menuconfig; At this stage I would not change any configuration of the kernel, just select the file ".config" and choose a name for the kernel that will be compiled. After these procedures, I save and start the build process via the command: make dep; make rpm; After waiting for the build is done, I checked the package ".rpm" generated has a size of 317 MB, and the repository of the "OpenSUSE", the size of this file is approximately 37 MB. After installing the kernel compiled, I noticed no difference in the number of generated binary files, only in their size. So, I wonder, because the kernel is compiled much mair than the kernel provided by the repository "OpenSUSE"?, And I'm using the same configuration. And what is the correct way to compile the kernel in OpenSUSE?. So I can generate a size compatible with the repository. Thank you for the information, João -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08/22/2012 04:08 AM, João Silva wrote:
So, I wonder, because the kernel is compiled much mair than the kernel provided by the repository "OpenSUSE"?, And I'm using the same configuration.
Debuginfo. It's not stripped from modules/vmlinux in your rpm.
And what is the correct way to compile the kernel in OpenSUSE?. So I can generate a size compatible with the repository.
Perhaps using osc build: osc co Kernel:openSUSE-12.1 kernel-default cd Kernel:openSUSE-12.1/kernel-default osc build with proper parameters... regards, - -- js suse labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJQNL6uAAoJEL0lsQQGtHBJQScP/1KJeF7dkcHVN2kHZE76mHGL tG5wW7N58jq6IT5shBbUTZP8+zvBPn+alP9wSTRKEn7Q9jaChk72y06YXfOb8POo EOXFuJ4EM4X4FmFjYagqp4aaTHv1rN8VI/hRGVxU4i076D9tfuk8KCB7lHZ2rey8 byRGiBPCyPal4VZrwlhPWMQanh45qsh9VQdc8SEZx7kuLs8X7EQCHDXY5ORMHaNp Nwg2gNt/qIY1oBS4ar7stf39irvNzGPcAlC2nYaSkR+hJDvcIxBJyo9/T0i0mvyC Kd6SV3rnh1GMs33yTaQilc3A9ptMza+J0JTainQw8yElShMPFAaUIhuhju3Bs0BX A3V0X+Db+Fm9mPwp9oI85RWNGW1qd3Mv+CelkNL0xa2WeW4dcd0t9hEBf/OJvO09 B7kRpW5HfdQkf0RsOcrOAVHgkPNNQ1ssUox6rkl2dd4uZ2kwBc5bnJN4U9+G2qj6 o9WiBaO2iKyd6k6cq0bPhg7fs8Gyt/rttK3J/wGMLIl3J0hMVCSKoDgtDLPpKJ2a 5kq4el0zZabMkPYwNXiZQgwxpP5a13YRn8kUPr/F6ikNmfh4ZEojxsB5vvL3dCyC pAOb1hYS3SpU6BS/yWTQcLBzk1baJZF4JrZQhaBxRaUJOLSQWnvpIQadxF8G1WiQ 2BlQbbdtGANSMLKQYxdb =b5vw -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
2012/8/22 Jiri Slaby <jslaby@suse.cz>:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 08/22/2012 04:08 AM, João Silva wrote:
So, I wonder, because the kernel is compiled much mair than the kernel provided by the repository "OpenSUSE"?, And I'm using the same configuration.
Debuginfo. It's not stripped from modules/vmlinux in your rpm.
And what is the correct way to compile the kernel in OpenSUSE?. So I can generate a size compatible with the repository.
Perhaps using osc build: osc co Kernel:openSUSE-12.1 kernel-default cd Kernel:openSUSE-12.1/kernel-default osc build
Hello Jiri, I followed the script you gave me and everything went well, thank you. One more question, I wanted to apply a "patch" and change the file ".config" before you start compiling a kernel. What is the easiest way to do this?
with proper parameters...
regards, - -- js suse labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBAgAGBQJQNL6uAAoJEL0lsQQGtHBJQScP/1KJeF7dkcHVN2kHZE76mHGL tG5wW7N58jq6IT5shBbUTZP8+zvBPn+alP9wSTRKEn7Q9jaChk72y06YXfOb8POo EOXFuJ4EM4X4FmFjYagqp4aaTHv1rN8VI/hRGVxU4i076D9tfuk8KCB7lHZ2rey8 byRGiBPCyPal4VZrwlhPWMQanh45qsh9VQdc8SEZx7kuLs8X7EQCHDXY5ORMHaNp Nwg2gNt/qIY1oBS4ar7stf39irvNzGPcAlC2nYaSkR+hJDvcIxBJyo9/T0i0mvyC Kd6SV3rnh1GMs33yTaQilc3A9ptMza+J0JTainQw8yElShMPFAaUIhuhju3Bs0BX A3V0X+Db+Fm9mPwp9oI85RWNGW1qd3Mv+CelkNL0xa2WeW4dcd0t9hEBf/OJvO09 B7kRpW5HfdQkf0RsOcrOAVHgkPNNQ1ssUox6rkl2dd4uZ2kwBc5bnJN4U9+G2qj6 o9WiBaO2iKyd6k6cq0bPhg7fs8Gyt/rttK3J/wGMLIl3J0hMVCSKoDgtDLPpKJ2a 5kq4el0zZabMkPYwNXiZQgwxpP5a13YRn8kUPr/F6ikNmfh4ZEojxsB5vvL3dCyC pAOb1hYS3SpU6BS/yWTQcLBzk1baJZF4JrZQhaBxRaUJOLSQWnvpIQadxF8G1WiQ 2BlQbbdtGANSMLKQYxdb =b5vw -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08/28/2012 02:55 AM, João Silva wrote:
I followed the script you gave me and everything went well, thank you. One more question, I wanted to apply a "patch" and change the file ".config" before you start compiling a kernel. What is the easiest way to do this?
* untar config.tar.bz2, update whichever configs you want, tar it back. * untar patches.fixes.tar.bz2, add there your patch, tar it back. * add the patch to series.conf. * osc build regards, - -- js suse labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iQIcBAEBAgAGBQJQP20OAAoJEL0lsQQGtHBJ4wMP/RAIxd7ahl+i8tNZS4DdPpXT PQNJBSesNG3YBlmF3CR4cIjeWDYCEt48XR6ycU6FanaZ8wn7wEK+mKruAY4OyPkz I/47DvyVc/Jg1iShMIHX3As2yDePAHYDZ5RI+0Dk7q180497tO27hxSZkMH/UHFX s2uc3Ym0fVtr9zzCEQB4ZCaQfey+YtpLi1vQOU9IibftOBxG8xs0Z4nHek+YwX9T KS0mVyc6v/t3Z4BI1IamMWy8RJ8Ptzo5DUKnVpJ23uPzSpZZHrqKwwFleK66vXFz KndfeInCrx3Z4AQjbsgezYE/18/Oioeud1QtlY9ibAZus8FgAJtIRBuVe3mOcLrQ ek3kNF7IG8lhVwYgNoMPlO62TeESrHAhQdj1YKfLMQWif75h9K4LMVe/Q9Uh7irV i+YYTVeiTGbqHsU0J2b5HR1l+Dc02frDsnQr5aH7dJQVF3+xEpPQegn0rQ/a3qfI dHo5VIPpOdr/OJ9kCOs+3M7MYKJS98xnYJZ//cMG2mdPWO9ocKu+uo5cn+R6U6Kh MRV8pv5TNRdBr1yiXBpnmBG3Zmn1+Frz6k+6u18rGmd9usTNHcngTaOB8zQlyHgY bc+070dzfivlzyxgXc13KpjG9l4goQslGXDpi09tC9on7UxcpEhA7BYfAsQ1uldK 3Jjc5pfbpR5hrVFBJlKW =xmWg -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
2012/8/30 Jiri Slaby <jslaby@suse.cz>:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 08/28/2012 02:55 AM, João Silva wrote:
I followed the script you gave me and everything went well, thank you. One more question, I wanted to apply a "patch" and change the file ".config" before you start compiling a kernel. What is the easiest way to do this?
* untar config.tar.bz2, update whichever configs you want, tar it back. * untar patches.fixes.tar.bz2, add there your patch, tar it back. * add the patch to series.conf. * osc build
regards, - -- js suse labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
iQIcBAEBAgAGBQJQP20OAAoJEL0lsQQGtHBJ4wMP/RAIxd7ahl+i8tNZS4DdPpXT PQNJBSesNG3YBlmF3CR4cIjeWDYCEt48XR6ycU6FanaZ8wn7wEK+mKruAY4OyPkz I/47DvyVc/Jg1iShMIHX3As2yDePAHYDZ5RI+0Dk7q180497tO27hxSZkMH/UHFX s2uc3Ym0fVtr9zzCEQB4ZCaQfey+YtpLi1vQOU9IibftOBxG8xs0Z4nHek+YwX9T KS0mVyc6v/t3Z4BI1IamMWy8RJ8Ptzo5DUKnVpJ23uPzSpZZHrqKwwFleK66vXFz KndfeInCrx3Z4AQjbsgezYE/18/Oioeud1QtlY9ibAZus8FgAJtIRBuVe3mOcLrQ ek3kNF7IG8lhVwYgNoMPlO62TeESrHAhQdj1YKfLMQWif75h9K4LMVe/Q9Uh7irV i+YYTVeiTGbqHsU0J2b5HR1l+Dc02frDsnQr5aH7dJQVF3+xEpPQegn0rQ/a3qfI dHo5VIPpOdr/OJ9kCOs+3M7MYKJS98xnYJZ//cMG2mdPWO9ocKu+uo5cn+R6U6Kh MRV8pv5TNRdBr1yiXBpnmBG3Zmn1+Frz6k+6u18rGmd9usTNHcngTaOB8zQlyHgY bc+070dzfivlzyxgXc13KpjG9l4goQslGXDpi09tC9on7UxcpEhA7BYfAsQ1uldK 3Jjc5pfbpR5hrVFBJlKW =xmWg -----END PGP SIGNATURE-----
Hello Jiri, Thanks for the information. Joao. -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2012-08-22 04:08, João Silva wrote:
After downloading the kernel source code and all the build dependencies via "YAST", run the following commands as "root":
cd /usr/src/linux-3.1.10-1.16/; make clean; make mrproper; cp /boot/config-3.1.10-1.16-default ./.config; make menuconfig;
cd /usr/src/linux make cloneconfig make menuconfig - change kernel name in there. I never use mrproper with a kernel supplied by openSUSE. Nasty. But I also have the resulting size problem, even gigabytes, I suppose because debug info is generated and included
And what is the correct way to compile the kernel in OpenSUSE?. So I can generate a size compatible with the repository.
/usr/src/linux/README.SUSE - -- Cheers / Saludos, Carlos E. R. (from 12.1 x86_64 "Asparagus" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlA05dMACgkQIvFNjefEBxo7pgCeLY2cX55+8Ol5fc2B2BPA/IZl CT4AoL4+pd1Xch0K/5DThRvZqH3s5voa =XkLu -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
2012/8/22 Carlos E. R. <robin.listas@telefonica.net>:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2012-08-22 04:08, João Silva wrote:
After downloading the kernel source code and all the build dependencies via "YAST", run the following commands as "root":
cd /usr/src/linux-3.1.10-1.16/; make clean; make mrproper; cp /boot/config-3.1.10-1.16-default ./.config; make menuconfig;
cd /usr/src/linux make cloneconfig make menuconfig - change kernel name in there.
I never use mrproper with a kernel supplied by openSUSE. Nasty.
Hello Carlos, I ran the same steps. And I found the same problem. It generated a file ".rpm" of 317 MB.
But I also have the resulting size problem, even gigabytes, I suppose because debug info is generated and included
And what is the correct way to compile the kernel in OpenSUSE?. So I can generate a size compatible with the repository.
/usr/src/linux/README.SUSE
I ran the same steps. And I found the same problem.
- -- Cheers / Saludos,
Carlos E. R. (from 12.1 x86_64 "Asparagus" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlA05dMACgkQIvFNjefEBxo7pgCeLY2cX55+8Ol5fc2B2BPA/IZl CT4AoL4+pd1Xch0K/5DThRvZqH3s5voa =XkLu -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 8/27/12 8:58 PM, João Silva wrote:
2012/8/22 Carlos E. R. <robin.listas@telefonica.net>: On 2012-08-22 04:08, João Silva wrote:
After downloading the kernel source code and all the build dependencies via "YAST", run the following commands as "root":
cd /usr/src/linux-3.1.10-1.16/; make clean; make mrproper; cp /boot/config-3.1.10-1.16-default ./.config; make menuconfig;
cd /usr/src/linux make cloneconfig make menuconfig - change kernel name in there.
I never use mrproper with a kernel supplied by openSUSE. Nasty.
Hello Carlos, I ran the same steps. And I found the same problem. It generated a file ".rpm" of 317 MB.
But I also have the resulting size problem, even gigabytes, I suppose because debug info is generated and included
And what is the correct way to compile the kernel in OpenSUSE?. So I can generate a size compatible with the repository.
/usr/src/linux/README.SUSE
I ran the same steps. And I found the same problem.
The openSUSE RPMs are post-processed to split the debuginfo out of them. I'm not sure how that works outside of the build service. The other way to do it is to disable CONFIG_DEBUG_INFO in the config file. - -Jeff - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.18 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJQPCXMAAoJEB57S2MheeWyyeIP/1WpWMn356UKR65vEr4G4NYj OEMTvF/X0wdP168C7Im8JJ8AHCJ44tfyEdhuLuZcdDbkWyyoIkblVL5zbh9utfqa +cSDkY32VBZkLmxYqaCW6yzt2jgzbMrhArkdz7CQFzG37vJP4+9LUn91X5KiA1Ic R4HPsUWwfB+r+NOho2DNDbj8KtUVYCh559yQ4uSHPjaJjfrHgB+QBEAqgoj01hg6 0zjf3FvQi5YqrEZR+I5EqwaB8nWXXZuHoZf6xqSy/U3V966irrywEoOyKVQchCz1 QzvAWIwRhhTl81+QKEiG18utXLVs1Hk21WvjmuUwRQTYuaszzeSN4Xpb6lNi3B5s Df3thutX6bZhAgyrD33wzts7A+wcKqNfWBd9yk1f4ZMKcJprMWzFf7D39Xihy4md IGwlQBBKJquneDE4LNV25y4J3akn98Nii+auCNzxBMVWjOP54v0DdbeiC5aXhg+9 OTncnRe/xfsas41K3s2m5E4f7Ey94l5fKMf4yb0XhiaFk3uyPuULQX/gg1SkTnKj ujdZoeGm9veuia6TNtycBCNspteecUhTPv2JGGcGq7W7m8/+xk8OQDBPggMMOEyR hvn0rIhsIV07AzIaOeAn5fCLPyTkgsmcxojB9n/GgZSJIqeQ/y2A5rSm6N9JG0qV gC7VprfgBLFgJ16gE0A3 =qB7T -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
2012/8/27 Jeff Mahoney <jeffm@suse.de>:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 8/27/12 8:58 PM, João Silva wrote:
2012/8/22 Carlos E. R. <robin.listas@telefonica.net>: On 2012-08-22 04:08, João Silva wrote:
After downloading the kernel source code and all the build dependencies via "YAST", run the following commands as "root":
cd /usr/src/linux-3.1.10-1.16/; make clean; make mrproper; cp /boot/config-3.1.10-1.16-default ./.config; make menuconfig;
cd /usr/src/linux make cloneconfig make menuconfig - change kernel name in there.
I never use mrproper with a kernel supplied by openSUSE. Nasty.
Hello Carlos, I ran the same steps. And I found the same problem. It generated a file ".rpm" of 317 MB.
But I also have the resulting size problem, even gigabytes, I suppose because debug info is generated and included
And what is the correct way to compile the kernel in OpenSUSE?. So I can generate a size compatible with the repository.
/usr/src/linux/README.SUSE
I ran the same steps. And I found the same problem.
The openSUSE RPMs are post-processed to split the debuginfo out of them. I'm not sure how that works outside of the build service. The other way to do it is to disable CONFIG_DEBUG_INFO in the config file.
- -Jeff
- -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.18 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBAgAGBQJQPCXMAAoJEB57S2MheeWyyeIP/1WpWMn356UKR65vEr4G4NYj OEMTvF/X0wdP168C7Im8JJ8AHCJ44tfyEdhuLuZcdDbkWyyoIkblVL5zbh9utfqa +cSDkY32VBZkLmxYqaCW6yzt2jgzbMrhArkdz7CQFzG37vJP4+9LUn91X5KiA1Ic R4HPsUWwfB+r+NOho2DNDbj8KtUVYCh559yQ4uSHPjaJjfrHgB+QBEAqgoj01hg6 0zjf3FvQi5YqrEZR+I5EqwaB8nWXXZuHoZf6xqSy/U3V966irrywEoOyKVQchCz1 QzvAWIwRhhTl81+QKEiG18utXLVs1Hk21WvjmuUwRQTYuaszzeSN4Xpb6lNi3B5s Df3thutX6bZhAgyrD33wzts7A+wcKqNfWBd9yk1f4ZMKcJprMWzFf7D39Xihy4md IGwlQBBKJquneDE4LNV25y4J3akn98Nii+auCNzxBMVWjOP54v0DdbeiC5aXhg+9 OTncnRe/xfsas41K3s2m5E4f7Ey94l5fKMf4yb0XhiaFk3uyPuULQX/gg1SkTnKj ujdZoeGm9veuia6TNtycBCNspteecUhTPv2JGGcGq7W7m8/+xk8OQDBPggMMOEyR hvn0rIhsIV07AzIaOeAn5fCLPyTkgsmcxojB9n/GgZSJIqeQ/y2A5rSm6N9JG0qV gC7VprfgBLFgJ16gE0A3 =qB7T -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
Hello Jeff, Thank you for the information. Deactivated the parameter "CONFIG_DEBUG_INFO" and everything worked. File size ".rpm" in the final generated is equal to that provided by the repository. Thank you, Joao. -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
participants (4)
-
Carlos E. R.
-
Jeff Mahoney
-
Jiri Slaby
-
João Silva