summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/systemtap
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-06-16 01:31:07 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-19 13:18:56 +0100
commit0ef2e5081b9c7250d2755e038f911a99ebe43a65 (patch)
tree108a99949aa27eeb5d2ae7ab1025fa0e8dfc43cd /meta/recipes-kernel/systemtap
parent8502913bd3a653031943d8b1045153196ee30406 (diff)
downloadpoky-0ef2e5081b9c7250d2755e038f911a99ebe43a65.tar.gz
kernel: Add kernel specific STRIP variable
strip can be coming from binutils or from llvm in some cases llvm-strip can fail on kernel Subprocess output:aarch64-yoe-linux-llvm-strip: error: Link field value 28 in section .rela.dyn is not a symbol table This helps in selecting which strip is used when building kernel (From OE-Core rev: 03973c8c1c93ddb1c8e05b773bfcc45aed73a99f) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/systemtap')
-rw-r--r--meta/recipes-kernel/systemtap/systemtap-uprobes_git.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-kernel/systemtap/systemtap-uprobes_git.bb b/meta/recipes-kernel/systemtap/systemtap-uprobes_git.bb
index efe359ec32..3d35481bdc 100644
--- a/meta/recipes-kernel/systemtap/systemtap-uprobes_git.bb
+++ b/meta/recipes-kernel/systemtap/systemtap-uprobes_git.bb
@@ -22,11 +22,13 @@ do_compile() {
22 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CC LD CPP 22 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CC LD CPP
23 oe_runmake CC="${KERNEL_CC}" LD="${KERNEL_LD}" \ 23 oe_runmake CC="${KERNEL_CC}" LD="${KERNEL_LD}" \
24 AR="${KERNEL_AR}" OBJCOPY="${KERNEL_OBJCOPY}" \ 24 AR="${KERNEL_AR}" OBJCOPY="${KERNEL_OBJCOPY}" \
25 STRIP="${KERNEL_STRIP}" \
25 -C ${STAGING_KERNEL_DIR} scripts 26 -C ${STAGING_KERNEL_DIR} scripts
26 oe_runmake KDIR=${STAGING_KERNEL_DIR} \ 27 oe_runmake KDIR=${STAGING_KERNEL_DIR} \
27 M="${S}/runtime/uprobes/" \ 28 M="${S}/runtime/uprobes/" \
28 CC="${KERNEL_CC}" LD="${KERNEL_LD}" \ 29 CC="${KERNEL_CC}" LD="${KERNEL_LD}" \
29 AR="${KERNEL_AR}" OBJCOPY="${KERNEL_OBJCOPY}" \ 30 AR="${KERNEL_AR}" OBJCOPY="${KERNEL_OBJCOPY}" \
31 STRIP="${KERNEL_STRIP}" \
30 -C "${S}/runtime/uprobes/" 32 -C "${S}/runtime/uprobes/"
31 fi 33 fi
32} 34}