summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMing Liu <liu.ming50@gmail.com>2022-06-05 11:46:45 +0200
committerKhem Raj <raj.khem@gmail.com>2022-06-05 17:32:28 -0700
commitb51045f9b7ba3d23edd1a2cf1009fb39105e3b86 (patch)
tree366cbdbb8630e8ed6052587cfcf21ea82d4ebd81
parent749180d20e6ea615822a4a14e6861abb951e64e1 (diff)
downloadmeta-openembedded-b51045f9b7ba3d23edd1a2cf1009fb39105e3b86.tar.gz
bluealsa: uprev to 4.0.0
Some recipe changes have been made as well as follows: - Dont install bluealsa.service from recipe, use the bluealsa.service from bluez-alsa source. In bluez-alsa 4.0.0, two more autoconf options have been added: --with-systemdbluealsaaplayargs and --with-systemdbluealsaargs that could be used to pass bluealsa and bluealsa-aplay arguments to systemd services. - Drop some useless FILES varialbes. - Add more PACKAGECONFIGs, explicitly disable the codecs that not supported by Yocto, this is to get a predictible build. - Split out bluealsa-aplay to its own package and disable bluealsa-aplay.service by default, since bluez-alas can be used in many different ways, there is no default usage for it, like sink (BT speaker). Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-multimedia/recipes-multimedia/bluealsa/bluealsa/bluealsa.service11
-rw-r--r--meta-multimedia/recipes-multimedia/bluealsa/bluealsa_git.bb71
2 files changed, 49 insertions, 33 deletions
diff --git a/meta-multimedia/recipes-multimedia/bluealsa/bluealsa/bluealsa.service b/meta-multimedia/recipes-multimedia/bluealsa/bluealsa/bluealsa.service
deleted file mode 100644
index 671815e031..0000000000
--- a/meta-multimedia/recipes-multimedia/bluealsa/bluealsa/bluealsa.service
+++ /dev/null
@@ -1,11 +0,0 @@
1[Unit]
2Description=Bluetooth Audio ALSA Backend
3After=bluetooth.service
4Requires=bluetooth.service
5
6[Service]
7Type=simple
8ExecStart=/usr/bin/bluealsa
9
10[Install]
11WantedBy=multi-user.target
diff --git a/meta-multimedia/recipes-multimedia/bluealsa/bluealsa_git.bb b/meta-multimedia/recipes-multimedia/bluealsa/bluealsa_git.bb
index 674017606e..ab0d8bca9f 100644
--- a/meta-multimedia/recipes-multimedia/bluealsa/bluealsa_git.bb
+++ b/meta-multimedia/recipes-multimedia/bluealsa/bluealsa_git.bb
@@ -3,37 +3,64 @@ HOMEPAGE = "https://github.com/Arkq/bluez-alsa"
3SECTION = "libs" 3SECTION = "libs"
4 4
5LICENSE = "MIT" 5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=72d868d66bdd5bf51fe67734431de057" 6LIC_FILES_CHKSUM = "file://LICENSE;md5=8449a4f133a93f6254b496d4fb476e83"
7 7
8DEPENDS += "alsa-lib bluez5 glib-2.0 sbc" 8SRC_URI = "git://github.com/Arkq/bluez-alsa.git;protocol=https;branch=master"
9 9
10SRCREV = "aac8742a9e7dd12a1fead9cbce7d2dc8b961999c" 10SRCREV = "dd05a1baa261b94da9ba977b5e3392c8b4dc7a5e"
11 11PV = "4.0.0+git${SRCPV}"
12SRC_URI = " \
13 git://github.com/Arkq/bluez-alsa.git;protocol=https;branch=master \
14 file://bluealsa.service \
15"
16 12
17S = "${WORKDIR}/git" 13S = "${WORKDIR}/git"
18 14
19PACKAGECONFIG[aac] = "--enable-aac, --disable-aac," 15DEPENDS += "alsa-lib bluez5 dbus glib-2.0 sbc"
20PACKAGECONFIG[aptx] = "--enable-aptx,--disable-aptx,"
21PACKAGECONFIG[hcitop] = "--enable-hcitop, --disable-hcitop, libbsd ncurses"
22PACKAGECONFIG[systemd] = "--enable-systemd, --disable-systemd, systemd"
23 16
24PACKAGECONFIG += "hcitop ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" 17PACKAGECONFIG ??= "aplay cli hcitop ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
18PACKAGECONFIG[a2dpconf] = "--enable-a2dpconf,--disable-a2dpconf"
19PACKAGECONFIG[aac] = "--enable-aac,--disable-aac,fdk-aac"
20PACKAGECONFIG[aplay] = "--enable-aplay,--disable-aplay"
21PACKAGECONFIG[cli] = "--enable-cli,--disable-cli"
22PACKAGECONFIG[coverage] = "--with-coverage,--without-coverage,lcov-native"
23PACKAGECONFIG[debug] = "--enable-debug,--disable-debug"
24PACKAGECONFIG[debug-time] = "--enable-debug-time,--disable-debug-time"
25PACKAGECONFIG[faststream] = "--enable-faststream,--disable-faststream"
26PACKAGECONFIG[hcitop] = "--enable-hcitop,--disable-hcitop,libbsd ncurses"
27PACKAGECONFIG[libunwind] = "--with-libunwind,--without-libunwind,libunwind"
28PACKAGECONFIG[mp3lame] = "--enable-mp3lame,--disable-mp3lame,lame"
29PACKAGECONFIG[mpg123] = "--enable-mpg123,--disable-mpg123,mpg123,mpg123"
30PACKAGECONFIG[ofono] = "--enable-ofono,--disable-ofono,ofono"
31PACKAGECONFIG[payloadcheck] = "--enable-payloadcheck,--disable-payloadcheck"
32PACKAGECONFIG[rfcomm] = "--enable-rfcomm,--disable-rfcomm"
33PACKAGECONFIG[systemd] = "--enable-systemd --with-systemdsystemunitdir=${systemd_system_unitdir} \
34 --with-systemdbluealsaargs='${SYSTEMD_BLUEALSA_ARGS}' --with-systemdbluealsaaplayargs='${SYSTEMD_BLUEALSA_APLAY_ARGS}',--disable-systemd,systemd"
35PACKAGECONFIG[test] = "--enable-test,--disable-test,libcheck libsndfile1"
36PACKAGECONFIG[upower] = "--enable-upower,--disable-upower,,upower"
25 37
26inherit autotools pkgconfig systemd 38inherit autotools pkgconfig systemd
27 39
28FILES:${PN} += "\ 40EXTRA_OECONF = " \
29 ${datadir}/alsa/alsa.conf.d/20-bluealsa.conf\ 41 --disable-aptx \
30 ${libdir}/alsa-lib/libasound_module_ctl_bluealsa.so\ 42 --disable-lc3plus \
31 ${libdir}/alsa-lib/libasound_module_pcm_bluealsa.so\ 43 --disable-ldac \
44 --disable-manpages \
32" 45"
33 46
34FILES:${PN}-staticdev += "\ 47PACKAGE_BEFORE_PN = "${PN}-aplay"
35 ${libdir}/alsa-lib/libasound_module_ctl_bluealsa.a\ 48RRECOMMENDS:${PN} = "${PN}-aplay"
36 ${libdir}/alsa-lib/libasound_module_pcm_bluealsa.a\ 49
37" 50FILES:${PN}-aplay = "${bindir}/bluealsa-aplay"
51FILES:${PN} += "${libdir}/alsa-lib/*"
52
53SYSTEMD_PACKAGES += "${PN}-aplay"
54SYSTEMD_SERVICE:${PN} = "bluealsa.service"
55SYSTEMD_SERVICE:${PN}-aplay = "bluealsa-aplay.service"
56
57SYSTEMD_AUTO_ENABLE:${PN}-aplay = "disable"
58
59# Choose bluez-alsa arguments to be used in bluealsa systemd service
60# Usually could choose profiles with it: a2dp-source a2dp-sink hfp-hf hfp-ag hsp-hs hsp-ag hfp-ofono
61# Enable bluez-alsa arguments by default:
62SYSTEMD_BLUEALSA_ARGS ?= "-p a2dp-source -p a2dp-sink"
38 63
39SYSTEMD_SERVICE:${PN} = "bluealsa.service bluealsa-aplay.service" 64# Choose bluealsa-aplay arguments to be used in bluealsa-aplay systemd service
65# Defaults to be empty:
66SYSTEMD_BLUEALSA_APLAY_ARGS ?= ""