From: Leonid Lazarev <leonid.lazarev@orioninc.com>
Date: Mon, 13 Jul 2020 13:47:57 +0000 (+0300)
Subject: Remove the amqp package from azure-iot-sdk build
X-Git-Tag: 9.99.2~12
X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=81f690e33590e77ee1128426b479a33cbc7a7d50;p=AGL%2Fmeta-agl.git

Remove the amqp package from azure-iot-sdk build

At the moment the yocto receipt for azure-iot-sdk does not include
amqp symbols in libiothub_client.so library. It has been done due to build issue.

In result the amqp related symbols in libiothub_client.so are not resolved.
As the amqp is not used by AGL (cloudproxy service) at the moment, it is disabled at all.

Bug-AGL: SPEC-3496

Change-Id: I803a30c480f59e4f07f7dcb098b3d96bb6dcb6f1
Signed-off-by: Leonid Lazarev <leonid.lazarev@orioninc.com>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25005
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
---

diff --git a/meta-agl-bsp/meta-iot-cloud/recipes-azure/azure-iot-sdk-c/azure-iot-sdk-c_%.bbappend b/meta-agl-bsp/meta-iot-cloud/recipes-azure/azure-iot-sdk-c/azure-iot-sdk-c_%.bbappend
new file mode 100644
index 000000000..ecd5fe2f6
--- /dev/null
+++ b/meta-agl-bsp/meta-iot-cloud/recipes-azure/azure-iot-sdk-c/azure-iot-sdk-c_%.bbappend
@@ -0,0 +1,5 @@
+# Disable the amqp transport, due to linking error in meta-iot repository for amqp
+# symbols from amqp code are not included in the libiothub_client.so
+
+# NOTE: amqp is not used by AGL in IoT context at the moment
+PACKAGECONFIG_remove = "amqp"