aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYannick Gicquel <yannick.gicquel@iot.bzh>2016-01-15 16:55:17 +0100
committerGerrit Code Review <gerrit@172.30.200.200>2016-01-18 19:03:17 +0000
commit49d1dbac52837a0c44034acc2d67a654681f0f8d (patch)
tree7e1f5e97fad308dc6a966bc5286204914ecb808e
parent985baadc9b0bcacc713877e4a41f3229ef3806e6 (diff)
bluez5: fix: apply patch on bluez v5.22 only
Replace 'rev' directive by 'apply' and a check on 'PV' variable. Tanikawa-san observed a regression while building 'qtsystems' with previous commit: (...) Bitbake fails at qtsystems with c++ compiling errors. Option 'rev' works only when building code from a revision control system. In bluez5_5.22.bb, source code is downloaded as tarball. "fd0783c8bc524bc9b26514aad1f85814" is not SRCREV, it is md5 of tarball. (...) Change-Id: Id595d4c01912567e640d3371bbd0709e53eec748 Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh>
-rw-r--r--recipes-connectivity/bluez5/bluez5_%.bbappend4
1 files changed, 3 insertions, 1 deletions
diff --git a/recipes-connectivity/bluez5/bluez5_%.bbappend b/recipes-connectivity/bluez5/bluez5_%.bbappend
index 19ff2f2b8..59787fcec 100644
--- a/recipes-connectivity/bluez5/bluez5_%.bbappend
+++ b/recipes-connectivity/bluez5/bluez5_%.bbappend
@@ -1,5 +1,7 @@
FILESEXTRAPATHS_append := ":${THISDIR}/${PN}"
+APPLY_v522 = "${@str('no' if '${PV}' != '5.22' else 'yes')}"
+
SRC_URI_append = "\
- file://0001_fix_compile_issue_when_using_in_c++.patch;rev="fd0783c8bc524bc9b26514aad1f85814" \
+ file://0001_fix_compile_issue_when_using_in_c++.patch;apply=${APPLY_v522} \
"