]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
strace: Disable bluetooth support by default
authorYoann Congal <yoann.congal@smile.fr>
Wed, 13 Dec 2023 08:56:58 +0000 (09:56 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 16 Dec 2023 13:05:39 +0000 (13:05 +0000)
The bluetooth support adds a bluez5 dependency (and,recursively, a lot
of other stuff). Disable it by default to avoid having to build all of
this when it is not needed.

This decrease the number of tasks run for a core-image-minimal build by
~1000 (-21%).

To re-enable bluetooth support in strace, add "bluez" to strace
PACKAGECONFIG. For example, in local.conf:
  PACKAGECONFIG:append:pn-strace = " bluez"

Fixes [YOCTO #15323]

[RP: Tweaked to put a message about the change in the recipe]
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Suggested-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/strace/strace_6.6.bb

index a3de7941cf81429d151561111ae62634c6e8dbc3..ed3033c8673325a2ba242f1a9bd8ef6e5524d2fe 100644 (file)
@@ -22,10 +22,8 @@ inherit autotools ptest
 # Not yet ported to rv32
 COMPATIBLE_HOST:riscv32 = "null"
 
-PACKAGECONFIG:class-target ??= "\
-    ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \
-"
-
+# bluez is not enabled by default due to build dependency creep in smaller builds
+# like core-image-minimal leading to significantly more tasks being executed
 PACKAGECONFIG[bluez] = "ac_cv_header_bluetooth_bluetooth_h=yes,ac_cv_header_bluetooth_bluetooth_h=no,bluez5"
 PACKAGECONFIG[libunwind] = "--with-libunwind,--without-libunwind,libunwind"