kernel: disable BTF for arm/mt7622 by default

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2023-03-15 13:07:14 +08:00
parent 19c154ecba
commit dcc8c8beaf
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -363,7 +363,7 @@ config KERNEL_DEBUG_INFO
config KERNEL_DEBUG_INFO_BTF
bool "Enable additional BTF type information"
default y if aarch64||arm||i386||i686||x86_64
default y if (aarch64 && !TARGET_mediatek_mt7622) || i386 || i686 || x86_64
depends on !HOST_OS_MACOS
depends on KERNEL_DEBUG_INFO && !KERNEL_DEBUG_INFO_REDUCED
select DWARVES
@ -376,7 +376,7 @@ config KERNEL_DEBUG_INFO_BTF
config KERNEL_DEBUG_INFO_REDUCED
bool "Reduce debugging information"
default y if !(aarch64||arm||i386||i686||x86_64)
default y if !(aarch64||i386||i686||x86_64) || TARGET_mediatek_mt7622
depends on KERNEL_DEBUG_INFO
help
If you say Y here gcc is instructed to generate less debugging