summaryrefslogtreecommitdiff
path: root/toolchain/Config.in
diff options
context:
space:
mode:
authorTony Ambardar <itugrok@yahoo.com>2020-11-24 14:15:09 -0800
committerStijn Tintel <stijn@linux-ipv6.be>2022-05-18 13:32:06 +0300
commit02850d7c9cd077c4e890550bf5867aafd7c2542a (patch)
treeaba498b174fcf80ecbf8e3db34ef16dfbfad888c /toolchain/Config.in
parent6300313deed3688c86cf5633ada439f09e8bcbfd (diff)
downloadopenwrt-02850d7c9cd077c4e890550bf5867aafd7c2542a.tar.gz
tools/dwarves: add host package
dwarves is a set of tools that use the debugging information inserted in ELF binaries by compilers such as GCC. Utilities in the dwarves suite include pahole, which can be used to find alignment holes in structs and classes, and also extracts other information such as CPU cacheline alignment, helping pack those structures to achieve more cache hits. These tools are also used to encode and read the BTF type information format used with the bpf syscall, making this a Linux build dependency when using kernel BTF information. Signed-off-by: Tony Ambardar <itugrok@yahoo.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> [bump to 1.23, add elfutils dep, drop host lib usage, drop cmake release target, use RM macro] Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'toolchain/Config.in')
-rw-r--r--toolchain/Config.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/toolchain/Config.in b/toolchain/Config.in
index 366f5c8b48..fb14006055 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -247,6 +247,14 @@ comment "Binary tools"
source "toolchain/binutils/Config.in"
+config DWARVES
+ bool
+ prompt "Build pahole" if TOOLCHAINOPTS
+ depends on !HOST_OS_MACOS
+ default n
+ help
+ Enable if you want to build pahole and the dwarves tools.
+
comment "Compiler"
depends on TOOLCHAINOPTS