summaryrefslogtreecommitdiff
path: root/scripts/Makefile.debug
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2022-12-21 02:02:46 +0300
committerAndrew Morton <akpm@linux-foundation.org>2022-12-21 02:02:46 +0300
commita9763aa0bda186d8d86101e8ee90a37f606d9f64 (patch)
tree58f4fb795fed3f4b2c1cb6bbac9ed25b3134d390 /scripts/Makefile.debug
parentbcd5b5912c6ce4f7c9491407a38b5d0acd11459b (diff)
parent1644d755d0b06d0f1ee93e1c44336c29386546b4 (diff)
downloadlinux-a9763aa0bda186d8d86101e8ee90a37f606d9f64.tar.xz
Merge branch 'master' into mm-nonmm-stable
Diffstat (limited to 'scripts/Makefile.debug')
-rw-r--r--scripts/Makefile.debug6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/Makefile.debug b/scripts/Makefile.debug
index 332c486f705f..059ff38fe0cb 100644
--- a/scripts/Makefile.debug
+++ b/scripts/Makefile.debug
@@ -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)