diff options
author | Ming Liu <liu.ming50@gmail.com> | 2022-06-05 11:46:45 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-06-05 17:32:28 -0700 |
commit | b51045f9b7ba3d23edd1a2cf1009fb39105e3b86 (patch) | |
tree | 366cbdbb8630e8ed6052587cfcf21ea82d4ebd81 | |
parent | 749180d20e6ea615822a4a14e6861abb951e64e1 (diff) | |
download | meta-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.service | 11 | ||||
-rw-r--r-- | meta-multimedia/recipes-multimedia/bluealsa/bluealsa_git.bb | 71 |
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] | ||
2 | Description=Bluetooth Audio ALSA Backend | ||
3 | After=bluetooth.service | ||
4 | Requires=bluetooth.service | ||
5 | |||
6 | [Service] | ||
7 | Type=simple | ||
8 | ExecStart=/usr/bin/bluealsa | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=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" | |||
3 | SECTION = "libs" | 3 | SECTION = "libs" |
4 | 4 | ||
5 | LICENSE = "MIT" | 5 | LICENSE = "MIT" |
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=72d868d66bdd5bf51fe67734431de057" | 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8449a4f133a93f6254b496d4fb476e83" |
7 | 7 | ||
8 | DEPENDS += "alsa-lib bluez5 glib-2.0 sbc" | 8 | SRC_URI = "git://github.com/Arkq/bluez-alsa.git;protocol=https;branch=master" |
9 | 9 | ||
10 | SRCREV = "aac8742a9e7dd12a1fead9cbce7d2dc8b961999c" | 10 | SRCREV = "dd05a1baa261b94da9ba977b5e3392c8b4dc7a5e" |
11 | 11 | PV = "4.0.0+git${SRCPV}" | |
12 | SRC_URI = " \ | ||
13 | git://github.com/Arkq/bluez-alsa.git;protocol=https;branch=master \ | ||
14 | file://bluealsa.service \ | ||
15 | " | ||
16 | 12 | ||
17 | S = "${WORKDIR}/git" | 13 | S = "${WORKDIR}/git" |
18 | 14 | ||
19 | PACKAGECONFIG[aac] = "--enable-aac, --disable-aac," | 15 | DEPENDS += "alsa-lib bluez5 dbus glib-2.0 sbc" |
20 | PACKAGECONFIG[aptx] = "--enable-aptx,--disable-aptx," | ||
21 | PACKAGECONFIG[hcitop] = "--enable-hcitop, --disable-hcitop, libbsd ncurses" | ||
22 | PACKAGECONFIG[systemd] = "--enable-systemd, --disable-systemd, systemd" | ||
23 | 16 | ||
24 | PACKAGECONFIG += "hcitop ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" | 17 | PACKAGECONFIG ??= "aplay cli hcitop ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" |
18 | PACKAGECONFIG[a2dpconf] = "--enable-a2dpconf,--disable-a2dpconf" | ||
19 | PACKAGECONFIG[aac] = "--enable-aac,--disable-aac,fdk-aac" | ||
20 | PACKAGECONFIG[aplay] = "--enable-aplay,--disable-aplay" | ||
21 | PACKAGECONFIG[cli] = "--enable-cli,--disable-cli" | ||
22 | PACKAGECONFIG[coverage] = "--with-coverage,--without-coverage,lcov-native" | ||
23 | PACKAGECONFIG[debug] = "--enable-debug,--disable-debug" | ||
24 | PACKAGECONFIG[debug-time] = "--enable-debug-time,--disable-debug-time" | ||
25 | PACKAGECONFIG[faststream] = "--enable-faststream,--disable-faststream" | ||
26 | PACKAGECONFIG[hcitop] = "--enable-hcitop,--disable-hcitop,libbsd ncurses" | ||
27 | PACKAGECONFIG[libunwind] = "--with-libunwind,--without-libunwind,libunwind" | ||
28 | PACKAGECONFIG[mp3lame] = "--enable-mp3lame,--disable-mp3lame,lame" | ||
29 | PACKAGECONFIG[mpg123] = "--enable-mpg123,--disable-mpg123,mpg123,mpg123" | ||
30 | PACKAGECONFIG[ofono] = "--enable-ofono,--disable-ofono,ofono" | ||
31 | PACKAGECONFIG[payloadcheck] = "--enable-payloadcheck,--disable-payloadcheck" | ||
32 | PACKAGECONFIG[rfcomm] = "--enable-rfcomm,--disable-rfcomm" | ||
33 | PACKAGECONFIG[systemd] = "--enable-systemd --with-systemdsystemunitdir=${systemd_system_unitdir} \ | ||
34 | --with-systemdbluealsaargs='${SYSTEMD_BLUEALSA_ARGS}' --with-systemdbluealsaaplayargs='${SYSTEMD_BLUEALSA_APLAY_ARGS}',--disable-systemd,systemd" | ||
35 | PACKAGECONFIG[test] = "--enable-test,--disable-test,libcheck libsndfile1" | ||
36 | PACKAGECONFIG[upower] = "--enable-upower,--disable-upower,,upower" | ||
25 | 37 | ||
26 | inherit autotools pkgconfig systemd | 38 | inherit autotools pkgconfig systemd |
27 | 39 | ||
28 | FILES:${PN} += "\ | 40 | EXTRA_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 | ||
34 | FILES:${PN}-staticdev += "\ | 47 | PACKAGE_BEFORE_PN = "${PN}-aplay" |
35 | ${libdir}/alsa-lib/libasound_module_ctl_bluealsa.a\ | 48 | RRECOMMENDS:${PN} = "${PN}-aplay" |
36 | ${libdir}/alsa-lib/libasound_module_pcm_bluealsa.a\ | 49 | |
37 | " | 50 | FILES:${PN}-aplay = "${bindir}/bluealsa-aplay" |
51 | FILES:${PN} += "${libdir}/alsa-lib/*" | ||
52 | |||
53 | SYSTEMD_PACKAGES += "${PN}-aplay" | ||
54 | SYSTEMD_SERVICE:${PN} = "bluealsa.service" | ||
55 | SYSTEMD_SERVICE:${PN}-aplay = "bluealsa-aplay.service" | ||
56 | |||
57 | SYSTEMD_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: | ||
62 | SYSTEMD_BLUEALSA_ARGS ?= "-p a2dp-source -p a2dp-sink" | ||
38 | 63 | ||
39 | SYSTEMD_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: | ||
66 | SYSTEMD_BLUEALSA_APLAY_ARGS ?= "" | ||