All of lore.kernel.org
 help / color / mirror / Atom feed
* How to disable building of -dbg Debian package?
@ 2016-09-30 11:12 Aleksander Alekseev
  2016-09-30 11:21 ` Bjørn Mork
  2016-09-30 11:39 ` Andrey Skvortsov
  0 siblings, 2 replies; 4+ messages in thread
From: Aleksander Alekseev @ 2016-09-30 11:12 UTC (permalink / raw)
  To: kernelnewbies

Hello.

I'm building Linux kernel like this:

```
cp /boot/config-$(uname -r) ./.config
make olddefconfig
make -j4 deb-pkg LOCALVERSION=-custom
```

Resulting files are (for 4.7.0 kernel):

```
   966694 linux-firmware-image-4.7.0-custom_4.7.0-custom-1_amd64.deb
 10316460 linux-headers-4.7.0-custom_4.7.0-custom-1_amd64.deb
 45639036 linux-image-4.7.0-custom_4.7.0-custom-1_amd64.deb
471400164 linux-image-4.7.0-custom-dbg_4.7.0-custom-1_amd64.deb
   851664 linux-libc-dev_4.7.0-custom-1_amd64.deb
```

Compilation takes about an hour and most of this time is spent on
creating a -dbg package which I don't install anyway. Frankly I don't
think this package is very useful since Linux kernel can't be built
with -O0 option [1].

Is it possible to disable building of this package?

[1] https://lists.kernelnewbies.org/pipermail/kernelnewbies/2016-August/016687.html

-- 
Best regards,
Aleksander Alekseev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160930/3b53db11/attachment.bin 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* How to disable building of -dbg Debian package?
  2016-09-30 11:12 How to disable building of -dbg Debian package? Aleksander Alekseev
@ 2016-09-30 11:21 ` Bjørn Mork
  2016-09-30 11:39 ` Andrey Skvortsov
  1 sibling, 0 replies; 4+ messages in thread
From: Bjørn Mork @ 2016-09-30 11:21 UTC (permalink / raw)
  To: kernelnewbies

Aleksander Alekseev <afiskon@devzen.ru> writes:

> Hello.
>
> I'm building Linux kernel like this:
>
> ```
> cp /boot/config-$(uname -r) ./.config
> make olddefconfig
> make -j4 deb-pkg LOCALVERSION=-custom
> ```
>
> Resulting files are (for 4.7.0 kernel):
>
> ```
>    966694 linux-firmware-image-4.7.0-custom_4.7.0-custom-1_amd64.deb
>  10316460 linux-headers-4.7.0-custom_4.7.0-custom-1_amd64.deb
>  45639036 linux-image-4.7.0-custom_4.7.0-custom-1_amd64.deb
> 471400164 linux-image-4.7.0-custom-dbg_4.7.0-custom-1_amd64.deb
>    851664 linux-libc-dev_4.7.0-custom-1_amd64.deb
> ```

Maybe the relatively new "bindeb-pkg" target is closer to what you want?
See "make help" for all alternatives.



Bj?rn

^ permalink raw reply	[flat|nested] 4+ messages in thread

* How to disable building of -dbg Debian package?
  2016-09-30 11:12 How to disable building of -dbg Debian package? Aleksander Alekseev
  2016-09-30 11:21 ` Bjørn Mork
@ 2016-09-30 11:39 ` Andrey Skvortsov
  2016-09-30 13:25   ` Aleksander Alekseev
  1 sibling, 1 reply; 4+ messages in thread
From: Andrey Skvortsov @ 2016-09-30 11:39 UTC (permalink / raw)
  To: kernelnewbies

On 16-09-30 14:12, Aleksander Alekseev wrote:
> Hello.
> 
> I'm building Linux kernel like this:
> 
> ```
> cp /boot/config-$(uname -r) ./.config
> make olddefconfig
> make -j4 deb-pkg LOCALVERSION=-custom
> ```
> 
> Resulting files are (for 4.7.0 kernel):
> 
> ```
>    966694 linux-firmware-image-4.7.0-custom_4.7.0-custom-1_amd64.deb
>  10316460 linux-headers-4.7.0-custom_4.7.0-custom-1_amd64.deb
>  45639036 linux-image-4.7.0-custom_4.7.0-custom-1_amd64.deb
> 471400164 linux-image-4.7.0-custom-dbg_4.7.0-custom-1_amd64.deb
>    851664 linux-libc-dev_4.7.0-custom-1_amd64.deb
> ```
> 
> Compilation takes about an hour and most of this time is spent on
> creating a -dbg package which I don't install anyway. Frankly I don't
> think this package is very useful since Linux kernel can't be built
> with -O0 option [1].
> 
> Is it possible to disable building of this package?
>

Hi Aleksander,

disable CONFIG_DEBUG_INFO and -dbg package will not be built.
But this package can be very useful, if you are going to debug kernel
code. SystemTap, crash, makedumpfile need debug symbols.


-- 
Best regards,
Andrey Skvortsov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160930/14b3fade/attachment.bin 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* How to disable building of -dbg Debian package?
  2016-09-30 11:39 ` Andrey Skvortsov
@ 2016-09-30 13:25   ` Aleksander Alekseev
  0 siblings, 0 replies; 4+ messages in thread
From: Aleksander Alekseev @ 2016-09-30 13:25 UTC (permalink / raw)
  To: kernelnewbies

Thanks for your replies!

> disable CONFIG_DEBUG_INFO and -dbg package will not be built.
> But this package can be very useful, if you are going to debug kernel
> code. SystemTap, crash, makedumpfile need debug symbols.

Indeed, commenting CONFIG_DEBUG_INFO option disables building -dbg
package. Just what I needed!

> Maybe the relatively new "bindeb-pkg" target is closer to what you
> want?

bindeb-pkg doesn't disable building -dbg package, but it helps in
another way. When this target is used only .deb package are built,
all .tar.gz archives, .changes and stuff like this are disabled. It
also speeds up building a little, thanks!

-- 
Best regards,
Aleksander Alekseev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160930/ac5a737c/attachment-0001.bin 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-09-30 13:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-30 11:12 How to disable building of -dbg Debian package? Aleksander Alekseev
2016-09-30 11:21 ` Bjørn Mork
2016-09-30 11:39 ` Andrey Skvortsov
2016-09-30 13:25   ` Aleksander Alekseev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.