* [meta-oe][PATCH] bpftool: improve reproducibility
@ 2021-03-29 20:10 Denys Zagorui -X (dzagorui - GLOBALLOGIC INC@Cisco)
0 siblings, 0 replies; only message in thread
From: Denys Zagorui -X (dzagorui - GLOBALLOGIC INC@Cisco) @ 2021-03-29 20:10 UTC (permalink / raw)
To: openembedded-devel
Pass -f(debug|macro)-prefix-map through CC because libbpf
build system overrides CFLAGS. Also remap STAGING_KERNEL_DIR
because it is also stored in resulting executable
Signed-off-by: Denys Zagorui <dzagorui@cisco.com>
---
meta-oe/recipes-kernel/bpftool/bpftool.bb | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/meta-oe/recipes-kernel/bpftool/bpftool.bb b/meta-oe/recipes-kernel/bpftool/bpftool.bb
index 15143a90b..f0696db59 100644
--- a/meta-oe/recipes-kernel/bpftool/bpftool.bb
+++ b/meta-oe/recipes-kernel/bpftool/bpftool.bb
@@ -9,7 +9,16 @@ inherit bash-completion kernelsrc kernel-arch
do_populate_lic[depends] += "virtual/kernel:do_patch"
-EXTRA_OEMAKE = "V=1 -C ${S}/tools/bpf/bpftool O=${B} CROSS=${TARGET_PREFIX} CC="${CC}" LD="${LD}" AR=${AR} ARCH=${ARCH}"
+EXTRA_OEMAKE = "\
+ V=1 \
+ -C ${S}/tools/bpf/bpftool \
+ O=${B} \
+ CROSS=${TARGET_PREFIX} \
+ CC="${CC} ${DEBUG_PREFIX_MAP} -fdebug-prefix-map=${STAGING_KERNEL_DIR}=${KERNEL_SRC_PATH}" \
+ LD="${LD}" \
+ AR=${AR} \
+ ARCH=${ARCH} \
+"
SECURITY_CFLAGS = ""
--
2.23.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-29 20:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-29 20:10 [meta-oe][PATCH] bpftool: improve reproducibility Denys Zagorui -X (dzagorui - GLOBALLOGIC INC@Cisco)
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.