Skip to contentSkip to conversation

perf: Add packageconfig for libbfd support and use disabled as default

PATCH In review Khem Raj 2 participants 2 messages Aug 15, 2022

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 perf: Add packageconfig for libbfd support and use disabled as default

Disable it by default, libbfd changes with binutils major releases and sometimes it creates a dependency to fix it. See [1]

This will help building with binutils 2.39

[1] https://lore.kernel.org/lkml/[email protected]/T/

Cc Bruce Ashfield <[email protected]>
---
 meta/recipes-kernel/perf/perf.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-kernel/perf/perf.bb +1 -0
index 95b4362958b..9f7c300a40e 100644
@@ -20,6 +20,7 @@ PACKAGECONFIG[scripting] = ",NO_LIBPERL=1 NO_LIBPYTHON=1,perl python3"
 PACKAGECONFIG[tui] = ",NO_NEWT=1,libnewt slang"
 PACKAGECONFIG[libunwind] = ",NO_LIBUNWIND=1 NO_LIBDW_DWARF_UNWIND=1,libunwind"
 PACKAGECONFIG[libnuma] = ",NO_LIBNUMA=1"
+PACKAGECONFIG[bfd] = ",NO_LIBBFD=1"
 PACKAGECONFIG[systemtap] = ",NO_SDT=1,systemtap"
 PACKAGECONFIG[jvmti] = ",NO_JVMTI=1"
 # libaudit support would need scripting to be enabled
Signature · 1 line
2.37.2
#1 lore raw
Quoted 5 lines · Khem Raj

Disable it by default, libbfd changes with binutils major releases and sometimes it creates a dependency to fix it. See [1]

This will help building with binutils 2.39

Ack'd. The change is good with me.

I have linux-yocto changes for the new binutils, but this will help other kernels until they update.

Bruce

Quoted 24 lines

[1] https://lore.kernel.org/lkml/[email protected]/T/

Cc Bruce Ashfield <[email protected]>
---
 meta/recipes-kernel/perf/perf.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-kernel/perf/perf.bb +1 -1
index 95b4362958b..9f7c300a40e 100644
@@ -20,6 +20,7 @@ PACKAGECONFIG[scripting] = ",NO_LIBPERL=1 NO_LIBPYTHON=1,perl python3"
 PACKAGECONFIG[tui] = ",NO_NEWT=1,libnewt slang"
 PACKAGECONFIG[libunwind] = ",NO_LIBUNWIND=1 NO_LIBDW_DWARF_UNWIND=1,libunwind"
 PACKAGECONFIG[libnuma] = ",NO_LIBNUMA=1"
+PACKAGECONFIG[bfd] = ",NO_LIBBFD=1"
 PACKAGECONFIG[systemtap] = ",NO_SDT=1,systemtap"
 PACKAGECONFIG[jvmti] = ",NO_JVMTI=1"
 # libaudit support would need scripting to be enabled
--

2.37.2

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II