aboutsummaryrefslogtreecommitdiffstats
path: root/tools/Makefile
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 /tools/Makefile
parent6300313deed3688c86cf5633ada439f09e8bcbfd (diff)
downloadupstream-02850d7c9cd077c4e890550bf5867aafd7c2542a.tar.gz
upstream-02850d7c9cd077c4e890550bf5867aafd7c2542a.tar.bz2
upstream-02850d7c9cd077c4e890550bf5867aafd7c2542a.zip
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 'tools/Makefile')
-rw-r--r--tools/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 416039cf38..507971c6d5 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -84,7 +84,9 @@ endif
ifeq ($(HOST_OS),Darwin)
tools-y += bash
else
+ $(curdir)/dwarves/compile += $(curdir)/elfutils/compile
$(curdir)/elfutils/compile := $(curdir)/zlib/compile
+ tools-$(CONFIG_DWARVES) += dwarves
tools-y += elfutils
endif