From b0c542f22b116589c251e38ce1b29ba3eab6ebaf Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Tue, 27 Jun 2023 16:01:37 +0800 Subject: [PATCH] kernel: disable BTF for sifiveu and 32bit x86 by default Signed-off-by: Tianling Shen (cherry picked from commit c47fe16af01cff16ab1c5f05e2ba1d136d3df2f1) --- config/Config-kernel.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/Config-kernel.in b/config/Config-kernel.in index 2d02a066ab..9042aa88e5 100644 --- a/config/Config-kernel.in +++ b/config/Config-kernel.in @@ -363,7 +363,7 @@ config KERNEL_DEBUG_INFO config KERNEL_DEBUG_INFO_BTF bool "Enable additional BTF type information" - default y if TARGET_armsr || TARGET_bcm27xx || TARGET_ipq807x || TARGET_mediatek_filogic || TARGET_mvebu_cortexa53 || TARGET_mvebu_cortexa72 || TARGET_rockchip || TARGET_sifiveu || TARGET_sunxi || TARGET_x86 + default y if TARGET_armsr || TARGET_bcm27xx || TARGET_ipq807x || TARGET_mediatek_filogic || TARGET_mvebu_cortexa53 || TARGET_mvebu_cortexa72 || TARGET_rockchip || TARGET_sunxi || TARGET_x86_64 depends on !HOST_OS_MACOS depends on KERNEL_DEBUG_INFO && !KERNEL_DEBUG_INFO_REDUCED select DWARVES @@ -387,7 +387,7 @@ config KERNEL_MODULE_ALLOW_BTF_MISMATCH config KERNEL_DEBUG_INFO_REDUCED bool "Reduce debugging information" - default y if !(TARGET_armsr || TARGET_bcm27xx || TARGET_ipq807x || TARGET_mediatek_filogic || TARGET_mvebu_cortexa53 || TARGET_mvebu_cortexa72 || TARGET_rockchip || TARGET_sifiveu || TARGET_sunxi || TARGET_x86) + default y if !(TARGET_armsr || TARGET_bcm27xx || TARGET_ipq807x || TARGET_mediatek_filogic || TARGET_mvebu_cortexa53 || TARGET_mvebu_cortexa72 || TARGET_rockchip || TARGET_sunxi || TARGET_x86_64) depends on KERNEL_DEBUG_INFO help If you say Y here gcc is instructed to generate less debugging