@@ -312,8 +312,21 @@ config DEBUG_INFO_REDUCED
312
312
DEBUG_INFO build and compile times are reduced too.
313
313
Only works with newer gcc versions.
314
314
315
- config DEBUG_INFO_COMPRESSED
316
- bool "Compressed debugging information"
315
+ choice
316
+ prompt "Compressed Debug information"
317
+ help
318
+ Compress the resulting debug info. Results in smaller debug info sections,
319
+ but requires that consumers are able to decompress the results.
320
+
321
+ If unsure, choose DEBUG_INFO_COMPRESSED_NONE.
322
+
323
+ config DEBUG_INFO_COMPRESSED_NONE
324
+ bool "Don't compress debug information"
325
+ help
326
+ Don't compress debug info sections.
327
+
328
+ config DEBUG_INFO_COMPRESSED_ZLIB
329
+ bool "Compress debugging information with zlib"
317
330
depends on $(cc-option,-gz=zlib)
318
331
depends on $(ld-option,--compress-debug-sections=zlib)
319
332
help
@@ -327,6 +340,18 @@ config DEBUG_INFO_COMPRESSED
327
340
preferable to setting $KDEB_COMPRESS to "none" which would be even
328
341
larger.
329
342
343
+ config DEBUG_INFO_COMPRESSED_ZSTD
344
+ bool "Compress debugging information with zstd"
345
+ depends on $(cc-option,-gz=zstd)
346
+ depends on $(ld-option,--compress-debug-sections=zstd)
347
+ help
348
+ Compress the debug information using zstd. This may provide better
349
+ compression than zlib, for about the same time costs, but requires newer
350
+ toolchain support. Requires GCC 13.0+ or Clang 16.0+, binutils 2.40+, and
351
+ zstd.
352
+
353
+ endchoice # "Compressed Debug information"
354
+
330
355
config DEBUG_INFO_SPLIT
331
356
bool "Produce split debuginfo in .dwo files"
332
357
depends on $(cc-option,-gsplit-dwarf)
0 commit comments