diff options
author | David Marcaccini <david.marcaccini@multitech.com> | 2019-05-13 13:08:45 -0500 |
---|---|---|
committer | David Marcaccini <david.marcaccini@multitech.com> | 2019-05-13 13:08:45 -0500 |
commit | 9182ece6a2395496ee3aa06513eefdef10f4f1ec (patch) | |
tree | bee01eb317ba293ef528cb4c2e9bf7950d1a5f7a | |
parent | 0911077926483415a8b430b4a4e3202b336570a9 (diff) | |
download | mtsazure-9182ece6a2395496ee3aa06513eefdef10f4f1ec.tar.gz mtsazure-9182ece6a2395496ee3aa06513eefdef10f4f1ec.tar.bz2 mtsazure-9182ece6a2395496ee3aa06513eefdef10f4f1ec.zip |
-rw-r--r-- | mtsazure_git.bb | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/mtsazure_git.bb b/mtsazure_git.bb new file mode 100644 index 0000000..17a2033 --- /dev/null +++ b/mtsazure_git.bb @@ -0,0 +1,37 @@ +DESCRIPTION = "MTS Azure SDK libraries and communications app" +HOMEPAGE = "http://www.multitech.com/" +LICENSE = "Proprietary" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28" +DEPENDS = "curl util-linux" +BBCLASSEXTEND = "native" +PR = "r0" +SRCREV = "0911077926483415a8b430b4a4e3202b336570a9" +SRC_URI = " \ + git://git@gitlab.multitech.net/multitech-apps/mtsazure.git;protocol=ssh;branch=master \ +" +TARGET_CC_ARCH += "${LDFLAGS}" + +inherit cmake + +INITSCRIPT_NAME = "mtsazure" +INITSCRIPT_PARAMS = "defaults 75 70" + +S = "${WORKDIR}/git" + +do_compile() { + bash -c "if [[ -d "../git/azure-iot-sdk-c/.git" ]]; then cd ../git/azure-iot-sdk-c; git pull; else rm -rf ../git/azure-iot-sdk-c; git clone --recursive https://github.com/Azure/azure-iot-sdk-c.git ../git/azure-iot-sdk-c; fi" + sed -i 's/option(build_as_dynamic "build the IoT SDK libaries as dynamic" OFF)/option(build_as_dynamic "build the IoT SDK libaries as dynamic" ON)/' ../git/azure-iot-sdk-c/CMakeLists.txt + sed -i 's#SET(CMAKE_FIND_ROOT_PATH \(.*\))#SET(CMAKE_FIND_ROOT_PATH '$(readlink -f $(pwd)/../../../../../sysroots/mtcdt)')#' ../git/toolchain.cmake + ../git/azure-iot-sdk-c/build_all/linux/build.sh --toolchain-file ../git/toolchain.cmake; + oe_runmake -C ../git +} + +do_install() { + echo "do_install_in_progress D = ${D}" + oe_runmake -C ../git install DESTDIR=${D} +} + +do_rm_work() { + echo "skipping" +} + |