summaryrefslogtreecommitdiff
path: root/meta/recipes-connectivity
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2013-07-29 11:29:41 +0300
committerSaul Wold <sgw@linux.intel.com>2013-07-29 23:04:01 -0700
commitecdbaeeef11fd7732fffe992c7aa3cfa28eaabff (patch)
treeb3de52ee2ba38f48f6e2655a7833467c8e73baa6 /meta/recipes-connectivity
parent9b1ba604793015aad15c442f590464d0c224794c (diff)
downloadopenembedded-core-ecdbaeeef11fd7732fffe992c7aa3cfa28eaabff.tar.gz
openembedded-core-ecdbaeeef11fd7732fffe992c7aa3cfa28eaabff.tar.bz2
openembedded-core-ecdbaeeef11fd7732fffe992c7aa3cfa28eaabff.zip
bluez5: Only install .conf files if found
Bluez5 is migrating away from using separate .conf files for different profiles. So only install profile configuration files when they are found. This is needed so that the bluez5.inc file can be used with latest bluez5 from git. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5.inc12
1 files changed, 9 insertions, 3 deletions
diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc
index fc78900962..36a606195e 100644
--- a/meta/recipes-connectivity/bluez5/bluez5.inc
+++ b/meta/recipes-connectivity/bluez5/bluez5.inc
@@ -39,9 +39,15 @@ EXTRA_OECONF = "\
do_install_append() {
install -d ${D}${sysconfdir}/bluetooth/
- install -m 0644 ${S}/profiles/audio/audio.conf ${D}/${sysconfdir}/bluetooth/
- install -m 0644 ${S}/profiles/network/network.conf ${D}/${sysconfdir}/bluetooth/
- install -m 0644 ${S}/profiles/input/input.conf ${D}/${sysconfdir}/bluetooth/
+ if [ -f ${S}/profiles/audio/audio.conf ]; then
+ install -m 0644 ${S}/profiles/audio/audio.conf ${D}/${sysconfdir}/bluetooth/
+ fi
+ if [ -f ${S}/profiles/network/network.conf ]; then
+ install -m 0644 ${S}/profiles/network/network.conf ${D}/${sysconfdir}/bluetooth/
+ fi
+ if [ -f ${S}/profiles/input/input.conf ]; then
+ install -m 0644 ${S}/profiles/input/input.conf ${D}/${sysconfdir}/bluetooth/
+ fi
# at_console doesn't really work with the current state of OE, so punch some more holes so people can actually use BT
install -m 0644 ${WORKDIR}/bluetooth.conf ${D}/${sysconfdir}/dbus-1/system.d/
}