bluez5: fix: apply patch on bluez v5.22 only
[AGL/meta-agl-demo.git] / recipes-connectivity / bluez5 / bluez5_%.bbappend
index 19ff2f2..59787fc 100644 (file)
@@ -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} \
 "