Merge tag 'mtd/fixes-for-6.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git...
[platform/kernel/linux-rpi.git] / scripts / Makefile.debug
index 332c486..059ff38 100644 (file)
@@ -27,10 +27,14 @@ else
 DEBUG_RUSTFLAGS        += -Cdebuginfo=2
 endif
 
-ifdef CONFIG_DEBUG_INFO_COMPRESSED
+ifdef CONFIG_DEBUG_INFO_COMPRESSED_ZLIB
 DEBUG_CFLAGS   += -gz=zlib
 KBUILD_AFLAGS  += -gz=zlib
 KBUILD_LDFLAGS += --compress-debug-sections=zlib
+else ifdef CONFIG_DEBUG_INFO_COMPRESSED_ZSTD
+DEBUG_CFLAGS   += -gz=zstd
+KBUILD_AFLAGS  += -gz=zstd
+KBUILD_LDFLAGS += --compress-debug-sections=zstd
 endif
 
 KBUILD_CFLAGS  += $(DEBUG_CFLAGS)