Update the master branch to support 1.4 IoT edge LTS (#97)

* Add thud support (#19)

* Initial thud support

* Tweak the recipes and remove invalid items

* Make layer thud only

* Update README for Thud

* Update source mirrors for thud

* Update build branch to thud

* Add master back

* Remove source rev

* Update to 1.0.8 (#25)

* Update to 1.0.8

* Set libiothsm no build in iotedge-cli

* Update to 1.0.9.4 for Thud (#40)

* Update to 1.0.9.4 for Thud

* Update third party notices md5sum

* Pin meta-rust commit version

* iotedge-cli RDEPENDS on libiothsm

* Add build dependency on libiothsm

* Update for dunfell (#43)

* Update for dunfell

* Use newer version of the rust compiler

* RDEPENDS on docker not virtual/docker

Remove unused recipes

* Disable libgit2 for cargo

Without this fix the build leads to an error : "invalid version 3 on git_proxy_options; class=Invalid (3)"

* Update Dunfell branch to LTS (1.1.3) (#65)

* Add 1.1.3 bitbake files.

* Update sums for iotedge project file.

* Fix daemon description.

* Rmove extraneous comments.

* TGZ package structure is a little different.
Fix includes in the bitbake file.

* Fix license path

* Fix install paths.

* More clearly mark generated section.

* Update README.md (#66)

Readme.md: Match the meta-rust layer revision from builds/checkin.yaml

* We probably don't need to set CARGO_SRC_DIR (#68)

* Update dunfell branch to 1.1.6 (#70)

* Update dunfell branch to 1.1.6

* Update Dunfell branch to IoT Edge version 1.1.8 (#73)

* Update Dunfell branch to IoT Edge version 1.1.8

* Use a newer container for Yocto builds.
Make some script changes due to difference in the containers.

* Update the MD5 hash for THIRDPARTYNOTICES.

* changed git fetch from nobranch/AUTOREV to main branch (#79)

* changed from nobranch/AUTOREV to main branch

This fixes a recent bug introduced over the weekend which results in a bitbake expansion error. 
Specifically the error is the following,
Fetcher failure: Unable to resolve 'master' in upstream git repository in git ls-remote output for github.com/Azure/hyperlocal-windows

* nobranch/AUTOREV to main branch in iotedge-daemon

This fixes a recent bug introduced over the weekend which results in a bitbake expansion error. 
Specifically the error is the following,
Fetcher failure: Unable to resolve 'master' in upstream git repository in git ls-remote output for github.com/Azure/hyperlocal-windows

* Update dunfell to 1.1.11 (#82)

* Update dunfell to 1.1.11

* Update recipes to 1.1.15 (#85)

Update the following recipe components to 1.1.15: 
- iotedge-cli
- iotedge-daemon
- libiothsm

* Use 1ES agent for Checkin gate (#89)

Previously the pipeline was run on the self-hosting pool, the ECSS team has mandate the self-hosting pools need to be retired in favor of the 1ES pools. This PR updates the checkin gate test agent to be running on 1ES VM instead of self-hosting VM.

* Yocto Dunfell Recipe for Edge 1.4 (#90)

* Draft Recipe for 1.4 IoT Edge

* Add Panic strategy to unwind

* Update receipes to 1.4.2

* TPM provsioning support and update dependencies

* Update recipes to fix bug and Update documentation

* Update README.md (#96)

* Update Iotedge recipes to 1.4.4

* refactor

* Update README.md

* 1.4.4 changes

* refactor

* Update iotedge_1.4.4.bb

Co-authored-by: Mike Yagley <myagley@gmail.com>
Co-authored-by: David Robson <darobs@microsoft.com>
Co-authored-by: František Šindelář <sindelar.fr@gmail.com>
Co-authored-by: donofan0 <83614927+donofan0@users.noreply.github.com>
Co-authored-by: yophilav <54859653+yophilav@users.noreply.github.com>
Co-authored-by: Micah Lewis <1009123+micahl@users.noreply.github.com>
This commit is contained in:
gaya 2022-12-05 18:31:01 -08:00 коммит произвёл GitHub
Родитель 33a7b9c33a
Коммит 8fb7bf0025
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
55 изменённых файлов: 3408 добавлений и 1529 удалений

35
LICENSE
Просмотреть файл

@ -1,21 +1,22 @@
MIT License
MIT License
Copyright (c) Microsoft Corporation. All rights reserved.
Copyright (c) Microsoft Corporation. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE

Просмотреть файл

@ -1,7 +1,7 @@
meta-iotedge
===========
This layer provides support for building [IoT Edge](https://github.com/azure/iotedge).
This layer provides support for building [IoT Edge](https://github.com/azure/iotedge) with [Yocto](https://www.yoctoproject.org/).
Please see the corresponding sections below for details.

Просмотреть файл

@ -11,18 +11,20 @@ pr:
jobs:
################################################################################
- job: sumo
- job: dunfell
################################################################################
displayName: Sumo
displayName: Dunfell
pool:
name: azureiotedge
name: "iotedge-1es-hosted-linux"
demands:
- yocto
timeoutInMinutes: 360
- ImageOverride -equals agent-aziotedge-ubuntu-20.04-msmoby
- DiskSizeGiB -equals 500
- WorkFolder -equals /mnt/storage/_work
timeoutInMinutes: 2400
steps:
- script: scripts/fetch.sh sumo
- script: scripts/fetch.sh dunfell
displayName: Fetch
env:
METARUST_REV: 'refs/remotes/origin/master'
METARUST_REV: '458ab61befa4fb5c192cd970ed0db2225f0c5030'
- script: scripts/build.sh
displayName: Build
displayName: Build

Просмотреть файл

@ -16,6 +16,8 @@ BBLAYERS ?= " \
##OEROOT##/meta-openembedded/meta-networking \
##OEROOT##/meta-openembedded/meta-python \
##OEROOT##/meta-virtualization \
##OEROOT##/meta-security/meta-tpm \
##OEROOT##/meta-clang \
"
BBLAYERS_NON_REMOVABLE ?= " \
##OEROOT##/meta \

Просмотреть файл

@ -10,5 +10,5 @@ BBFILE_PATTERN_meta-iotedge = "^${LAYERDIR}/"
BBFILE_PRIORITY_meta-iotedge = "10"
LAYERDEPENDS_meta-iotedge = "core rust-layer virtualization-layer"
LAYERSERIES_COMPAT_meta-iotedge = "rocko sumo"
LAYERSERIES_COMPAT_meta-iotedge = "dunfell"

Просмотреть файл

@ -220,10 +220,12 @@ BB_DISKMON_DIRS = "\
#file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n \
#file://.* file:///some/local/dir/sstate/PATH"
SSTATE_MIRRORS ?= "file://.* http://build-cache.asterius.io/master/sstate-cache/PATH;downloadfilename=PATH \n"
SOURCE_MIRROR_URL ?= "http://build-cache.asterius.io/downloads/"
INHERIT += "own-mirrors rm_work"
SSTATE_MIRRORS = "\
file://.* http://sstate.yoctoproject.org/3.1/PATH;downloadfilename=PATH \n \
file://.* http://sstate.yoctoproject.org/3.1.1/PATH;downloadfilename=PATH \n \
file://.* http://sstate.yoctoproject.org/3.1.2/PATH;downloadfilename=PATH \n \
file://.* http://sstate.yoctoproject.org/3.1.3/PATH;downloadfilename=PATH \n \
"
#
# Qemu configuration
@ -241,5 +243,6 @@ PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
# this doesn't mean anything to you.
CONF_VERSION = "1"
DISTRO_FEATURES_append += " virtualization"
DISTRO_FEATURES_append = " systemd virtualization"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"

Просмотреть файл

@ -0,0 +1 @@
export VERSION = "1.4.4"

Просмотреть файл

@ -0,0 +1,55 @@
DEPENDS += "openssl virtual/docker iotedge aziotd systemd"
RDEPENDS_${PN} += "docker iotedge aziotd aziot-keys systemd"
inherit systemd
SYSTEMD_AUTO_ENABLE_${PN} = "enable"
SYSTEMD_SERVICE_${PN} = "aziot-edged.service"
SRC_URI += "file://aziot-edged.service \
file://0001-Change-panic-strategy-to-unwind.patch \
"
do_install () {
# Binaries
install -d ${D}${bindir}
install -m 755 ${WORKDIR}/build/target/${TARGET_SYS}/release/aziot-edged ${D}${bindir}/aziot-edged
# Create symbolic links
install -d ${D}${libexecdir}/aziot
ln -s ${bindir}/aziot-edged ${D}${libexecdir}/aziot/aziot-edged
# Config file
install -d ${D}${sysconfdir}/aziot
install -d ${D}${sysconfdir}/aziot/edged
install -d -m 700 -o iotedge -g iotedge ${D}${sysconfdir}/aziot/edged/config.d
# Data dir
install -d ${D}${localstatedir}/lib
install -d ${D}${localstatedir}/log
install -d ${D}${localstatedir}/lib/aziot
install -d ${D}${localstatedir}/log/aziot
install -d -m 755 -o iotedge -g iotedge ${D}${localstatedir}/lib/aziot/edged
install -d -m 755 -o iotedge -g iotedge ${D}${localstatedir}/log/aziot/edged
install -d ${D}${systemd_unitdir}/system
install -m 644 ${WORKDIR}/aziot-edged.service ${D}${systemd_unitdir}/system
install -m 644 ${WORKDIR}/git/edgelet/contrib/systemd/debian/aziot-edged.workload.socket ${D}${systemd_unitdir}/system
install -m 644 ${WORKDIR}/git/edgelet/contrib/systemd/debian/aziot-edged.mgmt.socket ${D}${systemd_unitdir}/system
}
inherit useradd
USERADD_PACKAGES = "${PN}"
USERADD_PARAM_${PN} = "-r -g iotedge -c 'iotedge user' -G docker,systemd-journal,aziotcs,aziotks,aziottpm,aziotid -s /sbin/nologin -d ${localstatedir}/lib/aziot/edged iotedge; "
USERADD_PARAM_${PN} += "-r -g iotedge -c 'edgeAgent user' -s /bin/sh -u 13622 edgeagentuser; "
USERADD_PARAM_${PN} += "-r -g iotedge -c 'edgeHub user' -s /bin/sh -u 13623 edgehubuser; "
GROUPADD_PARAM_${PN} = "-r iotedge"
FILES_${PN} += " \
${systemd_unitdir}/system/* \
${localstatedir}/lib/ \
${localstatedir}/log/ \
${sysconfdir}/aziot/ \
"

Просмотреть файл

@ -0,0 +1,328 @@
# Auto-Generated by cargo-bitbake 0.3.16
#
inherit cargo
# If this is git based prefer versioned ones if they exist
# DEFAULT_PREFERENCE = "-1"
# how to get aziot-edged could be as easy as but default to a git checkout:
# SRC_URI += "crate://crates.io/aziot-edged/0.1.0"
SRC_URI += "git://github.com/Azure/iotedge;protocol=https;nobranch=1"
SRCREV = "7d994d326dffed89cf590b1f2dcf34d779809526"
S = "${WORKDIR}/git/edgelet"
CARGO_SRC_DIR = "aziot-edged"
# please note if you have entries that do not begin with crate://
# you must change them to how that package can be fetched
SRC_URI += " \
crate://crates.io/adler/1.0.2 \
crate://crates.io/aho-corasick/0.7.18 \
crate://crates.io/android_system_properties/0.1.4 \
crate://crates.io/ansi_term/0.12.1 \
crate://crates.io/anyhow/1.0.62 \
crate://crates.io/async-trait/0.1.57 \
crate://crates.io/atty/0.2.14 \
crate://crates.io/autocfg/1.1.0 \
crate://crates.io/base64/0.13.0 \
crate://crates.io/bitflags/1.3.2 \
crate://crates.io/block-buffer/0.10.2 \
crate://crates.io/bumpalo/3.11.0 \
crate://crates.io/byte-unit/4.0.14 \
crate://crates.io/byteorder/1.4.3 \
crate://crates.io/bytes/1.2.1 \
crate://crates.io/cc/1.0.73 \
crate://crates.io/cfg-if/1.0.0 \
crate://crates.io/chrono-humanize/0.2.2 \
crate://crates.io/chrono/0.4.22 \
crate://crates.io/clap/2.34.0 \
crate://crates.io/config/0.13.2 \
crate://crates.io/core-foundation-sys/0.8.3 \
crate://crates.io/cpufeatures/0.2.4 \
crate://crates.io/crc32fast/1.3.2 \
crate://crates.io/crossbeam-channel/0.5.6 \
crate://crates.io/crossbeam-deque/0.8.2 \
crate://crates.io/crossbeam-epoch/0.9.10 \
crate://crates.io/crossbeam-utils/0.8.11 \
crate://crates.io/crypto-common/0.1.6 \
crate://crates.io/darling/0.14.1 \
crate://crates.io/darling_core/0.14.1 \
crate://crates.io/darling_macro/0.14.1 \
crate://crates.io/digest/0.10.3 \
crate://crates.io/either/1.8.0 \
crate://crates.io/env_logger/0.9.0 \
crate://crates.io/erased-serde/0.3.22 \
crate://crates.io/fastrand/1.8.0 \
crate://crates.io/flate2/1.0.24 \
crate://crates.io/fnv/1.0.7 \
crate://crates.io/foreign-types-shared/0.1.1 \
crate://crates.io/foreign-types/0.3.2 \
crate://crates.io/form_urlencoded/1.0.1 \
crate://crates.io/futures-channel/0.3.23 \
crate://crates.io/futures-core/0.3.23 \
crate://crates.io/futures-executor/0.3.23 \
crate://crates.io/futures-io/0.3.23 \
crate://crates.io/futures-macro/0.3.23 \
crate://crates.io/futures-sink/0.3.23 \
crate://crates.io/futures-task/0.3.23 \
crate://crates.io/futures-util/0.3.23 \
crate://crates.io/futures/0.3.23 \
crate://crates.io/generic-array/0.14.6 \
crate://crates.io/h2/0.3.14 \
crate://crates.io/hashbrown/0.12.3 \
crate://crates.io/headers-core/0.2.0 \
crate://crates.io/headers/0.3.7 \
crate://crates.io/hermit-abi/0.1.19 \
crate://crates.io/hex/0.4.3 \
crate://crates.io/http-body/0.4.5 \
crate://crates.io/http/0.2.8 \
crate://crates.io/httparse/1.7.1 \
crate://crates.io/httpdate/1.0.2 \
crate://crates.io/humantime-serde/1.1.1 \
crate://crates.io/humantime/2.1.0 \
crate://crates.io/hyper-openssl/0.9.2 \
crate://crates.io/hyper-proxy/0.9.1 \
crate://crates.io/hyper/0.14.20 \
crate://crates.io/iana-time-zone/0.1.46 \
crate://crates.io/ident_case/1.0.1 \
crate://crates.io/idna/0.2.3 \
crate://crates.io/indexmap/1.9.1 \
crate://crates.io/instant/0.1.12 \
crate://crates.io/itoa/1.0.3 \
crate://crates.io/js-sys/0.3.59 \
crate://crates.io/lazy_static/1.4.0 \
crate://crates.io/libc/0.2.132 \
crate://crates.io/linked-hash-map/0.5.6 \
crate://crates.io/linked_hash_set/0.1.4 \
crate://crates.io/lock_api/0.4.7 \
crate://crates.io/log/0.4.17 \
crate://crates.io/matches/0.1.9 \
crate://crates.io/memchr/2.5.0 \
crate://crates.io/memoffset/0.6.5 \
crate://crates.io/mime/0.3.16 \
crate://crates.io/minimal-lexical/0.2.1 \
crate://crates.io/miniz_oxide/0.5.3 \
crate://crates.io/mio/0.8.4 \
crate://crates.io/nix/0.24.2 \
crate://crates.io/nom/7.1.1 \
crate://crates.io/ntapi/0.3.7 \
crate://crates.io/num-integer/0.1.45 \
crate://crates.io/num-traits/0.2.15 \
crate://crates.io/num_cpus/1.13.1 \
crate://crates.io/num_threads/0.1.6 \
crate://crates.io/once_cell/1.13.1 \
crate://crates.io/openssl-errors/0.1.0 \
crate://crates.io/openssl-macros/0.1.0 \
crate://crates.io/openssl-sys/0.9.75 \
crate://crates.io/openssl/0.10.41 \
crate://crates.io/parking_lot/0.12.1 \
crate://crates.io/parking_lot_core/0.9.3 \
crate://crates.io/pathdiff/0.2.1 \
crate://crates.io/percent-encoding/2.1.0 \
crate://crates.io/pin-project-lite/0.2.9 \
crate://crates.io/pin-utils/0.1.0 \
crate://crates.io/pkg-config/0.3.25 \
crate://crates.io/proc-macro-error-attr/1.0.4 \
crate://crates.io/proc-macro-error/1.0.4 \
crate://crates.io/proc-macro2/1.0.43 \
crate://crates.io/quote/1.0.21 \
crate://crates.io/rayon-core/1.9.3 \
crate://crates.io/rayon/1.5.3 \
crate://crates.io/redox_syscall/0.2.16 \
crate://crates.io/regex-syntax/0.6.27 \
crate://crates.io/regex/1.6.0 \
crate://crates.io/remove_dir_all/0.5.3 \
crate://crates.io/rustversion/1.0.9 \
crate://crates.io/ryu/1.0.11 \
crate://crates.io/scopeguard/1.1.0 \
crate://crates.io/serde/1.0.144 \
crate://crates.io/serde_derive/1.0.144 \
crate://crates.io/serde_json/1.0.85 \
crate://crates.io/serde_with/2.0.0 \
crate://crates.io/serde_with_macros/2.0.0 \
crate://crates.io/serial_test/0.8.0 \
crate://crates.io/serial_test_derive/0.8.0 \
crate://crates.io/sha-1/0.10.0 \
crate://crates.io/sha2/0.10.2 \
crate://crates.io/signal-hook-registry/1.4.0 \
crate://crates.io/slab/0.4.7 \
crate://crates.io/smallvec/1.9.0 \
crate://crates.io/socket2/0.4.4 \
crate://crates.io/strsim/0.10.0 \
crate://crates.io/strsim/0.8.0 \
crate://crates.io/syn/1.0.99 \
crate://crates.io/sysinfo/0.25.3 \
crate://crates.io/tabwriter/1.2.1 \
crate://crates.io/tempfile/3.3.0 \
crate://crates.io/termcolor/1.1.3 \
crate://crates.io/test-case-macros/2.2.1 \
crate://crates.io/test-case/2.2.1 \
crate://crates.io/textwrap/0.11.0 \
crate://crates.io/thiserror-impl/1.0.32 \
crate://crates.io/thiserror/1.0.32 \
crate://crates.io/time/0.1.44 \
crate://crates.io/time/0.3.13 \
crate://crates.io/tinyvec/1.6.0 \
crate://crates.io/tinyvec_macros/0.1.0 \
crate://crates.io/tokio-macros/1.8.0 \
crate://crates.io/tokio-openssl/0.6.3 \
crate://crates.io/tokio-util/0.7.3 \
crate://crates.io/tokio/1.20.1 \
crate://crates.io/toml/0.5.9 \
crate://crates.io/tower-layer/0.3.1 \
crate://crates.io/tower-service/0.3.2 \
crate://crates.io/tracing-attributes/0.1.22 \
crate://crates.io/tracing-core/0.1.29 \
crate://crates.io/tracing/0.1.36 \
crate://crates.io/try-lock/0.2.3 \
crate://crates.io/typenum/1.15.0 \
crate://crates.io/unicode-bidi/0.3.8 \
crate://crates.io/unicode-ident/1.0.3 \
crate://crates.io/unicode-normalization/0.1.21 \
crate://crates.io/unicode-width/0.1.9 \
crate://crates.io/url/2.2.2 \
crate://crates.io/utf8-width/0.1.6 \
crate://crates.io/vcpkg/0.2.15 \
crate://crates.io/vec_map/0.8.2 \
crate://crates.io/version_check/0.9.4 \
crate://crates.io/want/0.3.0 \
crate://crates.io/wasi/0.10.0+wasi-snapshot-preview1 \
crate://crates.io/wasi/0.11.0+wasi-snapshot-preview1 \
crate://crates.io/wasm-bindgen-backend/0.2.82 \
crate://crates.io/wasm-bindgen-macro-support/0.2.82 \
crate://crates.io/wasm-bindgen-macro/0.2.82 \
crate://crates.io/wasm-bindgen-shared/0.2.82 \
crate://crates.io/wasm-bindgen/0.2.82 \
crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi-util/0.1.5 \
crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi/0.3.9 \
crate://crates.io/windows-sys/0.36.1 \
crate://crates.io/windows_aarch64_msvc/0.36.1 \
crate://crates.io/windows_i686_gnu/0.36.1 \
crate://crates.io/windows_i686_msvc/0.36.1 \
crate://crates.io/windows_x86_64_gnu/0.36.1 \
crate://crates.io/windows_x86_64_msvc/0.36.1 \
crate://crates.io/yaml-rust/0.4.5 \
crate://crates.io/zip/0.6.2 \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-cert-client-async;destsuffix=aziot-cert-client-async \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-cert-common-http;destsuffix=aziot-cert-common-http \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-certd-config;destsuffix=aziot-certd-config \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-identity-client-async;destsuffix=aziot-identity-client-async \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-identity-common-http;destsuffix=aziot-identity-common-http \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-identity-common;destsuffix=aziot-identity-common \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-identityd-config;destsuffix=aziot-identityd-config \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-key-client-async;destsuffix=aziot-key-client-async \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-key-client;destsuffix=aziot-key-client \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-key-common-http;destsuffix=aziot-key-common-http \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-key-common;destsuffix=aziot-key-common \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-key-openssl-engine;destsuffix=aziot-key-openssl-engine \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-keyd-config;destsuffix=aziot-keyd-config \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-keys-common;destsuffix=aziot-keys-common \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-tpmd-config;destsuffix=aziot-tpmd-config \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziotctl-common;destsuffix=aziotctl-common \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=cert-renewal;destsuffix=cert-renewal \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=config-common;destsuffix=config-common \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=http-common;destsuffix=http-common \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=logger;destsuffix=logger \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=openssl-build;destsuffix=openssl-build \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=openssl-sys2;destsuffix=openssl-sys2 \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=openssl2;destsuffix=openssl2 \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=pkcs11-sys;destsuffix=pkcs11-sys \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=pkcs11;destsuffix=pkcs11 \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=test-common;destsuffix=test-common \
"
SRCREV_FORMAT .= "_aziot-cert-client-async"
SRCREV_aziot-cert-client-async = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-cert-client-async"
SRCREV_FORMAT .= "_aziot-cert-common-http"
SRCREV_aziot-cert-common-http = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-cert-common-http"
SRCREV_FORMAT .= "_aziot-certd-config"
SRCREV_aziot-certd-config = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-certd-config"
SRCREV_FORMAT .= "_aziot-identity-client-async"
SRCREV_aziot-identity-client-async = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-identity-client-async"
SRCREV_FORMAT .= "_aziot-identity-common"
SRCREV_aziot-identity-common = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-identity-common"
SRCREV_FORMAT .= "_aziot-identity-common-http"
SRCREV_aziot-identity-common-http = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-identity-common-http"
SRCREV_FORMAT .= "_aziot-identityd-config"
SRCREV_aziot-identityd-config = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-identityd-config"
SRCREV_FORMAT .= "_aziot-key-client"
SRCREV_aziot-key-client = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-key-client"
SRCREV_FORMAT .= "_aziot-key-client-async"
SRCREV_aziot-key-client-async = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-key-client-async"
SRCREV_FORMAT .= "_aziot-key-common"
SRCREV_aziot-key-common = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-key-common"
SRCREV_FORMAT .= "_aziot-key-common-http"
SRCREV_aziot-key-common-http = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-key-common-http"
SRCREV_FORMAT .= "_aziot-key-openssl-engine"
SRCREV_aziot-key-openssl-engine = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-key-openssl-engine"
SRCREV_FORMAT .= "_aziot-keyd-config"
SRCREV_aziot-keyd-config = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-keyd-config"
SRCREV_FORMAT .= "_aziot-keys-common"
SRCREV_aziot-keys-common = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-keys-common"
SRCREV_FORMAT .= "_aziot-tpmd-config"
SRCREV_aziot-tpmd-config = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-tpmd-config"
SRCREV_FORMAT .= "_aziotctl-common"
SRCREV_aziotctl-common = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziotctl-common"
SRCREV_FORMAT .= "_cert-renewal"
SRCREV_cert-renewal = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/cert-renewal"
SRCREV_FORMAT .= "_config-common"
SRCREV_config-common = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/config-common"
SRCREV_FORMAT .= "_http-common"
SRCREV_http-common = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/http-common"
SRCREV_FORMAT .= "_logger"
SRCREV_logger = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/logger"
SRCREV_FORMAT .= "_openssl-build"
SRCREV_openssl-build = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/openssl-build"
SRCREV_FORMAT .= "_openssl-sys2"
SRCREV_openssl-sys2 = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/openssl-sys2"
SRCREV_FORMAT .= "_openssl2"
SRCREV_openssl2 = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/openssl2"
SRCREV_FORMAT .= "_pkcs11"
SRCREV_pkcs11 = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/pkcs11"
SRCREV_FORMAT .= "_pkcs11-sys"
SRCREV_pkcs11-sys = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/pkcs11-sys"
SRCREV_FORMAT .= "_test-common"
SRCREV_test-common = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/test-common"
LIC_FILES_CHKSUM=" \
file://../LICENSE;md5=0f7e3b1308cb5c00b372a6e78835732d \
file://../THIRDPARTYNOTICES;md5=11604c6170b98c376be25d0ca6989d9b \
"
SUMMARY = "The aziot-edged is the main binary for IoT edge daemon."
HOMEPAGE = "https://aka.ms/iotedge"
LICENSE = "MIT"
# includes this file if it exists but does not fail
# this is useful for anything you may want to override from
# what cargo-bitbake generates.
include aziot-edged-${PV}.inc
include aziot-edged.inc

Просмотреть файл

@ -0,0 +1,14 @@
diff --git a/Cargo.toml b/Cargo.toml
index f936b9044..415655f76 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,7 +15,7 @@ members = [
]
[profile.dev]
-panic = 'abort'
+panic = 'unwind'
[profile.release]
-panic = 'abort'
+panic = 'unwind'

Просмотреть файл

@ -0,0 +1,21 @@
[Unit]
Description=Azure IoT Edge daemon
After=docker.service aziot-edged.workload.socket aziot-edged.mgmt.socket
Requires=aziot-edged.workload.socket aziot-edged.mgmt.socket
Wants=docker.service
Documentation=man:aziot-edged(8)
[Service]
ExecStart=/usr/bin/aziot-edged
KillMode=process
TimeoutStartSec=600
TimeoutStopSec=40
Restart=on-failure
RestartPreventExitStatus=153
RestartSec=5
User=iotedge
Group=iotedge
[Install]
WantedBy=multi-user.target
Also=aziot-edged.workload.socket aziot-edged.mgmt.socket

Просмотреть файл

@ -0,0 +1 @@
export VERSION = "1.4.1"

Просмотреть файл

@ -0,0 +1,4 @@
DEPENDS += "openssl virtual/docker "
RDEPENDS_${PN} += "docker "
SRC_URI +="file://0001-Change-panic-strategy-to-unwind.patch"

Просмотреть файл

@ -0,0 +1,253 @@
# Auto-Generated by cargo-bitbake 0.3.16
#
inherit cargo
# If this is git based prefer versioned ones if they exist
# DEFAULT_PREFERENCE = "-1"
# how to get aziot-keys could be as easy as but default to a git checkout:
# SRC_URI += "crate://crates.io/aziot-keys/0.1.0"
SRC_URI += "gitsm://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;branch=release/1.4"
SRCREV = "f349b64d3b555b917a417f1c7543d245612495e3"
S = "${WORKDIR}/git"
CARGO_SRC_DIR = "key/aziot-keys"
PV:append = ".AUTOINC+f349b64d3b"
# please note if you have entries that do not begin with crate://
# you must change them to how that package can be fetched
SRC_URI += " \
crate://crates.io/addr2line/0.17.0 \
crate://crates.io/adler/1.0.2 \
crate://crates.io/aho-corasick/0.7.18 \
crate://crates.io/ansi_term/0.12.1 \
crate://crates.io/anyhow/1.0.60 \
crate://crates.io/async-recursion/1.0.0 \
crate://crates.io/async-trait/0.1.57 \
crate://crates.io/atty/0.2.14 \
crate://crates.io/autocfg/1.1.0 \
crate://crates.io/backtrace/0.3.66 \
crate://crates.io/base64/0.13.0 \
crate://crates.io/bindgen/0.60.1 \
crate://crates.io/bitflags/1.3.2 \
crate://crates.io/block-buffer/0.10.2 \
crate://crates.io/block-buffer/0.9.0 \
crate://crates.io/bumpalo/3.10.0 \
crate://crates.io/byte-unit/4.0.14 \
crate://crates.io/bytes/1.2.1 \
crate://crates.io/cc/1.0.73 \
crate://crates.io/cexpr/0.6.0 \
crate://crates.io/cfg-if/0.1.10 \
crate://crates.io/cfg-if/1.0.0 \
crate://crates.io/chrono/0.4.20 \
crate://crates.io/clang-sys/1.3.3 \
crate://crates.io/clap/2.34.0 \
crate://crates.io/colored/2.0.0 \
crate://crates.io/core-foundation-sys/0.8.3 \
crate://crates.io/cpufeatures/0.2.2 \
crate://crates.io/crossbeam-channel/0.5.6 \
crate://crates.io/crossbeam-deque/0.8.2 \
crate://crates.io/crossbeam-epoch/0.9.10 \
crate://crates.io/crossbeam-utils/0.8.11 \
crate://crates.io/crypto-common/0.1.6 \
crate://crates.io/crypto-mac/0.8.0 \
crate://crates.io/darling/0.14.1 \
crate://crates.io/darling_core/0.14.1 \
crate://crates.io/darling_macro/0.14.1 \
crate://crates.io/digest/0.10.3 \
crate://crates.io/digest/0.9.0 \
crate://crates.io/doc-comment/0.3.3 \
crate://crates.io/either/1.7.0 \
crate://crates.io/env_logger/0.9.0 \
crate://crates.io/erased-serde/0.3.22 \
crate://crates.io/filetime/0.2.17 \
crate://crates.io/fnv/1.0.7 \
crate://crates.io/foreign-types-shared/0.1.1 \
crate://crates.io/foreign-types/0.3.2 \
crate://crates.io/form_urlencoded/1.0.1 \
crate://crates.io/fsevent-sys/2.0.1 \
crate://crates.io/fsevent/0.4.0 \
crate://crates.io/fuchsia-zircon-sys/0.3.3 \
crate://crates.io/fuchsia-zircon/0.3.3 \
crate://crates.io/futures-channel/0.3.21 \
crate://crates.io/futures-core/0.3.21 \
crate://crates.io/futures-executor/0.3.21 \
crate://crates.io/futures-io/0.3.21 \
crate://crates.io/futures-macro/0.3.21 \
crate://crates.io/futures-sink/0.3.21 \
crate://crates.io/futures-task/0.3.21 \
crate://crates.io/futures-util/0.3.21 \
crate://crates.io/futures/0.3.21 \
crate://crates.io/generic-array/0.14.6 \
crate://crates.io/getrandom/0.2.7 \
crate://crates.io/gimli/0.26.2 \
crate://crates.io/glob/0.3.0 \
crate://crates.io/h2/0.3.13 \
crate://crates.io/hashbrown/0.12.3 \
crate://crates.io/headers-core/0.2.0 \
crate://crates.io/headers/0.3.7 \
crate://crates.io/heck/0.3.3 \
crate://crates.io/hermit-abi/0.1.19 \
crate://crates.io/hex/0.4.3 \
crate://crates.io/hmac/0.8.1 \
crate://crates.io/http-body/0.4.5 \
crate://crates.io/http/0.2.8 \
crate://crates.io/httparse/1.7.1 \
crate://crates.io/httpdate/1.0.2 \
crate://crates.io/humantime/2.1.0 \
crate://crates.io/hyper-openssl/0.9.2 \
crate://crates.io/hyper-proxy/0.9.1 \
crate://crates.io/hyper/0.14.20 \
crate://crates.io/ident_case/1.0.1 \
crate://crates.io/idna/0.2.3 \
crate://crates.io/indexmap/1.9.1 \
crate://crates.io/inotify-sys/0.1.5 \
crate://crates.io/inotify/0.7.1 \
crate://crates.io/iovec/0.1.4 \
crate://crates.io/itertools/0.8.2 \
crate://crates.io/itoa/1.0.3 \
crate://crates.io/js-sys/0.3.59 \
crate://crates.io/kernel32-sys/0.2.2 \
crate://crates.io/lazy_static/1.4.0 \
crate://crates.io/lazycell/1.3.0 \
crate://crates.io/libc/0.2.127 \
crate://crates.io/libloading/0.7.3 \
crate://crates.io/linked-hash-map/0.5.6 \
crate://crates.io/linked_hash_set/0.1.4 \
crate://crates.io/lock_api/0.4.7 \
crate://crates.io/log/0.4.17 \
crate://crates.io/matches/0.1.9 \
crate://crates.io/memchr/2.5.0 \
crate://crates.io/memoffset/0.6.5 \
crate://crates.io/mime/0.3.16 \
crate://crates.io/minimal-lexical/0.2.1 \
crate://crates.io/miniz_oxide/0.5.3 \
crate://crates.io/mio-extras/2.0.6 \
crate://crates.io/mio/0.6.23 \
crate://crates.io/mio/0.8.4 \
crate://crates.io/miow/0.2.2 \
crate://crates.io/net2/0.2.37 \
crate://crates.io/nix/0.24.2 \
crate://crates.io/nom/7.1.1 \
crate://crates.io/notify/4.0.17 \
crate://crates.io/ntapi/0.3.7 \
crate://crates.io/num-integer/0.1.45 \
crate://crates.io/num-traits/0.2.15 \
crate://crates.io/num_cpus/1.13.1 \
crate://crates.io/num_threads/0.1.6 \
crate://crates.io/object/0.29.0 \
crate://crates.io/once_cell/1.13.0 \
crate://crates.io/opaque-debug/0.3.0 \
crate://crates.io/openssl-errors/0.1.0 \
crate://crates.io/openssl-macros/0.1.0 \
crate://crates.io/openssl-sys/0.9.75 \
crate://crates.io/openssl/0.10.41 \
crate://crates.io/parking_lot/0.12.1 \
crate://crates.io/parking_lot_core/0.9.3 \
crate://crates.io/paste/1.0.8 \
crate://crates.io/peeking_take_while/0.1.2 \
crate://crates.io/percent-encoding/2.1.0 \
crate://crates.io/pin-project-lite/0.2.9 \
crate://crates.io/pin-utils/0.1.0 \
crate://crates.io/pkg-config/0.3.25 \
crate://crates.io/proc-macro-error-attr/1.0.4 \
crate://crates.io/proc-macro-error/1.0.4 \
crate://crates.io/proc-macro2/1.0.43 \
crate://crates.io/quote/1.0.21 \
crate://crates.io/rayon-core/1.9.3 \
crate://crates.io/rayon/1.5.3 \
crate://crates.io/redox_syscall/0.2.16 \
crate://crates.io/regex-syntax/0.6.27 \
crate://crates.io/regex/1.6.0 \
crate://crates.io/rustc-demangle/0.1.21 \
crate://crates.io/rustc-hash/1.1.0 \
crate://crates.io/rustversion/1.0.9 \
crate://crates.io/ryu/1.0.11 \
crate://crates.io/same-file/1.0.6 \
crate://crates.io/scopeguard/1.1.0 \
crate://crates.io/serde/1.0.142 \
crate://crates.io/serde_derive/1.0.142 \
crate://crates.io/serde_json/1.0.83 \
crate://crates.io/serde_with/2.0.0 \
crate://crates.io/serde_with_macros/2.0.0 \
crate://crates.io/serial_test/0.8.0 \
crate://crates.io/serial_test_derive/0.8.0 \
crate://crates.io/sha-1/0.10.0 \
crate://crates.io/sha2/0.9.9 \
crate://crates.io/shlex/1.1.0 \
crate://crates.io/slab/0.4.7 \
crate://crates.io/smallvec/1.9.0 \
crate://crates.io/socket2/0.4.4 \
crate://crates.io/strsim/0.10.0 \
crate://crates.io/strsim/0.8.0 \
crate://crates.io/structopt-derive/0.4.18 \
crate://crates.io/structopt/0.3.26 \
crate://crates.io/subtle/2.4.1 \
crate://crates.io/syn/1.0.99 \
crate://crates.io/sysinfo/0.15.9 \
crate://crates.io/termcolor/1.1.3 \
crate://crates.io/textwrap/0.11.0 \
crate://crates.io/time/0.1.44 \
crate://crates.io/time/0.3.13 \
crate://crates.io/tinyvec/1.6.0 \
crate://crates.io/tinyvec_macros/0.1.0 \
crate://crates.io/tokio-macros/1.8.0 \
crate://crates.io/tokio-openssl/0.6.3 \
crate://crates.io/tokio-util/0.7.3 \
crate://crates.io/tokio/1.20.1 \
crate://crates.io/toml/0.5.9 \
crate://crates.io/tower-layer/0.3.1 \
crate://crates.io/tower-service/0.3.2 \
crate://crates.io/tracing-attributes/0.1.22 \
crate://crates.io/tracing-core/0.1.29 \
crate://crates.io/tracing/0.1.36 \
crate://crates.io/try-lock/0.2.3 \
crate://crates.io/typenum/1.15.0 \
crate://crates.io/unicode-bidi/0.3.8 \
crate://crates.io/unicode-ident/1.0.3 \
crate://crates.io/unicode-normalization/0.1.21 \
crate://crates.io/unicode-segmentation/1.9.0 \
crate://crates.io/unicode-width/0.1.9 \
crate://crates.io/url/2.2.2 \
crate://crates.io/utf8-width/0.1.6 \
crate://crates.io/uuid/1.1.2 \
crate://crates.io/vcpkg/0.2.15 \
crate://crates.io/vec_map/0.8.2 \
crate://crates.io/version_check/0.9.4 \
crate://crates.io/walkdir/2.3.2 \
crate://crates.io/want/0.3.0 \
crate://crates.io/wasi/0.10.0+wasi-snapshot-preview1 \
crate://crates.io/wasi/0.11.0+wasi-snapshot-preview1 \
crate://crates.io/wasm-bindgen-backend/0.2.82 \
crate://crates.io/wasm-bindgen-macro-support/0.2.82 \
crate://crates.io/wasm-bindgen-macro/0.2.82 \
crate://crates.io/wasm-bindgen-shared/0.2.82 \
crate://crates.io/wasm-bindgen/0.2.82 \
crate://crates.io/wildmatch/2.1.1 \
crate://crates.io/winapi-build/0.1.1 \
crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi-util/0.1.5 \
crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi/0.2.8 \
crate://crates.io/winapi/0.3.9 \
crate://crates.io/windows-sys/0.36.1 \
crate://crates.io/windows_aarch64_msvc/0.36.1 \
crate://crates.io/windows_i686_gnu/0.36.1 \
crate://crates.io/windows_i686_msvc/0.36.1 \
crate://crates.io/windows_x86_64_gnu/0.36.1 \
crate://crates.io/windows_x86_64_msvc/0.36.1 \
crate://crates.io/ws2_32-sys/0.2.1 \
"
LIC_FILES_CHKSUM=" \
file://LICENSE;md5=4f9c2c296f77b3096b6c11a16fa7c66e \
"
SUMMARY = "aziot-keys"
HOMEPAGE = "https://github.com/azure/iot-identity-service"
LICENSE = "MIT"
# includes this file if it exists but does not fail
# this is useful for anything you may want to override from
# what cargo-bitbake generates.
include aziot-keys-${PV}.inc
include aziot-keys.inc

Просмотреть файл

@ -0,0 +1,26 @@
From ad25eb134a46d6003cec624cc05e62a3a5b21a85 Mon Sep 17 00:00:00 2001
From: gaya <33068020+ggjjj@users.noreply.github.com>
Date: Wed, 26 Oct 2022 03:33:48 +0000
Subject: [PATCH] Change panic strategy to unwind
---
Cargo.toml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
index c916bec..7eaaa49 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -54,7 +54,7 @@ members = [
# Don't let panics from callbacks cross FFI boundary
[profile.dev]
-panic = "abort"
+panic = "unwind"
[profile.release]
-panic = "abort"
+panic = "unwind"
--
2.37.0

Просмотреть файл

@ -0,0 +1 @@
export VERSION = "1.4.1"

Просмотреть файл

@ -0,0 +1,12 @@
DEPENDS += "openssl virtual/docker"
RDEPENDS_${PN} += "docker"
export OPENSSL_DIR = "${STAGING_EXECPREFIXDIR}"
SRC_URI +="file://0001-Change-panic-strategy-to-unwind.patch"
do_install () {
# Binaries
install -d "${D}${bindir}"
install -m 755 "${WORKDIR}/build/target/${TARGET_SYS}/release/aziotctl" ${D}${bindir}/aziotctl
}

Просмотреть файл

@ -0,0 +1,253 @@
# Auto-Generated by cargo-bitbake 0.3.16
#
inherit cargo
# If this is git based prefer versioned ones if they exist
# DEFAULT_PREFERENCE = "-1"
# how to get aziotctl could be as easy as but default to a git checkout:
# SRC_URI += "crate://crates.io/aziotctl/1.4.1"
SRC_URI += "gitsm://github.com/Azure/iot-identity-service;protocol=https;nobranch=1"
SRCREV = "f349b64d3b555b917a417f1c7543d245612495e3"
S = "${WORKDIR}/git"
CARGO_SRC_DIR = "aziotctl"
PV:append = ".AUTOINC+f349b64d3b"
# please note if you have entries that do not begin with crate://
# you must change them to how that package can be fetched
SRC_URI += " \
crate://crates.io/addr2line/0.17.0 \
crate://crates.io/adler/1.0.2 \
crate://crates.io/aho-corasick/0.7.18 \
crate://crates.io/ansi_term/0.12.1 \
crate://crates.io/anyhow/1.0.60 \
crate://crates.io/async-recursion/1.0.0 \
crate://crates.io/async-trait/0.1.57 \
crate://crates.io/atty/0.2.14 \
crate://crates.io/autocfg/1.1.0 \
crate://crates.io/backtrace/0.3.66 \
crate://crates.io/base64/0.13.0 \
crate://crates.io/bindgen/0.60.1 \
crate://crates.io/bitflags/1.3.2 \
crate://crates.io/block-buffer/0.10.2 \
crate://crates.io/block-buffer/0.9.0 \
crate://crates.io/bumpalo/3.10.0 \
crate://crates.io/byte-unit/4.0.14 \
crate://crates.io/bytes/1.2.1 \
crate://crates.io/cc/1.0.73 \
crate://crates.io/cexpr/0.6.0 \
crate://crates.io/cfg-if/0.1.10 \
crate://crates.io/cfg-if/1.0.0 \
crate://crates.io/chrono/0.4.20 \
crate://crates.io/clang-sys/1.3.3 \
crate://crates.io/clap/2.34.0 \
crate://crates.io/colored/2.0.0 \
crate://crates.io/core-foundation-sys/0.8.3 \
crate://crates.io/cpufeatures/0.2.2 \
crate://crates.io/crossbeam-channel/0.5.6 \
crate://crates.io/crossbeam-deque/0.8.2 \
crate://crates.io/crossbeam-epoch/0.9.10 \
crate://crates.io/crossbeam-utils/0.8.11 \
crate://crates.io/crypto-common/0.1.6 \
crate://crates.io/crypto-mac/0.8.0 \
crate://crates.io/darling/0.14.1 \
crate://crates.io/darling_core/0.14.1 \
crate://crates.io/darling_macro/0.14.1 \
crate://crates.io/digest/0.10.3 \
crate://crates.io/digest/0.9.0 \
crate://crates.io/doc-comment/0.3.3 \
crate://crates.io/either/1.7.0 \
crate://crates.io/env_logger/0.9.0 \
crate://crates.io/erased-serde/0.3.22 \
crate://crates.io/filetime/0.2.17 \
crate://crates.io/fnv/1.0.7 \
crate://crates.io/foreign-types-shared/0.1.1 \
crate://crates.io/foreign-types/0.3.2 \
crate://crates.io/form_urlencoded/1.0.1 \
crate://crates.io/fsevent-sys/2.0.1 \
crate://crates.io/fsevent/0.4.0 \
crate://crates.io/fuchsia-zircon-sys/0.3.3 \
crate://crates.io/fuchsia-zircon/0.3.3 \
crate://crates.io/futures-channel/0.3.21 \
crate://crates.io/futures-core/0.3.21 \
crate://crates.io/futures-executor/0.3.21 \
crate://crates.io/futures-io/0.3.21 \
crate://crates.io/futures-macro/0.3.21 \
crate://crates.io/futures-sink/0.3.21 \
crate://crates.io/futures-task/0.3.21 \
crate://crates.io/futures-util/0.3.21 \
crate://crates.io/futures/0.3.21 \
crate://crates.io/generic-array/0.14.6 \
crate://crates.io/getrandom/0.2.7 \
crate://crates.io/gimli/0.26.2 \
crate://crates.io/glob/0.3.0 \
crate://crates.io/h2/0.3.13 \
crate://crates.io/hashbrown/0.12.3 \
crate://crates.io/headers-core/0.2.0 \
crate://crates.io/headers/0.3.7 \
crate://crates.io/heck/0.3.3 \
crate://crates.io/hermit-abi/0.1.19 \
crate://crates.io/hex/0.4.3 \
crate://crates.io/hmac/0.8.1 \
crate://crates.io/http-body/0.4.5 \
crate://crates.io/http/0.2.8 \
crate://crates.io/httparse/1.7.1 \
crate://crates.io/httpdate/1.0.2 \
crate://crates.io/humantime/2.1.0 \
crate://crates.io/hyper-openssl/0.9.2 \
crate://crates.io/hyper-proxy/0.9.1 \
crate://crates.io/hyper/0.14.20 \
crate://crates.io/ident_case/1.0.1 \
crate://crates.io/idna/0.2.3 \
crate://crates.io/indexmap/1.9.1 \
crate://crates.io/inotify-sys/0.1.5 \
crate://crates.io/inotify/0.7.1 \
crate://crates.io/iovec/0.1.4 \
crate://crates.io/itertools/0.8.2 \
crate://crates.io/itoa/1.0.3 \
crate://crates.io/js-sys/0.3.59 \
crate://crates.io/kernel32-sys/0.2.2 \
crate://crates.io/lazy_static/1.4.0 \
crate://crates.io/lazycell/1.3.0 \
crate://crates.io/libc/0.2.127 \
crate://crates.io/libloading/0.7.3 \
crate://crates.io/linked-hash-map/0.5.6 \
crate://crates.io/linked_hash_set/0.1.4 \
crate://crates.io/lock_api/0.4.7 \
crate://crates.io/log/0.4.17 \
crate://crates.io/matches/0.1.9 \
crate://crates.io/memchr/2.5.0 \
crate://crates.io/memoffset/0.6.5 \
crate://crates.io/mime/0.3.16 \
crate://crates.io/minimal-lexical/0.2.1 \
crate://crates.io/miniz_oxide/0.5.3 \
crate://crates.io/mio-extras/2.0.6 \
crate://crates.io/mio/0.6.23 \
crate://crates.io/mio/0.8.4 \
crate://crates.io/miow/0.2.2 \
crate://crates.io/net2/0.2.37 \
crate://crates.io/nix/0.24.2 \
crate://crates.io/nom/7.1.1 \
crate://crates.io/notify/4.0.17 \
crate://crates.io/ntapi/0.3.7 \
crate://crates.io/num-integer/0.1.45 \
crate://crates.io/num-traits/0.2.15 \
crate://crates.io/num_cpus/1.13.1 \
crate://crates.io/num_threads/0.1.6 \
crate://crates.io/object/0.29.0 \
crate://crates.io/once_cell/1.13.0 \
crate://crates.io/opaque-debug/0.3.0 \
crate://crates.io/openssl-errors/0.1.0 \
crate://crates.io/openssl-macros/0.1.0 \
crate://crates.io/openssl-sys/0.9.75 \
crate://crates.io/openssl/0.10.41 \
crate://crates.io/parking_lot/0.12.1 \
crate://crates.io/parking_lot_core/0.9.3 \
crate://crates.io/paste/1.0.8 \
crate://crates.io/peeking_take_while/0.1.2 \
crate://crates.io/percent-encoding/2.1.0 \
crate://crates.io/pin-project-lite/0.2.9 \
crate://crates.io/pin-utils/0.1.0 \
crate://crates.io/pkg-config/0.3.25 \
crate://crates.io/proc-macro-error-attr/1.0.4 \
crate://crates.io/proc-macro-error/1.0.4 \
crate://crates.io/proc-macro2/1.0.43 \
crate://crates.io/quote/1.0.21 \
crate://crates.io/rayon-core/1.9.3 \
crate://crates.io/rayon/1.5.3 \
crate://crates.io/redox_syscall/0.2.16 \
crate://crates.io/regex-syntax/0.6.27 \
crate://crates.io/regex/1.6.0 \
crate://crates.io/rustc-demangle/0.1.21 \
crate://crates.io/rustc-hash/1.1.0 \
crate://crates.io/rustversion/1.0.9 \
crate://crates.io/ryu/1.0.11 \
crate://crates.io/same-file/1.0.6 \
crate://crates.io/scopeguard/1.1.0 \
crate://crates.io/serde/1.0.142 \
crate://crates.io/serde_derive/1.0.142 \
crate://crates.io/serde_json/1.0.83 \
crate://crates.io/serde_with/2.0.0 \
crate://crates.io/serde_with_macros/2.0.0 \
crate://crates.io/serial_test/0.8.0 \
crate://crates.io/serial_test_derive/0.8.0 \
crate://crates.io/sha-1/0.10.0 \
crate://crates.io/sha2/0.9.9 \
crate://crates.io/shlex/1.1.0 \
crate://crates.io/slab/0.4.7 \
crate://crates.io/smallvec/1.9.0 \
crate://crates.io/socket2/0.4.4 \
crate://crates.io/strsim/0.10.0 \
crate://crates.io/strsim/0.8.0 \
crate://crates.io/structopt-derive/0.4.18 \
crate://crates.io/structopt/0.3.26 \
crate://crates.io/subtle/2.4.1 \
crate://crates.io/syn/1.0.99 \
crate://crates.io/sysinfo/0.15.9 \
crate://crates.io/termcolor/1.1.3 \
crate://crates.io/textwrap/0.11.0 \
crate://crates.io/time/0.1.44 \
crate://crates.io/time/0.3.13 \
crate://crates.io/tinyvec/1.6.0 \
crate://crates.io/tinyvec_macros/0.1.0 \
crate://crates.io/tokio-macros/1.8.0 \
crate://crates.io/tokio-openssl/0.6.3 \
crate://crates.io/tokio-util/0.7.3 \
crate://crates.io/tokio/1.20.1 \
crate://crates.io/toml/0.5.9 \
crate://crates.io/tower-layer/0.3.1 \
crate://crates.io/tower-service/0.3.2 \
crate://crates.io/tracing-attributes/0.1.22 \
crate://crates.io/tracing-core/0.1.29 \
crate://crates.io/tracing/0.1.36 \
crate://crates.io/try-lock/0.2.3 \
crate://crates.io/typenum/1.15.0 \
crate://crates.io/unicode-bidi/0.3.8 \
crate://crates.io/unicode-ident/1.0.3 \
crate://crates.io/unicode-normalization/0.1.21 \
crate://crates.io/unicode-segmentation/1.9.0 \
crate://crates.io/unicode-width/0.1.9 \
crate://crates.io/url/2.2.2 \
crate://crates.io/utf8-width/0.1.6 \
crate://crates.io/uuid/1.1.2 \
crate://crates.io/vcpkg/0.2.15 \
crate://crates.io/vec_map/0.8.2 \
crate://crates.io/version_check/0.9.4 \
crate://crates.io/walkdir/2.3.2 \
crate://crates.io/want/0.3.0 \
crate://crates.io/wasi/0.10.0+wasi-snapshot-preview1 \
crate://crates.io/wasi/0.11.0+wasi-snapshot-preview1 \
crate://crates.io/wasm-bindgen-backend/0.2.82 \
crate://crates.io/wasm-bindgen-macro-support/0.2.82 \
crate://crates.io/wasm-bindgen-macro/0.2.82 \
crate://crates.io/wasm-bindgen-shared/0.2.82 \
crate://crates.io/wasm-bindgen/0.2.82 \
crate://crates.io/wildmatch/2.1.1 \
crate://crates.io/winapi-build/0.1.1 \
crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi-util/0.1.5 \
crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi/0.2.8 \
crate://crates.io/winapi/0.3.9 \
crate://crates.io/windows-sys/0.36.1 \
crate://crates.io/windows_aarch64_msvc/0.36.1 \
crate://crates.io/windows_i686_gnu/0.36.1 \
crate://crates.io/windows_i686_msvc/0.36.1 \
crate://crates.io/windows_x86_64_gnu/0.36.1 \
crate://crates.io/windows_x86_64_msvc/0.36.1 \
crate://crates.io/ws2_32-sys/0.2.1 \
"
LIC_FILES_CHKSUM=" \
file://LICENSE;md5=4f9c2c296f77b3096b6c11a16fa7c66e \
"
SUMMARY = "The aziotctl tool is used for IoT identity service"
HOMEPAGE = "https://github.com/azure/iot-identity-service"
LICENSE = "MIT"
# includes this file if it exists but does not fail
# this is useful for anything you may want to override from
# what cargo-bitbake generates.
include aziotctl-${PV}.inc
include aziotctl.inc

Просмотреть файл

@ -0,0 +1,26 @@
From ad25eb134a46d6003cec624cc05e62a3a5b21a85 Mon Sep 17 00:00:00 2001
From: gaya <33068020+ggjjj@users.noreply.github.com>
Date: Wed, 26 Oct 2022 03:33:48 +0000
Subject: [PATCH] Change panic strategy to unwind
---
Cargo.toml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
index c916bec..7eaaa49 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -54,7 +54,7 @@ members = [
# Don't let panics from callbacks cross FFI boundary
[profile.dev]
-panic = "abort"
+panic = "unwind"
[profile.release]
-panic = "abort"
+panic = "unwind"
--
2.37.0

Просмотреть файл

@ -0,0 +1 @@
export VERSION = "1.4.1"

Просмотреть файл

@ -0,0 +1,85 @@
DEPENDS += "openssl virtual/docker aziotctl aziot-keys tpm2-tss clang-native libtss2"
RDEPENDS_${PN} += "docker libtss2 libtss2-mu libtss2-tcti-device aziot-keys"
TOOLCHAIN = "clang"
inherit systemd
SYSTEMD_AUTO_ENABLE_${PN} = "enable"
SYSTEMD_SERVICE_${PN} = "aziot-certd.service "
SYSTEMD_SERVICE_${PN} += "aziot-identityd.service "
SYSTEMD_SERVICE_${PN} += "aziot-keyd.service "
SYSTEMD_SERVICE_${PN} += "aziot-tpmd.service "
SRC_URI += "file://aziot-certd.service \
file://aziot-identityd.service \
file://aziot-keyd.service \
file://aziot-tpmd.service \
file://keys.generated.rs \
file://0001-Change-panic-strategy-to-unwind.patch \
"
do_install () {
# Binaries
install -d ${D}${bindir}
install -m 755 ${WORKDIR}/build/target/${TARGET_SYS}/release/aziotd ${D}${bindir}/aziotd
install -d ${D}${systemd_unitdir}/system
# Create symbolic links
ln -s ${bindir}/aziotd ${D}${bindir}/aziot-certd
ln -s ${bindir}/aziotd ${D}${bindir}/aziot-identityd
ln -s ${bindir}/aziotd ${D}${bindir}/aziot-keyd
ln -s ${bindir}/aziotd ${D}${bindir}/aziot-tpmd
# Install all folders
install -d ${D}${sysconfdir}/aziot
install -d -m 700 -o aziotcs -g aziotcs ${D}${sysconfdir}/aziot/certd/config.d
install -d -m 700 -o aziotid -g aziotid ${D}${sysconfdir}/aziot/identityd/config.d
install -d -m 700 -o aziotks -g aziotks ${D}${sysconfdir}/aziot/keyd/config.d
install -d -m 700 -o aziottpm -g aziottpm ${D}${sysconfdir}/aziot/tpmd/config.d
# Configuration files
install -m 644 ${WORKDIR}/git/cert/aziot-certd/config/unix/default.toml ${D}${sysconfdir}/aziot/certd/config.toml.default
install -m 644 ${WORKDIR}/git/identity/aziot-identityd/config/unix/default.toml ${D}${sysconfdir}/aziot/identityd/config.toml.default
install -m 644 ${WORKDIR}/git/key/aziot-keyd/config/unix/default.toml ${D}${sysconfdir}/aziot/keyd/config.toml.default
install -m 644 ${WORKDIR}/git/tpm/aziot-tpmd/config/unix/default.toml ${D}${sysconfdir}/aziot/tpmd/config.toml.default
install -m 644 ${WORKDIR}/git/aziotctl/config/unix/template.toml ${D}${sysconfdir}/aziot/config.toml.template
# Data dir
install -d ${D}${localstatedir}/lib
install -d ${D}${localstatedir}/lib/aziot
install -d -m 700 -o aziotks -g aziotks ${D}${localstatedir}/lib/aziot/keyd
install -d -m 700 -o aziotcs -g aziotcs ${D}${localstatedir}/lib/aziot/certd
install -d -m 700 -o aziotid -g aziotid ${D}${localstatedir}/lib/aziot/identityd
install -d -m 700 -o aziottpm -g aziottpm ${D}${localstatedir}/lib/aziot/tpmd
# Install all required services
install -m 644 ${WORKDIR}/aziot-certd.service ${D}${systemd_unitdir}/system
install -m 644 ${WORKDIR}/git/cert/aziot-certd/aziot-certd.socket ${D}${systemd_unitdir}/system
install -m 644 ${WORKDIR}/aziot-identityd.service ${D}${systemd_unitdir}/system
install -m 644 ${WORKDIR}/git/identity/aziot-identityd/aziot-identityd.socket ${D}${systemd_unitdir}/system
install -m 644 ${WORKDIR}/aziot-keyd.service ${D}${systemd_unitdir}/system
install -m 644 ${WORKDIR}/git/key/aziot-keyd/aziot-keyd.socket ${D}${systemd_unitdir}/system
install -m 644 ${WORKDIR}/aziot-tpmd.service ${D}${systemd_unitdir}/system
install -m 644 ${WORKDIR}/git/tpm/aziot-tpmd/aziot-tpmd.socket ${D}${systemd_unitdir}/system
}
inherit useradd
USERADD_PACKAGES = "${PN}"
USERADD_PARAM_${PN} = "-r -g aziotcs -c 'aziot-certd user' -G aziotks -s /sbin/nologin -d ${localstatedir}/lib/aziot/certd aziotcs; "
USERADD_PARAM_${PN} += "-r -g aziotks -c 'aziot-keyd user' -s /sbin/nologin -d ${localstatedir}/lib/aziot/keyd aziotks; "
USERADD_PARAM_${PN} += "-r -g aziotid -c 'aziot-identityd user' -G aziotcs,aziotks,aziottpm -s /sbin/nologin -d ${localstatedir}/lib/aziot/identityd aziotid; "
USERADD_PARAM_${PN} += "-r -g aziottpm -c 'aziot-tpmd user' -s /sbin/nologin -d ${localstatedir}/lib/aziot/tpmd aziottpm; "
GROUPADD_PARAM_${PN} = "-r aziotcs; "
GROUPADD_PARAM_${PN} += "-r aziotks; "
GROUPADD_PARAM_${PN} += "-r aziotid; "
GROUPADD_PARAM_${PN} += "-r aziottpm; "
FILES_${PN} += " \
${systemd_unitdir}/system/* \
${bindir}/aziot-* \
${localstatedir}/lib/ \
"

Просмотреть файл

@ -0,0 +1,11 @@
target = "${@d.getVar('TARGET_SYS',True).replace('-', ' ')}"
BINDGEN_EXTRA_CLANG_ARGS = "${@bb.utils.contains('target', 'arm', \
'--sysroot=${WORKDIR}/recipe-sysroot -I${WORKDIR}/recipe-sysroot/usr/include -mfloat-abi=hard', \
'--sysroot=${WORKDIR}/recipe-sysroot -I${WORKDIR}/recipe-sysroot/usr/include', \
d)}"
export BINDGEN_EXTRA_CLANG_ARGS
# Copy keys.generated.rs
do_compile_prepend () {
install -m 644 ${WORKDIR}/keys.generated.rs ${WORKDIR}/git/key/aziot-keyd/src/keys.generated.rs
}

Просмотреть файл

@ -0,0 +1,253 @@
# Auto-Generated by cargo-bitbake 0.3.16
#
inherit cargo
# If this is git based prefer versioned ones if they exist
# DEFAULT_PREFERENCE = "-1"
# how to get aziotd could be as easy as but default to a git checkout:
# SRC_URI += "crate://crates.io/aziotd/1.4.1"
SRC_URI += "gitsm://github.com/Azure/iot-identity-service;protocol=https;nobranch=1"
SRCREV = "f349b64d3b555b917a417f1c7543d245612495e3"
S = "${WORKDIR}/git"
CARGO_SRC_DIR = "aziotd"
PV:append = ".AUTOINC+f349b64d3b"
# please note if you have entries that do not begin with crate://
# you must change them to how that package can be fetched
SRC_URI += " \
crate://crates.io/addr2line/0.17.0 \
crate://crates.io/adler/1.0.2 \
crate://crates.io/aho-corasick/0.7.18 \
crate://crates.io/ansi_term/0.12.1 \
crate://crates.io/anyhow/1.0.60 \
crate://crates.io/async-recursion/1.0.0 \
crate://crates.io/async-trait/0.1.57 \
crate://crates.io/atty/0.2.14 \
crate://crates.io/autocfg/1.1.0 \
crate://crates.io/backtrace/0.3.66 \
crate://crates.io/base64/0.13.0 \
crate://crates.io/bindgen/0.60.1 \
crate://crates.io/bitflags/1.3.2 \
crate://crates.io/block-buffer/0.10.2 \
crate://crates.io/block-buffer/0.9.0 \
crate://crates.io/bumpalo/3.10.0 \
crate://crates.io/byte-unit/4.0.14 \
crate://crates.io/bytes/1.2.1 \
crate://crates.io/cc/1.0.73 \
crate://crates.io/cexpr/0.6.0 \
crate://crates.io/cfg-if/0.1.10 \
crate://crates.io/cfg-if/1.0.0 \
crate://crates.io/chrono/0.4.20 \
crate://crates.io/clang-sys/1.3.3 \
crate://crates.io/clap/2.34.0 \
crate://crates.io/colored/2.0.0 \
crate://crates.io/core-foundation-sys/0.8.3 \
crate://crates.io/cpufeatures/0.2.2 \
crate://crates.io/crossbeam-channel/0.5.6 \
crate://crates.io/crossbeam-deque/0.8.2 \
crate://crates.io/crossbeam-epoch/0.9.10 \
crate://crates.io/crossbeam-utils/0.8.11 \
crate://crates.io/crypto-common/0.1.6 \
crate://crates.io/crypto-mac/0.8.0 \
crate://crates.io/darling/0.14.1 \
crate://crates.io/darling_core/0.14.1 \
crate://crates.io/darling_macro/0.14.1 \
crate://crates.io/digest/0.10.3 \
crate://crates.io/digest/0.9.0 \
crate://crates.io/doc-comment/0.3.3 \
crate://crates.io/either/1.7.0 \
crate://crates.io/env_logger/0.9.0 \
crate://crates.io/erased-serde/0.3.22 \
crate://crates.io/filetime/0.2.17 \
crate://crates.io/fnv/1.0.7 \
crate://crates.io/foreign-types-shared/0.1.1 \
crate://crates.io/foreign-types/0.3.2 \
crate://crates.io/form_urlencoded/1.0.1 \
crate://crates.io/fsevent-sys/2.0.1 \
crate://crates.io/fsevent/0.4.0 \
crate://crates.io/fuchsia-zircon-sys/0.3.3 \
crate://crates.io/fuchsia-zircon/0.3.3 \
crate://crates.io/futures-channel/0.3.21 \
crate://crates.io/futures-core/0.3.21 \
crate://crates.io/futures-executor/0.3.21 \
crate://crates.io/futures-io/0.3.21 \
crate://crates.io/futures-macro/0.3.21 \
crate://crates.io/futures-sink/0.3.21 \
crate://crates.io/futures-task/0.3.21 \
crate://crates.io/futures-util/0.3.21 \
crate://crates.io/futures/0.3.21 \
crate://crates.io/generic-array/0.14.6 \
crate://crates.io/getrandom/0.2.7 \
crate://crates.io/gimli/0.26.2 \
crate://crates.io/glob/0.3.0 \
crate://crates.io/h2/0.3.13 \
crate://crates.io/hashbrown/0.12.3 \
crate://crates.io/headers-core/0.2.0 \
crate://crates.io/headers/0.3.7 \
crate://crates.io/heck/0.3.3 \
crate://crates.io/hermit-abi/0.1.19 \
crate://crates.io/hex/0.4.3 \
crate://crates.io/hmac/0.8.1 \
crate://crates.io/http-body/0.4.5 \
crate://crates.io/http/0.2.8 \
crate://crates.io/httparse/1.7.1 \
crate://crates.io/httpdate/1.0.2 \
crate://crates.io/humantime/2.1.0 \
crate://crates.io/hyper-openssl/0.9.2 \
crate://crates.io/hyper-proxy/0.9.1 \
crate://crates.io/hyper/0.14.20 \
crate://crates.io/ident_case/1.0.1 \
crate://crates.io/idna/0.2.3 \
crate://crates.io/indexmap/1.9.1 \
crate://crates.io/inotify-sys/0.1.5 \
crate://crates.io/inotify/0.7.1 \
crate://crates.io/iovec/0.1.4 \
crate://crates.io/itertools/0.8.2 \
crate://crates.io/itoa/1.0.3 \
crate://crates.io/js-sys/0.3.59 \
crate://crates.io/kernel32-sys/0.2.2 \
crate://crates.io/lazy_static/1.4.0 \
crate://crates.io/lazycell/1.3.0 \
crate://crates.io/libc/0.2.127 \
crate://crates.io/libloading/0.7.3 \
crate://crates.io/linked-hash-map/0.5.6 \
crate://crates.io/linked_hash_set/0.1.4 \
crate://crates.io/lock_api/0.4.7 \
crate://crates.io/log/0.4.17 \
crate://crates.io/matches/0.1.9 \
crate://crates.io/memchr/2.5.0 \
crate://crates.io/memoffset/0.6.5 \
crate://crates.io/mime/0.3.16 \
crate://crates.io/minimal-lexical/0.2.1 \
crate://crates.io/miniz_oxide/0.5.3 \
crate://crates.io/mio-extras/2.0.6 \
crate://crates.io/mio/0.6.23 \
crate://crates.io/mio/0.8.4 \
crate://crates.io/miow/0.2.2 \
crate://crates.io/net2/0.2.37 \
crate://crates.io/nix/0.24.2 \
crate://crates.io/nom/7.1.1 \
crate://crates.io/notify/4.0.17 \
crate://crates.io/ntapi/0.3.7 \
crate://crates.io/num-integer/0.1.45 \
crate://crates.io/num-traits/0.2.15 \
crate://crates.io/num_cpus/1.13.1 \
crate://crates.io/num_threads/0.1.6 \
crate://crates.io/object/0.29.0 \
crate://crates.io/once_cell/1.13.0 \
crate://crates.io/opaque-debug/0.3.0 \
crate://crates.io/openssl-errors/0.1.0 \
crate://crates.io/openssl-macros/0.1.0 \
crate://crates.io/openssl-sys/0.9.75 \
crate://crates.io/openssl/0.10.41 \
crate://crates.io/parking_lot/0.12.1 \
crate://crates.io/parking_lot_core/0.9.3 \
crate://crates.io/paste/1.0.8 \
crate://crates.io/peeking_take_while/0.1.2 \
crate://crates.io/percent-encoding/2.1.0 \
crate://crates.io/pin-project-lite/0.2.9 \
crate://crates.io/pin-utils/0.1.0 \
crate://crates.io/pkg-config/0.3.25 \
crate://crates.io/proc-macro-error-attr/1.0.4 \
crate://crates.io/proc-macro-error/1.0.4 \
crate://crates.io/proc-macro2/1.0.43 \
crate://crates.io/quote/1.0.21 \
crate://crates.io/rayon-core/1.9.3 \
crate://crates.io/rayon/1.5.3 \
crate://crates.io/redox_syscall/0.2.16 \
crate://crates.io/regex-syntax/0.6.27 \
crate://crates.io/regex/1.6.0 \
crate://crates.io/rustc-demangle/0.1.21 \
crate://crates.io/rustc-hash/1.1.0 \
crate://crates.io/rustversion/1.0.9 \
crate://crates.io/ryu/1.0.11 \
crate://crates.io/same-file/1.0.6 \
crate://crates.io/scopeguard/1.1.0 \
crate://crates.io/serde/1.0.142 \
crate://crates.io/serde_derive/1.0.142 \
crate://crates.io/serde_json/1.0.83 \
crate://crates.io/serde_with/2.0.0 \
crate://crates.io/serde_with_macros/2.0.0 \
crate://crates.io/serial_test/0.8.0 \
crate://crates.io/serial_test_derive/0.8.0 \
crate://crates.io/sha-1/0.10.0 \
crate://crates.io/sha2/0.9.9 \
crate://crates.io/shlex/1.1.0 \
crate://crates.io/slab/0.4.7 \
crate://crates.io/smallvec/1.9.0 \
crate://crates.io/socket2/0.4.4 \
crate://crates.io/strsim/0.10.0 \
crate://crates.io/strsim/0.8.0 \
crate://crates.io/structopt-derive/0.4.18 \
crate://crates.io/structopt/0.3.26 \
crate://crates.io/subtle/2.4.1 \
crate://crates.io/syn/1.0.99 \
crate://crates.io/sysinfo/0.15.9 \
crate://crates.io/termcolor/1.1.3 \
crate://crates.io/textwrap/0.11.0 \
crate://crates.io/time/0.1.44 \
crate://crates.io/time/0.3.13 \
crate://crates.io/tinyvec/1.6.0 \
crate://crates.io/tinyvec_macros/0.1.0 \
crate://crates.io/tokio-macros/1.8.0 \
crate://crates.io/tokio-openssl/0.6.3 \
crate://crates.io/tokio-util/0.7.3 \
crate://crates.io/tokio/1.20.1 \
crate://crates.io/toml/0.5.9 \
crate://crates.io/tower-layer/0.3.1 \
crate://crates.io/tower-service/0.3.2 \
crate://crates.io/tracing-attributes/0.1.22 \
crate://crates.io/tracing-core/0.1.29 \
crate://crates.io/tracing/0.1.36 \
crate://crates.io/try-lock/0.2.3 \
crate://crates.io/typenum/1.15.0 \
crate://crates.io/unicode-bidi/0.3.8 \
crate://crates.io/unicode-ident/1.0.3 \
crate://crates.io/unicode-normalization/0.1.21 \
crate://crates.io/unicode-segmentation/1.9.0 \
crate://crates.io/unicode-width/0.1.9 \
crate://crates.io/url/2.2.2 \
crate://crates.io/utf8-width/0.1.6 \
crate://crates.io/uuid/1.1.2 \
crate://crates.io/vcpkg/0.2.15 \
crate://crates.io/vec_map/0.8.2 \
crate://crates.io/version_check/0.9.4 \
crate://crates.io/walkdir/2.3.2 \
crate://crates.io/want/0.3.0 \
crate://crates.io/wasi/0.10.0+wasi-snapshot-preview1 \
crate://crates.io/wasi/0.11.0+wasi-snapshot-preview1 \
crate://crates.io/wasm-bindgen-backend/0.2.82 \
crate://crates.io/wasm-bindgen-macro-support/0.2.82 \
crate://crates.io/wasm-bindgen-macro/0.2.82 \
crate://crates.io/wasm-bindgen-shared/0.2.82 \
crate://crates.io/wasm-bindgen/0.2.82 \
crate://crates.io/wildmatch/2.1.1 \
crate://crates.io/winapi-build/0.1.1 \
crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi-util/0.1.5 \
crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi/0.2.8 \
crate://crates.io/winapi/0.3.9 \
crate://crates.io/windows-sys/0.36.1 \
crate://crates.io/windows_aarch64_msvc/0.36.1 \
crate://crates.io/windows_i686_gnu/0.36.1 \
crate://crates.io/windows_i686_msvc/0.36.1 \
crate://crates.io/windows_x86_64_gnu/0.36.1 \
crate://crates.io/windows_x86_64_msvc/0.36.1 \
crate://crates.io/ws2_32-sys/0.2.1 \
"
LIC_FILES_CHKSUM=" \
file://LICENSE;md5=4f9c2c296f77b3096b6c11a16fa7c66e \
"
SUMMARY = "The aziotd is the binary for IoT identity service"
HOMEPAGE = "https://github.com/azure/iot-identity-service"
LICENSE = "MIT"
# includes this file if it exists but does not fail
# this is useful for anything you may want to override from
# what cargo-bitbake generates.
include aziotd-${PV}.inc
include aziotd.inc

Просмотреть файл

@ -0,0 +1,26 @@
From ad25eb134a46d6003cec624cc05e62a3a5b21a85 Mon Sep 17 00:00:00 2001
From: gaya <33068020+ggjjj@users.noreply.github.com>
Date: Wed, 26 Oct 2022 03:33:48 +0000
Subject: [PATCH] Change panic strategy to unwind
---
Cargo.toml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
index c916bec..7eaaa49 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -54,7 +54,7 @@ members = [
# Don't let panics from callbacks cross FFI boundary
[profile.dev]
-panic = "abort"
+panic = "unwind"
[profile.release]
-panic = "abort"
+panic = "unwind"
--
2.37.0

Просмотреть файл

@ -0,0 +1,15 @@
[Unit]
Description=Azure IoT Certificates Service
Requires=aziot-certd.socket
After=aziot-certd.socket
[Service]
Environment=AZIOT_LOG=error
Environment=LD_LIBRARY_PATH=/usr/lib/rust
ExecStart=/usr/bin/aziot-certd
KillMode=process
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target

Просмотреть файл

@ -0,0 +1,15 @@
[Unit]
Description=Azure IoT Identity Service
Requires=aziot-identityd.socket
After=aziot-identityd.socket
[Service]
Environment=AZIOT_LOG=error
Environment=LD_LIBRARY_PATH=/usr/lib/rust
ExecStart=/usr/bin/aziot-identityd
KillMode=process
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target

Просмотреть файл

@ -0,0 +1,15 @@
[Unit]
Description=Azure IoT Keys Service
Requires=aziot-keyd.socket
After=aziot-keyd.socket
[Service]
Environment=AZIOT_LOG=error
Environment=LD_LIBRARY_PATH=/usr/lib/rust
ExecStart=/usr/bin/aziot-keyd
KillMode=process
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target

Просмотреть файл

@ -0,0 +1,15 @@
[Unit]
Description=Azure IoT TPM Service
Requires=aziot-tpmd.socket
After=aziot-tpmd.socket
[Service]
Environment=AZIOT_LOG=error
Environment=LD_LIBRARY_PATH=/usr/lib/rust
ExecStart=/usr/bin/aziot-tpmd
KillMode=process
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -1 +0,0 @@
export VERSION = "1.0.5"

Просмотреть файл

@ -1 +0,0 @@
export VERSION = "1.0.6.1"

Просмотреть файл

@ -1 +0,0 @@
export VERSION = "1.0.7"

Просмотреть файл

@ -1,10 +0,0 @@
DEPENDS += "openssl10"
export BUILD_SOURCEVERSION="${SRCREV}"
do_install () {
# Binaries
install -d "${D}${bindir}"
install -m 755 "${WORKDIR}/git/edgelet/target/${CARGO_TARGET_SUBDIR}/iotedge" ${D}${bindir}/iotedge
}

Просмотреть файл

@ -1,222 +0,0 @@
# Auto-Generated by cargo-bitbake 0.3.10
#
inherit cargo
SRC_URI += "gitsm://github.com/azure/iotedge.git;protocol=https"
SRCREV = "d76e0316c6f324345d77c48a83ce836d09392699"
S = "${WORKDIR}/git/edgelet/iotedge"
CARGO_SRC_DIR="edgelet"
SRC_URI += " \
crate://crates.io/aho-corasick/0.5.3 \
crate://crates.io/aho-corasick/0.6.4 \
crate://crates.io/ansi_term/0.11.0 \
crate://crates.io/arrayref/0.3.4 \
crate://crates.io/arrayvec/0.4.7 \
crate://crates.io/atty/0.2.10 \
crate://crates.io/backtrace-sys/0.1.16 \
crate://crates.io/backtrace/0.3.6 \
crate://crates.io/base64/0.9.1 \
crate://crates.io/bitflags/1.0.3 \
crate://crates.io/block-buffer/0.3.3 \
crate://crates.io/byte-tools/0.2.0 \
crate://crates.io/byteorder/1.2.2 \
crate://crates.io/bytes/0.4.8 \
crate://crates.io/cc/1.0.15 \
crate://crates.io/cfg-if/0.1.2 \
crate://crates.io/chrono-humanize/0.0.11 \
crate://crates.io/chrono/0.4.2 \
crate://crates.io/clap/2.31.2 \
crate://crates.io/cloudabi/0.0.3 \
crate://crates.io/cmake/0.1.30 \
crate://crates.io/config/0.8.0 \
crate://crates.io/consistenttime/0.2.0 \
crate://crates.io/constant_time_eq/0.1.3 \
crate://crates.io/core-foundation-sys/0.5.1 \
crate://crates.io/core-foundation/0.5.1 \
crate://crates.io/crossbeam-deque/0.6.1 \
crate://crates.io/crossbeam-epoch/0.5.2 \
crate://crates.io/crossbeam-utils/0.5.0 \
crate://crates.io/crypto-mac/0.5.2 \
crate://crates.io/digest/0.7.2 \
crate://crates.io/dtoa/0.4.2 \
crate://crates.io/env_logger/0.5.9 \
crate://crates.io/error-chain/0.11.0 \
crate://crates.io/failure/0.1.2 \
crate://crates.io/failure_derive/0.1.2 \
crate://crates.io/fake-simd/0.1.2 \
crate://crates.io/fnv/1.0.6 \
crate://crates.io/foreign-types-shared/0.1.1 \
crate://crates.io/foreign-types/0.3.2 \
crate://crates.io/fuchsia-zircon-sys/0.3.3 \
crate://crates.io/fuchsia-zircon/0.3.3 \
crate://crates.io/futures-cpupool/0.1.8 \
crate://crates.io/futures/0.1.24 \
crate://crates.io/generic-array/0.9.0 \
crate://crates.io/h2/0.1.12 \
crate://crates.io/hex/0.3.2 \
crate://crates.io/hmac/0.5.0 \
crate://crates.io/http/0.1.14 \
crate://crates.io/httparse/1.2.4 \
crate://crates.io/humantime/1.1.1 \
crate://crates.io/hyper-proxy/0.5.0 \
crate://crates.io/hyper-tls/0.3.0 \
crate://crates.io/hyper/0.12.17 \
crate://crates.io/hyperlocal/0.6.0 \
crate://crates.io/idna/0.1.4 \
crate://crates.io/indexmap/1.0.1 \
crate://crates.io/iovec/0.1.2 \
crate://crates.io/itoa/0.4.1 \
crate://crates.io/kernel32-sys/0.2.2 \
crate://crates.io/lazy_static/0.2.11 \
crate://crates.io/lazy_static/1.0.0 \
crate://crates.io/lazycell/0.6.0 \
crate://crates.io/lazycell/1.2.0 \
crate://crates.io/libc/0.2.42 \
crate://crates.io/linked-hash-map/0.3.0 \
crate://crates.io/linked-hash-map/0.5.1 \
crate://crates.io/log/0.4.5 \
crate://crates.io/matches/0.1.6 \
crate://crates.io/memchr/0.1.11 \
crate://crates.io/memchr/1.0.2 \
crate://crates.io/memchr/2.0.1 \
crate://crates.io/memoffset/0.2.1 \
crate://crates.io/mime/0.3.5 \
crate://crates.io/mio-named-pipes/0.1.6 \
crate://crates.io/mio-uds/0.6.7 \
crate://crates.io/mio/0.6.14 \
crate://crates.io/miow/0.2.1 \
crate://crates.io/miow/0.3.1 \
crate://crates.io/native-tls/0.2.1 \
crate://crates.io/net2/0.2.32 \
crate://crates.io/nix/0.11.0 \
crate://crates.io/nodrop/0.1.12 \
crate://crates.io/nom/3.2.1 \
crate://crates.io/num-integer/0.1.36 \
crate://crates.io/num-traits/0.1.43 \
crate://crates.io/num-traits/0.2.2 \
crate://crates.io/num_cpus/1.8.0 \
crate://crates.io/openssl-probe/0.1.2 \
crate://crates.io/openssl-sys/0.9.36 \
crate://crates.io/openssl/0.10.12 \
crate://crates.io/percent-encoding/1.0.1 \
crate://crates.io/pkg-config/0.3.11 \
crate://crates.io/proc-macro2/0.3.8 \
crate://crates.io/proc-macro2/0.4.19 \
crate://crates.io/quick-error/1.2.1 \
crate://crates.io/quote/0.5.2 \
crate://crates.io/quote/0.6.8 \
crate://crates.io/rand/0.4.2 \
crate://crates.io/rand/0.5.4 \
crate://crates.io/rand_core/0.2.1 \
crate://crates.io/redox_syscall/0.1.37 \
crate://crates.io/redox_termios/0.1.1 \
crate://crates.io/regex-syntax/0.3.9 \
crate://crates.io/regex-syntax/0.5.6 \
crate://crates.io/regex/0.1.80 \
crate://crates.io/regex/0.2.11 \
crate://crates.io/remove_dir_all/0.5.1 \
crate://crates.io/rustc-demangle/0.1.7 \
crate://crates.io/safemem/0.2.0 \
crate://crates.io/schannel/0.1.13 \
crate://crates.io/scopeguard/0.3.3 \
crate://crates.io/security-framework-sys/0.2.1 \
crate://crates.io/security-framework/0.2.1 \
crate://crates.io/serde-hjson/0.8.1 \
crate://crates.io/serde/0.8.23 \
crate://crates.io/serde/1.0.43 \
crate://crates.io/serde_derive/1.0.43 \
crate://crates.io/serde_derive_internals/0.23.1 \
crate://crates.io/serde_json/1.0.17 \
crate://crates.io/serde_test/0.8.23 \
crate://crates.io/serde_yaml/0.7.4 \
crate://crates.io/sha2/0.7.1 \
crate://crates.io/slab/0.4.1 \
crate://crates.io/socket2/0.3.5 \
crate://crates.io/string/0.1.1 \
crate://crates.io/strsim/0.7.0 \
crate://crates.io/syn/0.13.4 \
crate://crates.io/syn/0.14.9 \
crate://crates.io/synstructure/0.9.0 \
crate://crates.io/tabwriter/1.0.4 \
crate://crates.io/tempdir/0.3.7 \
crate://crates.io/tempfile/3.0.3 \
crate://crates.io/termcolor/0.3.6 \
crate://crates.io/termion/1.5.1 \
crate://crates.io/textwrap/0.9.0 \
crate://crates.io/thread-id/2.0.0 \
crate://crates.io/thread_local/0.2.7 \
crate://crates.io/thread_local/0.3.5 \
crate://crates.io/time/0.1.39 \
crate://crates.io/tokio-codec/0.1.0 \
crate://crates.io/tokio-current-thread/0.1.3 \
crate://crates.io/tokio-executor/0.1.5 \
crate://crates.io/tokio-fs/0.1.3 \
crate://crates.io/tokio-io/0.1.8 \
crate://crates.io/tokio-reactor/0.1.1 \
crate://crates.io/tokio-signal/0.2.5 \
crate://crates.io/tokio-tcp/0.1.0 \
crate://crates.io/tokio-threadpool/0.1.6 \
crate://crates.io/tokio-timer/0.2.6 \
crate://crates.io/tokio-tls/0.2.0 \
crate://crates.io/tokio-udp/0.1.0 \
crate://crates.io/tokio-uds/0.2.2 \
crate://crates.io/tokio/0.1.11 \
crate://crates.io/toml/0.4.6 \
crate://crates.io/try-lock/0.2.2 \
crate://crates.io/typed-headers/0.1.0 \
crate://crates.io/typenum/1.10.0 \
crate://crates.io/ucd-util/0.1.1 \
crate://crates.io/unicase/2.1.0 \
crate://crates.io/unicode-bidi/0.3.4 \
crate://crates.io/unicode-normalization/0.1.5 \
crate://crates.io/unicode-width/0.1.4 \
crate://crates.io/unicode-xid/0.1.0 \
crate://crates.io/unreachable/1.0.0 \
crate://crates.io/url/1.7.0 \
crate://crates.io/url_serde/0.2.0 \
crate://crates.io/utf8-ranges/0.1.3 \
crate://crates.io/utf8-ranges/1.0.0 \
crate://crates.io/vcpkg/0.2.3 \
crate://crates.io/vec_map/0.8.0 \
crate://crates.io/version-compare/0.0.6 \
crate://crates.io/version_check/0.1.3 \
crate://crates.io/void/1.0.2 \
crate://crates.io/want/0.0.6 \
crate://crates.io/widestring/0.3.0 \
crate://crates.io/winapi-build/0.1.1 \
crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi/0.2.8 \
crate://crates.io/winapi/0.3.5 \
crate://crates.io/wincolor/0.1.6 \
crate://crates.io/windows-service/0.1.0 \
crate://crates.io/winreg/0.5.1 \
crate://crates.io/ws2_32-sys/0.2.1 \
crate://crates.io/yaml-rust/0.4.0 \
git://github.com/Azure/hyperlocal-windows;protocol=https;name=hyperlocal-windows;destsuffix=hyperlocal-windows \
git://github.com/Azure/mio-uds-windows.git;protocol=https;name=mio-uds-windows;destsuffix=mio-uds-windows \
git://github.com/Azure/tokio-uds-windows.git;protocol=https;name=tokio-uds-windows;destsuffix=tokio-uds-windows \
"
SRCREV_FORMAT .= "_hyperlocal-windows"
SRCREV_hyperlocal-windows = "${AUTOREV}"
EXTRA_OECARGO_PATHS += "${WORKDIR}/hyperlocal-windows"
SRCREV_FORMAT .= "_tokio-uds-windows"
SRCREV_tokio-uds-windows = "${AUTOREV}"
EXTRA_OECARGO_PATHS += "${WORKDIR}/tokio-uds-windows"
SRCREV_FORMAT .= "_mio-uds-windows"
SRCREV_mio-uds-windows = "${AUTOREV}"
EXTRA_OECARGO_PATHS += "${WORKDIR}/mio-uds-windows"
LIC_FILES_CHKSUM=" \
file://../../LICENSE;md5=0f7e3b1308cb5c00b372a6e78835732d \
file://../../THIRDPARTYNOTICES;md5=f6eb6a0e0dc283b6dcd2c59e141dd385 \
"
SUMMARY = "The iotedge tool is used to manage the IoT Edge runtime."
HOMEPAGE = "https://github.com/azure/iotedge"
LICENSE = "MIT"
include iotedge-cli-${PV}.inc
include iotedge-cli.inc

Просмотреть файл

@ -1,229 +0,0 @@
# Auto-Generated by cargo-bitbake 0.3.10
#
inherit cargo
SRC_URI += "gitsm://github.com/azure/iotedge.git;protocol=https;branch=release/1.0.6"
SRCREV = "3fa6cbef8b7fc3c55a49a622735eb1021b8a5963"
S = "${WORKDIR}/git/edgelet/iotedge"
CARGO_SRC_DIR="iotedge"
SRC_URI += " \
crate://crates.io/aho-corasick/0.5.3 \
crate://crates.io/aho-corasick/0.6.4 \
crate://crates.io/ansi_term/0.11.0 \
crate://crates.io/argon2rs/0.2.5 \
crate://crates.io/arrayref/0.3.4 \
crate://crates.io/arrayvec/0.4.7 \
crate://crates.io/atty/0.2.10 \
crate://crates.io/backtrace-sys/0.1.16 \
crate://crates.io/backtrace/0.3.6 \
crate://crates.io/base64/0.9.1 \
crate://crates.io/bitflags/1.0.3 \
crate://crates.io/blake2-rfc/0.2.18 \
crate://crates.io/block-buffer/0.3.3 \
crate://crates.io/byte-tools/0.2.0 \
crate://crates.io/byteorder/1.2.2 \
crate://crates.io/bytes/0.4.8 \
crate://crates.io/cc/1.0.15 \
crate://crates.io/cfg-if/0.1.2 \
crate://crates.io/chrono-humanize/0.0.11 \
crate://crates.io/chrono/0.4.2 \
crate://crates.io/clap/2.31.2 \
crate://crates.io/cloudabi/0.0.3 \
crate://crates.io/cmake/0.1.30 \
crate://crates.io/config/0.8.0 \
crate://crates.io/consistenttime/0.2.0 \
crate://crates.io/constant_time_eq/0.1.3 \
crate://crates.io/core-foundation-sys/0.5.1 \
crate://crates.io/core-foundation/0.5.1 \
crate://crates.io/crossbeam-deque/0.6.1 \
crate://crates.io/crossbeam-epoch/0.5.2 \
crate://crates.io/crossbeam-utils/0.5.0 \
crate://crates.io/crypto-mac/0.5.2 \
crate://crates.io/digest/0.7.2 \
crate://crates.io/dirs/1.0.4 \
crate://crates.io/dtoa/0.4.2 \
crate://crates.io/env_logger/0.5.9 \
crate://crates.io/error-chain/0.11.0 \
crate://crates.io/failure/0.1.2 \
crate://crates.io/failure_derive/0.1.2 \
crate://crates.io/fake-simd/0.1.2 \
crate://crates.io/fnv/1.0.6 \
crate://crates.io/foreign-types-shared/0.1.1 \
crate://crates.io/foreign-types/0.3.2 \
crate://crates.io/fuchsia-zircon-sys/0.3.3 \
crate://crates.io/fuchsia-zircon/0.3.3 \
crate://crates.io/futures-cpupool/0.1.8 \
crate://crates.io/futures/0.1.24 \
crate://crates.io/generic-array/0.9.0 \
crate://crates.io/h2/0.1.12 \
crate://crates.io/hex/0.3.2 \
crate://crates.io/hmac/0.5.0 \
crate://crates.io/http/0.1.14 \
crate://crates.io/httparse/1.2.4 \
crate://crates.io/humantime/1.1.1 \
crate://crates.io/hyper-proxy/0.5.0 \
crate://crates.io/hyper-tls/0.3.0 \
crate://crates.io/hyper/0.12.17 \
crate://crates.io/hyperlocal/0.6.0 \
crate://crates.io/idna/0.1.4 \
crate://crates.io/indexmap/1.0.1 \
crate://crates.io/iovec/0.1.2 \
crate://crates.io/itoa/0.4.1 \
crate://crates.io/k8s-openapi/0.3.0 \
crate://crates.io/kernel32-sys/0.2.2 \
crate://crates.io/lazy_static/0.2.11 \
crate://crates.io/lazy_static/1.0.0 \
crate://crates.io/lazycell/0.6.0 \
crate://crates.io/lazycell/1.2.0 \
crate://crates.io/libc/0.2.42 \
crate://crates.io/linked-hash-map/0.3.0 \
crate://crates.io/linked-hash-map/0.5.1 \
crate://crates.io/log/0.4.5 \
crate://crates.io/matches/0.1.6 \
crate://crates.io/memchr/0.1.11 \
crate://crates.io/memchr/1.0.2 \
crate://crates.io/memchr/2.0.1 \
crate://crates.io/memoffset/0.2.1 \
crate://crates.io/mime/0.3.5 \
crate://crates.io/mio-named-pipes/0.1.6 \
crate://crates.io/mio-uds/0.6.7 \
crate://crates.io/mio/0.6.14 \
crate://crates.io/miow/0.2.1 \
crate://crates.io/miow/0.3.1 \
crate://crates.io/native-tls/0.2.1 \
crate://crates.io/net2/0.2.32 \
crate://crates.io/nix/0.11.0 \
crate://crates.io/nodrop/0.1.12 \
crate://crates.io/nom/3.2.1 \
crate://crates.io/num-integer/0.1.36 \
crate://crates.io/num-traits/0.1.43 \
crate://crates.io/num-traits/0.2.2 \
crate://crates.io/num_cpus/1.8.0 \
crate://crates.io/openssl-probe/0.1.2 \
crate://crates.io/openssl-sys/0.9.36 \
crate://crates.io/openssl/0.10.12 \
crate://crates.io/percent-encoding/1.0.1 \
crate://crates.io/pkg-config/0.3.11 \
crate://crates.io/proc-macro2/0.3.8 \
crate://crates.io/proc-macro2/0.4.19 \
crate://crates.io/quick-error/1.2.1 \
crate://crates.io/quote/0.5.2 \
crate://crates.io/quote/0.6.8 \
crate://crates.io/rand/0.4.2 \
crate://crates.io/rand/0.5.4 \
crate://crates.io/rand_core/0.2.1 \
crate://crates.io/redox_syscall/0.1.37 \
crate://crates.io/redox_termios/0.1.1 \
crate://crates.io/redox_users/0.2.0 \
crate://crates.io/regex-syntax/0.3.9 \
crate://crates.io/regex-syntax/0.5.6 \
crate://crates.io/regex/0.1.80 \
crate://crates.io/regex/0.2.11 \
crate://crates.io/remove_dir_all/0.5.1 \
crate://crates.io/rustc-demangle/0.1.7 \
crate://crates.io/safemem/0.2.0 \
crate://crates.io/schannel/0.1.13 \
crate://crates.io/scoped_threadpool/0.1.9 \
crate://crates.io/scopeguard/0.3.3 \
crate://crates.io/security-framework-sys/0.2.1 \
crate://crates.io/security-framework/0.2.1 \
crate://crates.io/serde-hjson/0.8.1 \
crate://crates.io/serde/0.8.23 \
crate://crates.io/serde/1.0.84 \
crate://crates.io/serde_derive/1.0.43 \
crate://crates.io/serde_derive_internals/0.23.1 \
crate://crates.io/serde_json/1.0.17 \
crate://crates.io/serde_test/0.8.23 \
crate://crates.io/serde_yaml/0.7.4 \
crate://crates.io/serde_yaml/0.8.8 \
crate://crates.io/sha2/0.7.1 \
crate://crates.io/slab/0.4.1 \
crate://crates.io/socket2/0.3.5 \
crate://crates.io/string/0.1.1 \
crate://crates.io/strsim/0.7.0 \
crate://crates.io/syn/0.13.4 \
crate://crates.io/syn/0.14.9 \
crate://crates.io/synstructure/0.9.0 \
crate://crates.io/tabwriter/1.0.4 \
crate://crates.io/tempdir/0.3.7 \
crate://crates.io/tempfile/3.0.3 \
crate://crates.io/termcolor/0.3.6 \
crate://crates.io/termion/1.5.1 \
crate://crates.io/textwrap/0.9.0 \
crate://crates.io/thread-id/2.0.0 \
crate://crates.io/thread_local/0.2.7 \
crate://crates.io/thread_local/0.3.5 \
crate://crates.io/time/0.1.39 \
crate://crates.io/tokio-codec/0.1.0 \
crate://crates.io/tokio-current-thread/0.1.3 \
crate://crates.io/tokio-executor/0.1.5 \
crate://crates.io/tokio-fs/0.1.3 \
crate://crates.io/tokio-io/0.1.8 \
crate://crates.io/tokio-reactor/0.1.1 \
crate://crates.io/tokio-signal/0.2.5 \
crate://crates.io/tokio-tcp/0.1.0 \
crate://crates.io/tokio-threadpool/0.1.6 \
crate://crates.io/tokio-timer/0.2.6 \
crate://crates.io/tokio-tls/0.2.0 \
crate://crates.io/tokio-udp/0.1.0 \
crate://crates.io/tokio-uds/0.2.2 \
crate://crates.io/tokio/0.1.11 \
crate://crates.io/toml/0.4.6 \
crate://crates.io/try-lock/0.2.2 \
crate://crates.io/typed-headers/0.1.0 \
crate://crates.io/typenum/1.10.0 \
crate://crates.io/ucd-util/0.1.1 \
crate://crates.io/unicase/2.1.0 \
crate://crates.io/unicode-bidi/0.3.4 \
crate://crates.io/unicode-normalization/0.1.5 \
crate://crates.io/unicode-width/0.1.4 \
crate://crates.io/unicode-xid/0.1.0 \
crate://crates.io/unreachable/1.0.0 \
crate://crates.io/url/1.7.0 \
crate://crates.io/url_serde/0.2.0 \
crate://crates.io/utf8-ranges/0.1.3 \
crate://crates.io/utf8-ranges/1.0.0 \
crate://crates.io/vcpkg/0.2.3 \
crate://crates.io/vec_map/0.8.0 \
crate://crates.io/version-compare/0.0.6 \
crate://crates.io/version_check/0.1.3 \
crate://crates.io/void/1.0.2 \
crate://crates.io/want/0.0.6 \
crate://crates.io/widestring/0.3.0 \
crate://crates.io/winapi-build/0.1.1 \
crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi/0.2.8 \
crate://crates.io/winapi/0.3.5 \
crate://crates.io/wincolor/0.1.6 \
crate://crates.io/windows-service/0.1.0 \
crate://crates.io/winreg/0.5.1 \
crate://crates.io/ws2_32-sys/0.2.1 \
crate://crates.io/yaml-rust/0.4.0 \
git://github.com/Azure/hyperlocal-windows;protocol=https;name=hyperlocal-windows;destsuffix=hyperlocal-windows \
git://github.com/Azure/mio-uds-windows.git;protocol=https;name=mio-uds-windows;destsuffix=mio-uds-windows \
git://github.com/Azure/tokio-uds-windows.git;protocol=https;name=tokio-uds-windows;destsuffix=tokio-uds-windows \
"
SRCREV_FORMAT .= "_hyperlocal-windows"
SRCREV_hyperlocal-windows = "${AUTOREV}"
EXTRA_OECARGO_PATHS += "${WORKDIR}/hyperlocal-windows"
SRCREV_FORMAT .= "_tokio-uds-windows"
SRCREV_tokio-uds-windows = "${AUTOREV}"
EXTRA_OECARGO_PATHS += "${WORKDIR}/tokio-uds-windows"
SRCREV_FORMAT .= "_mio-uds-windows"
SRCREV_mio-uds-windows = "${AUTOREV}"
EXTRA_OECARGO_PATHS += "${WORKDIR}/mio-uds-windows"
LIC_FILES_CHKSUM=" \
file://../../LICENSE;md5=0f7e3b1308cb5c00b372a6e78835732d \
file://../../THIRDPARTYNOTICES;md5=f6eb6a0e0dc283b6dcd2c59e141dd385 \
"
SUMMARY = "The iotedge tool is used to manage the IoT Edge runtime."
HOMEPAGE = "https://github.com/azure/iotedge"
LICENSE = "MIT"
include iotedge-cli-${PV}.inc
include iotedge-cli.inc

Просмотреть файл

@ -1,230 +0,0 @@
# Auto-Generated by cargo-bitbake 0.3.10
#
inherit cargo
SRC_URI += "gitsm://github.com/azure/iotedge.git;protocol=https;branch=release/1.0.7"
SRCREV = "f455ae2cd66db716c4bd8e7aaa7984ce092481c0"
S = "${WORKDIR}/git/edgelet/iotedge"
CARGO_SRC_DIR="iotedge"
SRC_URI += " \
crate://crates.io/aho-corasick/0.5.3 \
crate://crates.io/aho-corasick/0.6.4 \
crate://crates.io/ansi_term/0.11.0 \
crate://crates.io/argon2rs/0.2.5 \
crate://crates.io/arrayref/0.3.4 \
crate://crates.io/arrayvec/0.4.7 \
crate://crates.io/atty/0.2.10 \
crate://crates.io/backtrace-sys/0.1.16 \
crate://crates.io/backtrace/0.3.6 \
crate://crates.io/base64/0.9.1 \
crate://crates.io/bitflags/1.0.3 \
crate://crates.io/blake2-rfc/0.2.18 \
crate://crates.io/block-buffer/0.3.3 \
crate://crates.io/byte-tools/0.2.0 \
crate://crates.io/byteorder/1.2.2 \
crate://crates.io/bytes/0.4.8 \
crate://crates.io/cc/1.0.15 \
crate://crates.io/cfg-if/0.1.2 \
crate://crates.io/chrono-humanize/0.0.11 \
crate://crates.io/chrono/0.4.2 \
crate://crates.io/clap/2.31.2 \
crate://crates.io/cloudabi/0.0.3 \
crate://crates.io/cmake/0.1.30 \
crate://crates.io/config/0.8.0 \
crate://crates.io/consistenttime/0.2.0 \
crate://crates.io/constant_time_eq/0.1.3 \
crate://crates.io/core-foundation-sys/0.5.1 \
crate://crates.io/core-foundation/0.5.1 \
crate://crates.io/crossbeam-deque/0.6.1 \
crate://crates.io/crossbeam-epoch/0.5.2 \
crate://crates.io/crossbeam-utils/0.5.0 \
crate://crates.io/crypto-mac/0.5.2 \
crate://crates.io/digest/0.7.2 \
crate://crates.io/dirs/1.0.4 \
crate://crates.io/dtoa/0.4.2 \
crate://crates.io/env_logger/0.5.9 \
crate://crates.io/error-chain/0.11.0 \
crate://crates.io/failure/0.1.2 \
crate://crates.io/failure_derive/0.1.2 \
crate://crates.io/fake-simd/0.1.2 \
crate://crates.io/fnv/1.0.6 \
crate://crates.io/foreign-types-shared/0.1.1 \
crate://crates.io/foreign-types/0.3.2 \
crate://crates.io/fuchsia-zircon-sys/0.3.3 \
crate://crates.io/fuchsia-zircon/0.3.3 \
crate://crates.io/futures-cpupool/0.1.8 \
crate://crates.io/futures/0.1.24 \
crate://crates.io/generic-array/0.9.0 \
crate://crates.io/h2/0.1.12 \
crate://crates.io/hex/0.3.2 \
crate://crates.io/hmac/0.5.0 \
crate://crates.io/http/0.1.14 \
crate://crates.io/httparse/1.2.4 \
crate://crates.io/humantime/1.1.1 \
crate://crates.io/hyper-proxy/0.5.0 \
crate://crates.io/hyper-tls/0.3.0 \
crate://crates.io/hyper/0.12.17 \
crate://crates.io/hyperlocal/0.6.0 \
crate://crates.io/idna/0.1.4 \
crate://crates.io/indexmap/1.0.1 \
crate://crates.io/iovec/0.1.2 \
crate://crates.io/itoa/0.4.1 \
crate://crates.io/k8s-openapi/0.3.0 \
crate://crates.io/kernel32-sys/0.2.2 \
crate://crates.io/lazy_static/0.2.11 \
crate://crates.io/lazy_static/1.0.0 \
crate://crates.io/lazycell/0.6.0 \
crate://crates.io/lazycell/1.2.0 \
crate://crates.io/libc/0.2.42 \
crate://crates.io/linked-hash-map/0.3.0 \
crate://crates.io/linked-hash-map/0.5.1 \
crate://crates.io/log/0.4.5 \
crate://crates.io/matches/0.1.6 \
crate://crates.io/memchr/0.1.11 \
crate://crates.io/memchr/1.0.2 \
crate://crates.io/memchr/2.0.1 \
crate://crates.io/memoffset/0.2.1 \
crate://crates.io/mime/0.3.5 \
crate://crates.io/mio-named-pipes/0.1.6 \
crate://crates.io/mio-uds/0.6.7 \
crate://crates.io/mio/0.6.14 \
crate://crates.io/miow/0.2.1 \
crate://crates.io/miow/0.3.1 \
crate://crates.io/native-tls/0.2.1 \
crate://crates.io/net2/0.2.32 \
crate://crates.io/nix/0.11.0 \
crate://crates.io/nodrop/0.1.12 \
crate://crates.io/nom/3.2.1 \
crate://crates.io/num-integer/0.1.36 \
crate://crates.io/num-traits/0.1.43 \
crate://crates.io/num-traits/0.2.2 \
crate://crates.io/num_cpus/1.8.0 \
crate://crates.io/openssl-probe/0.1.2 \
crate://crates.io/openssl-sys/0.9.36 \
crate://crates.io/openssl/0.10.12 \
crate://crates.io/percent-encoding/1.0.1 \
crate://crates.io/pkg-config/0.3.11 \
crate://crates.io/proc-macro2/0.3.8 \
crate://crates.io/proc-macro2/0.4.19 \
crate://crates.io/quick-error/1.2.1 \
crate://crates.io/quote/0.5.2 \
crate://crates.io/quote/0.6.8 \
crate://crates.io/rand/0.4.2 \
crate://crates.io/rand/0.5.4 \
crate://crates.io/rand_core/0.2.1 \
crate://crates.io/redox_syscall/0.1.37 \
crate://crates.io/redox_termios/0.1.1 \
crate://crates.io/redox_users/0.2.0 \
crate://crates.io/regex-syntax/0.3.9 \
crate://crates.io/regex-syntax/0.5.6 \
crate://crates.io/regex/0.1.80 \
crate://crates.io/regex/0.2.11 \
crate://crates.io/remove_dir_all/0.5.1 \
crate://crates.io/rustc-demangle/0.1.7 \
crate://crates.io/safemem/0.2.0 \
crate://crates.io/schannel/0.1.13 \
crate://crates.io/scoped_threadpool/0.1.9 \
crate://crates.io/scopeguard/0.3.3 \
crate://crates.io/security-framework-sys/0.2.1 \
crate://crates.io/security-framework/0.2.1 \
crate://crates.io/serde-hjson/0.8.1 \
crate://crates.io/serde/0.8.23 \
crate://crates.io/serde/1.0.84 \
crate://crates.io/serde_derive/1.0.43 \
crate://crates.io/serde_derive_internals/0.23.1 \
crate://crates.io/serde_json/1.0.17 \
crate://crates.io/serde_test/0.8.23 \
crate://crates.io/serde_yaml/0.7.4 \
crate://crates.io/serde_yaml/0.8.8 \
crate://crates.io/sha2/0.7.1 \
crate://crates.io/slab/0.4.1 \
crate://crates.io/socket2/0.3.5 \
crate://crates.io/string/0.1.1 \
crate://crates.io/strsim/0.7.0 \
crate://crates.io/syn/0.13.4 \
crate://crates.io/syn/0.14.9 \
crate://crates.io/synstructure/0.9.0 \
crate://crates.io/tabwriter/1.0.4 \
crate://crates.io/tempdir/0.3.7 \
crate://crates.io/tempfile/3.0.3 \
crate://crates.io/termcolor/0.3.6 \
crate://crates.io/termion/1.5.1 \
crate://crates.io/textwrap/0.9.0 \
crate://crates.io/thread-id/2.0.0 \
crate://crates.io/thread_local/0.2.7 \
crate://crates.io/thread_local/0.3.5 \
crate://crates.io/time/0.1.39 \
crate://crates.io/tokio-codec/0.1.0 \
crate://crates.io/tokio-current-thread/0.1.3 \
crate://crates.io/tokio-executor/0.1.5 \
crate://crates.io/tokio-fs/0.1.3 \
crate://crates.io/tokio-io/0.1.8 \
crate://crates.io/tokio-reactor/0.1.1 \
crate://crates.io/tokio-signal/0.2.5 \
crate://crates.io/tokio-tcp/0.1.0 \
crate://crates.io/tokio-threadpool/0.1.6 \
crate://crates.io/tokio-timer/0.2.6 \
crate://crates.io/tokio-tls/0.2.0 \
crate://crates.io/tokio-udp/0.1.0 \
crate://crates.io/tokio-uds/0.2.2 \
crate://crates.io/tokio/0.1.11 \
crate://crates.io/toml/0.4.6 \
crate://crates.io/try-lock/0.2.2 \
crate://crates.io/typed-headers/0.1.0 \
crate://crates.io/typenum/1.10.0 \
crate://crates.io/ucd-util/0.1.1 \
crate://crates.io/unicase/2.1.0 \
crate://crates.io/unicode-bidi/0.3.4 \
crate://crates.io/unicode-normalization/0.1.5 \
crate://crates.io/unicode-width/0.1.4 \
crate://crates.io/unicode-xid/0.1.0 \
crate://crates.io/unreachable/1.0.0 \
crate://crates.io/url/1.7.0 \
crate://crates.io/url_serde/0.2.0 \
crate://crates.io/utf8-ranges/0.1.3 \
crate://crates.io/utf8-ranges/1.0.0 \
crate://crates.io/vcpkg/0.2.3 \
crate://crates.io/vec_map/0.8.0 \
crate://crates.io/version-compare/0.0.6 \
crate://crates.io/version_check/0.1.3 \
crate://crates.io/void/1.0.2 \
crate://crates.io/want/0.0.6 \
crate://crates.io/widestring/0.3.0 \
crate://crates.io/winapi-build/0.1.1 \
crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi/0.2.8 \
crate://crates.io/winapi/0.3.5 \
crate://crates.io/wincolor/0.1.6 \
crate://crates.io/windows-service/0.1.0 \
crate://crates.io/winreg/0.5.1 \
crate://crates.io/ws2_32-sys/0.2.1 \
crate://crates.io/yaml-rust/0.4.0 \
git://github.com/Azure/hyperlocal-windows;protocol=https;name=hyperlocal-windows;destsuffix=hyperlocal-windows \
git://github.com/Azure/mio-uds-windows.git;protocol=https;name=mio-uds-windows;destsuffix=mio-uds-windows \
git://github.com/Azure/tokio-uds-windows.git;protocol=https;name=tokio-uds-windows;destsuffix=tokio-uds-windows \
"
SRCREV_FORMAT .= "_hyperlocal-windows"
SRCREV_hyperlocal-windows = "${AUTOREV}"
EXTRA_OECARGO_PATHS += "${WORKDIR}/hyperlocal-windows"
SRCREV_FORMAT .= "_mio-uds-windows"
SRCREV_mio-uds-windows = "${AUTOREV}"
EXTRA_OECARGO_PATHS += "${WORKDIR}/mio-uds-windows"
SRCREV_FORMAT .= "_tokio-uds-windows"
SRCREV_tokio-uds-windows = "${AUTOREV}"
EXTRA_OECARGO_PATHS += "${WORKDIR}/tokio-uds-windows"
LIC_FILES_CHKSUM=" \
file://../../LICENSE;md5=0f7e3b1308cb5c00b372a6e78835732d \
file://../../THIRDPARTYNOTICES;md5=f6eb6a0e0dc283b6dcd2c59e141dd385 \
"
SUMMARY = "The iotedge tool is used to manage the IoT Edge runtime."
HOMEPAGE = "https://github.com/azure/iotedge"
LICENSE = "MIT"
include iotedge-cli-${PV}.inc
include iotedge-cli.inc

Просмотреть файл

@ -1 +0,0 @@
export VERSION = "1.0.5"

Просмотреть файл

@ -1 +0,0 @@
export VERSION = "1.0.6.1"

Просмотреть файл

@ -1 +0,0 @@
export VERSION = "1.0.7"

Просмотреть файл

@ -1,56 +0,0 @@
DEPENDS += "openssl10 docker virtual/libiothsm"
RDEPENDS_${PN} += "virtual/libiothsm docker"
INSANE_SKIP_${PN} += "dev-deps"
export SYSROOT = "${STAGING_DIR_HOST}"
export OpenSSLDir = "${STAGING_EXECPREFIXDIR}"
export OPENSSL_DIR = "${STAGING_EXECPREFIXDIR}"
export OPENSSL_ROOT_DIR = "${STAGING_EXECPREFIXDIR}"
export OPENSSL_INCLUDE_DIR = "${STAGING_INCDIR}"
export OPENSSL_LIB_DIR = "${STAGING_LIBDIR}"
export BUILD_SOURCEVERSION="${SRCREV}"
export FORCE_NO_UNITTEST="On"
export BUILD_SHARED="On"
inherit systemd update-rc.d
SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${PN}', '', d)}"
SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'iotedge.service', '', d)}"
SYSTEMD_AUTO_ENABLE_${PN} = "enable"
INITSCRIPT_PACKAGES += "${@bb.utils.contains('DISTRO_FEATURES','sysvinit','${PN}','',d)}"
INITSCRIPT_NAME_${PN} = "${@bb.utils.contains('DISTRO_FEATURES','sysvinit','iotedge','',d)}"
INITSCRIPT_PARAMS_${PN} = "defaults"
do_install () {
# Binaries
install -d "${D}${bindir}"
install -m 755 "${WORKDIR}/git/edgelet/target/${CARGO_TARGET_SUBDIR}/iotedged" ${D}${bindir}/iotedged
# Config file
install -d "${D}${sysconfdir}/iotedge"
install -m 400 -o iotedge -g iotedge "${WORKDIR}/git/edgelet/contrib/config/linux/debian/config.yaml" ${D}${sysconfdir}/iotedge/config.yaml
# Data dir
install -d -o iotedge -g iotedge "${D}${localstatedir}/lib/iotedge"
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
install -d ${D}${systemd_unitdir}/system
install -m 644 ${WORKDIR}/git/edgelet/contrib/systemd/debian/iotedge.service ${D}${systemd_unitdir}/system
install -m 644 ${WORKDIR}/git/edgelet/contrib/systemd/debian/iotedge.socket ${D}${systemd_unitdir}/system
install -m 644 ${WORKDIR}/git/edgelet/contrib/systemd/debian/iotedge.mgmt.socket ${D}${systemd_unitdir}/system
else
install -d ${D}${sysconfdir}/init.d
install -m 755 ${WORKDIR}/git/edgelet/contrib/debian/iotedge.init ${D}${sysconfdir}/init.d/iotedge
fi
}
inherit useradd
USERADD_PACKAGES = "${PN}"
USERADD_PARAM_${PN} = "-r -u 15580 -g iotedge -G docker -s /bin/false -d ${localstatedir}/lib/iotedge iotedge"
GROUPADD_PARAM_${PN} = "-r -g 15580 iotedge"
FILES_${PN} += " \
${systemd_unitdir}/system/* \
${localstatedir}/lib/iotedge \
"

Просмотреть файл

@ -1,222 +0,0 @@
# Auto-Generated by cargo-bitbake 0.3.10
#
inherit cargo
SRC_URI += "gitsm://github.com/azure/iotedge.git;protocol=https"
SRCREV = "d76e0316c6f324345d77c48a83ce836d09392699"
S = "${WORKDIR}/git/edgelet/iotedged"
CARGO_SRC_DIR="iotedged"
SRC_URI += " \
crate://crates.io/aho-corasick/0.5.3 \
crate://crates.io/aho-corasick/0.6.4 \
crate://crates.io/ansi_term/0.11.0 \
crate://crates.io/arrayref/0.3.4 \
crate://crates.io/arrayvec/0.4.7 \
crate://crates.io/atty/0.2.10 \
crate://crates.io/backtrace-sys/0.1.16 \
crate://crates.io/backtrace/0.3.6 \
crate://crates.io/base64/0.9.1 \
crate://crates.io/bitflags/1.0.3 \
crate://crates.io/block-buffer/0.3.3 \
crate://crates.io/byte-tools/0.2.0 \
crate://crates.io/byteorder/1.2.2 \
crate://crates.io/bytes/0.4.8 \
crate://crates.io/cc/1.0.15 \
crate://crates.io/cfg-if/0.1.2 \
crate://crates.io/chrono-humanize/0.0.11 \
crate://crates.io/chrono/0.4.2 \
crate://crates.io/clap/2.31.2 \
crate://crates.io/cloudabi/0.0.3 \
crate://crates.io/cmake/0.1.30 \
crate://crates.io/config/0.8.0 \
crate://crates.io/consistenttime/0.2.0 \
crate://crates.io/constant_time_eq/0.1.3 \
crate://crates.io/core-foundation-sys/0.5.1 \
crate://crates.io/core-foundation/0.5.1 \
crate://crates.io/crossbeam-deque/0.6.1 \
crate://crates.io/crossbeam-epoch/0.5.2 \
crate://crates.io/crossbeam-utils/0.5.0 \
crate://crates.io/crypto-mac/0.5.2 \
crate://crates.io/digest/0.7.2 \
crate://crates.io/dtoa/0.4.2 \
crate://crates.io/env_logger/0.5.9 \
crate://crates.io/error-chain/0.11.0 \
crate://crates.io/failure/0.1.2 \
crate://crates.io/failure_derive/0.1.2 \
crate://crates.io/fake-simd/0.1.2 \
crate://crates.io/fnv/1.0.6 \
crate://crates.io/foreign-types-shared/0.1.1 \
crate://crates.io/foreign-types/0.3.2 \
crate://crates.io/fuchsia-zircon-sys/0.3.3 \
crate://crates.io/fuchsia-zircon/0.3.3 \
crate://crates.io/futures-cpupool/0.1.8 \
crate://crates.io/futures/0.1.24 \
crate://crates.io/generic-array/0.9.0 \
crate://crates.io/h2/0.1.12 \
crate://crates.io/hex/0.3.2 \
crate://crates.io/hmac/0.5.0 \
crate://crates.io/http/0.1.14 \
crate://crates.io/httparse/1.2.4 \
crate://crates.io/humantime/1.1.1 \
crate://crates.io/hyper-proxy/0.5.0 \
crate://crates.io/hyper-tls/0.3.0 \
crate://crates.io/hyper/0.12.17 \
crate://crates.io/hyperlocal/0.6.0 \
crate://crates.io/idna/0.1.4 \
crate://crates.io/indexmap/1.0.1 \
crate://crates.io/iovec/0.1.2 \
crate://crates.io/itoa/0.4.1 \
crate://crates.io/kernel32-sys/0.2.2 \
crate://crates.io/lazy_static/0.2.11 \
crate://crates.io/lazy_static/1.0.0 \
crate://crates.io/lazycell/0.6.0 \
crate://crates.io/lazycell/1.2.0 \
crate://crates.io/libc/0.2.42 \
crate://crates.io/linked-hash-map/0.3.0 \
crate://crates.io/linked-hash-map/0.5.1 \
crate://crates.io/log/0.4.5 \
crate://crates.io/matches/0.1.6 \
crate://crates.io/memchr/0.1.11 \
crate://crates.io/memchr/1.0.2 \
crate://crates.io/memchr/2.0.1 \
crate://crates.io/memoffset/0.2.1 \
crate://crates.io/mime/0.3.5 \
crate://crates.io/mio-named-pipes/0.1.6 \
crate://crates.io/mio-uds/0.6.7 \
crate://crates.io/mio/0.6.14 \
crate://crates.io/miow/0.2.1 \
crate://crates.io/miow/0.3.1 \
crate://crates.io/native-tls/0.2.1 \
crate://crates.io/net2/0.2.32 \
crate://crates.io/nix/0.11.0 \
crate://crates.io/nodrop/0.1.12 \
crate://crates.io/nom/3.2.1 \
crate://crates.io/num-integer/0.1.36 \
crate://crates.io/num-traits/0.1.43 \
crate://crates.io/num-traits/0.2.2 \
crate://crates.io/num_cpus/1.8.0 \
crate://crates.io/openssl-probe/0.1.2 \
crate://crates.io/openssl-sys/0.9.36 \
crate://crates.io/openssl/0.10.12 \
crate://crates.io/percent-encoding/1.0.1 \
crate://crates.io/pkg-config/0.3.11 \
crate://crates.io/proc-macro2/0.3.8 \
crate://crates.io/proc-macro2/0.4.19 \
crate://crates.io/quick-error/1.2.1 \
crate://crates.io/quote/0.5.2 \
crate://crates.io/quote/0.6.8 \
crate://crates.io/rand/0.4.2 \
crate://crates.io/rand/0.5.4 \
crate://crates.io/rand_core/0.2.1 \
crate://crates.io/redox_syscall/0.1.37 \
crate://crates.io/redox_termios/0.1.1 \
crate://crates.io/regex-syntax/0.3.9 \
crate://crates.io/regex-syntax/0.5.6 \
crate://crates.io/regex/0.1.80 \
crate://crates.io/regex/0.2.11 \
crate://crates.io/remove_dir_all/0.5.1 \
crate://crates.io/rustc-demangle/0.1.7 \
crate://crates.io/safemem/0.2.0 \
crate://crates.io/schannel/0.1.13 \
crate://crates.io/scopeguard/0.3.3 \
crate://crates.io/security-framework-sys/0.2.1 \
crate://crates.io/security-framework/0.2.1 \
crate://crates.io/serde-hjson/0.8.1 \
crate://crates.io/serde/0.8.23 \
crate://crates.io/serde/1.0.43 \
crate://crates.io/serde_derive/1.0.43 \
crate://crates.io/serde_derive_internals/0.23.1 \
crate://crates.io/serde_json/1.0.17 \
crate://crates.io/serde_test/0.8.23 \
crate://crates.io/serde_yaml/0.7.4 \
crate://crates.io/sha2/0.7.1 \
crate://crates.io/slab/0.4.1 \
crate://crates.io/socket2/0.3.5 \
crate://crates.io/string/0.1.1 \
crate://crates.io/strsim/0.7.0 \
crate://crates.io/syn/0.13.4 \
crate://crates.io/syn/0.14.9 \
crate://crates.io/synstructure/0.9.0 \
crate://crates.io/tabwriter/1.0.4 \
crate://crates.io/tempdir/0.3.7 \
crate://crates.io/tempfile/3.0.3 \
crate://crates.io/termcolor/0.3.6 \
crate://crates.io/termion/1.5.1 \
crate://crates.io/textwrap/0.9.0 \
crate://crates.io/thread-id/2.0.0 \
crate://crates.io/thread_local/0.2.7 \
crate://crates.io/thread_local/0.3.5 \
crate://crates.io/time/0.1.39 \
crate://crates.io/tokio-codec/0.1.0 \
crate://crates.io/tokio-current-thread/0.1.3 \
crate://crates.io/tokio-executor/0.1.5 \
crate://crates.io/tokio-fs/0.1.3 \
crate://crates.io/tokio-io/0.1.8 \
crate://crates.io/tokio-reactor/0.1.1 \
crate://crates.io/tokio-signal/0.2.5 \
crate://crates.io/tokio-tcp/0.1.0 \
crate://crates.io/tokio-threadpool/0.1.6 \
crate://crates.io/tokio-timer/0.2.6 \
crate://crates.io/tokio-tls/0.2.0 \
crate://crates.io/tokio-udp/0.1.0 \
crate://crates.io/tokio-uds/0.2.2 \
crate://crates.io/tokio/0.1.11 \
crate://crates.io/toml/0.4.6 \
crate://crates.io/try-lock/0.2.2 \
crate://crates.io/typed-headers/0.1.0 \
crate://crates.io/typenum/1.10.0 \
crate://crates.io/ucd-util/0.1.1 \
crate://crates.io/unicase/2.1.0 \
crate://crates.io/unicode-bidi/0.3.4 \
crate://crates.io/unicode-normalization/0.1.5 \
crate://crates.io/unicode-width/0.1.4 \
crate://crates.io/unicode-xid/0.1.0 \
crate://crates.io/unreachable/1.0.0 \
crate://crates.io/url/1.7.0 \
crate://crates.io/url_serde/0.2.0 \
crate://crates.io/utf8-ranges/0.1.3 \
crate://crates.io/utf8-ranges/1.0.0 \
crate://crates.io/vcpkg/0.2.3 \
crate://crates.io/vec_map/0.8.0 \
crate://crates.io/version-compare/0.0.6 \
crate://crates.io/version_check/0.1.3 \
crate://crates.io/void/1.0.2 \
crate://crates.io/want/0.0.6 \
crate://crates.io/widestring/0.3.0 \
crate://crates.io/winapi-build/0.1.1 \
crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi/0.2.8 \
crate://crates.io/winapi/0.3.5 \
crate://crates.io/wincolor/0.1.6 \
crate://crates.io/windows-service/0.1.0 \
crate://crates.io/winreg/0.5.1 \
crate://crates.io/ws2_32-sys/0.2.1 \
crate://crates.io/yaml-rust/0.4.0 \
git://github.com/Azure/hyperlocal-windows;protocol=https;name=hyperlocal-windows;destsuffix=hyperlocal-windows \
git://github.com/Azure/mio-uds-windows.git;protocol=https;name=mio-uds-windows;destsuffix=mio-uds-windows \
git://github.com/Azure/tokio-uds-windows.git;protocol=https;name=tokio-uds-windows;destsuffix=tokio-uds-windows \
"
SRCREV_FORMAT .= "_mio-uds-windows"
SRCREV_mio-uds-windows = "${AUTOREV}"
EXTRA_OECARGO_PATHS += "${WORKDIR}/mio-uds-windows"
SRCREV_FORMAT .= "_tokio-uds-windows"
SRCREV_tokio-uds-windows = "${AUTOREV}"
EXTRA_OECARGO_PATHS += "${WORKDIR}/tokio-uds-windows"
SRCREV_FORMAT .= "_hyperlocal-windows"
SRCREV_hyperlocal-windows = "${AUTOREV}"
EXTRA_OECARGO_PATHS += "${WORKDIR}/hyperlocal-windows"
LIC_FILES_CHKSUM=" \
file://../../LICENSE;md5=0f7e3b1308cb5c00b372a6e78835732d \
file://../../THIRDPARTYNOTICES;md5=f6eb6a0e0dc283b6dcd2c59e141dd385 \
"
SUMMARY = "The IoT Edge Security Daemon"
HOMEPAGE = "https://github.com/azure/iotedge"
LICENSE = "MIT"
include iotedge-daemon-${PV}.inc
include iotedge-daemon.inc

Просмотреть файл

@ -1,229 +0,0 @@
# Auto-Generated by cargo-bitbake 0.3.10
#
inherit cargo
SRC_URI += "gitsm://github.com/azure/iotedge.git;protocol=https;branch=release/1.0.6"
SRCREV = "3fa6cbef8b7fc3c55a49a622735eb1021b8a5963"
S = "${WORKDIR}/git/edgelet/iotedged"
CARGO_SRC_DIR="iotedged"
SRC_URI += " \
crate://crates.io/aho-corasick/0.5.3 \
crate://crates.io/aho-corasick/0.6.4 \
crate://crates.io/ansi_term/0.11.0 \
crate://crates.io/argon2rs/0.2.5 \
crate://crates.io/arrayref/0.3.4 \
crate://crates.io/arrayvec/0.4.7 \
crate://crates.io/atty/0.2.10 \
crate://crates.io/backtrace-sys/0.1.16 \
crate://crates.io/backtrace/0.3.6 \
crate://crates.io/base64/0.9.1 \
crate://crates.io/bitflags/1.0.3 \
crate://crates.io/blake2-rfc/0.2.18 \
crate://crates.io/block-buffer/0.3.3 \
crate://crates.io/byte-tools/0.2.0 \
crate://crates.io/byteorder/1.2.2 \
crate://crates.io/bytes/0.4.8 \
crate://crates.io/cc/1.0.15 \
crate://crates.io/cfg-if/0.1.2 \
crate://crates.io/chrono-humanize/0.0.11 \
crate://crates.io/chrono/0.4.2 \
crate://crates.io/clap/2.31.2 \
crate://crates.io/cloudabi/0.0.3 \
crate://crates.io/cmake/0.1.30 \
crate://crates.io/config/0.8.0 \
crate://crates.io/consistenttime/0.2.0 \
crate://crates.io/constant_time_eq/0.1.3 \
crate://crates.io/core-foundation-sys/0.5.1 \
crate://crates.io/core-foundation/0.5.1 \
crate://crates.io/crossbeam-deque/0.6.1 \
crate://crates.io/crossbeam-epoch/0.5.2 \
crate://crates.io/crossbeam-utils/0.5.0 \
crate://crates.io/crypto-mac/0.5.2 \
crate://crates.io/digest/0.7.2 \
crate://crates.io/dirs/1.0.4 \
crate://crates.io/dtoa/0.4.2 \
crate://crates.io/env_logger/0.5.9 \
crate://crates.io/error-chain/0.11.0 \
crate://crates.io/failure/0.1.2 \
crate://crates.io/failure_derive/0.1.2 \
crate://crates.io/fake-simd/0.1.2 \
crate://crates.io/fnv/1.0.6 \
crate://crates.io/foreign-types-shared/0.1.1 \
crate://crates.io/foreign-types/0.3.2 \
crate://crates.io/fuchsia-zircon-sys/0.3.3 \
crate://crates.io/fuchsia-zircon/0.3.3 \
crate://crates.io/futures-cpupool/0.1.8 \
crate://crates.io/futures/0.1.24 \
crate://crates.io/generic-array/0.9.0 \
crate://crates.io/h2/0.1.12 \
crate://crates.io/hex/0.3.2 \
crate://crates.io/hmac/0.5.0 \
crate://crates.io/http/0.1.14 \
crate://crates.io/httparse/1.2.4 \
crate://crates.io/humantime/1.1.1 \
crate://crates.io/hyper-proxy/0.5.0 \
crate://crates.io/hyper-tls/0.3.0 \
crate://crates.io/hyper/0.12.17 \
crate://crates.io/hyperlocal/0.6.0 \
crate://crates.io/idna/0.1.4 \
crate://crates.io/indexmap/1.0.1 \
crate://crates.io/iovec/0.1.2 \
crate://crates.io/itoa/0.4.1 \
crate://crates.io/k8s-openapi/0.3.0 \
crate://crates.io/kernel32-sys/0.2.2 \
crate://crates.io/lazy_static/0.2.11 \
crate://crates.io/lazy_static/1.0.0 \
crate://crates.io/lazycell/0.6.0 \
crate://crates.io/lazycell/1.2.0 \
crate://crates.io/libc/0.2.42 \
crate://crates.io/linked-hash-map/0.3.0 \
crate://crates.io/linked-hash-map/0.5.1 \
crate://crates.io/log/0.4.5 \
crate://crates.io/matches/0.1.6 \
crate://crates.io/memchr/0.1.11 \
crate://crates.io/memchr/1.0.2 \
crate://crates.io/memchr/2.0.1 \
crate://crates.io/memoffset/0.2.1 \
crate://crates.io/mime/0.3.5 \
crate://crates.io/mio-named-pipes/0.1.6 \
crate://crates.io/mio-uds/0.6.7 \
crate://crates.io/mio/0.6.14 \
crate://crates.io/miow/0.2.1 \
crate://crates.io/miow/0.3.1 \
crate://crates.io/native-tls/0.2.1 \
crate://crates.io/net2/0.2.32 \
crate://crates.io/nix/0.11.0 \
crate://crates.io/nodrop/0.1.12 \
crate://crates.io/nom/3.2.1 \
crate://crates.io/num-integer/0.1.36 \
crate://crates.io/num-traits/0.1.43 \
crate://crates.io/num-traits/0.2.2 \
crate://crates.io/num_cpus/1.8.0 \
crate://crates.io/openssl-probe/0.1.2 \
crate://crates.io/openssl-sys/0.9.36 \
crate://crates.io/openssl/0.10.12 \
crate://crates.io/percent-encoding/1.0.1 \
crate://crates.io/pkg-config/0.3.11 \
crate://crates.io/proc-macro2/0.3.8 \
crate://crates.io/proc-macro2/0.4.19 \
crate://crates.io/quick-error/1.2.1 \
crate://crates.io/quote/0.5.2 \
crate://crates.io/quote/0.6.8 \
crate://crates.io/rand/0.4.2 \
crate://crates.io/rand/0.5.4 \
crate://crates.io/rand_core/0.2.1 \
crate://crates.io/redox_syscall/0.1.37 \
crate://crates.io/redox_termios/0.1.1 \
crate://crates.io/redox_users/0.2.0 \
crate://crates.io/regex-syntax/0.3.9 \
crate://crates.io/regex-syntax/0.5.6 \
crate://crates.io/regex/0.1.80 \
crate://crates.io/regex/0.2.11 \
crate://crates.io/remove_dir_all/0.5.1 \
crate://crates.io/rustc-demangle/0.1.7 \
crate://crates.io/safemem/0.2.0 \
crate://crates.io/schannel/0.1.13 \
crate://crates.io/scoped_threadpool/0.1.9 \
crate://crates.io/scopeguard/0.3.3 \
crate://crates.io/security-framework-sys/0.2.1 \
crate://crates.io/security-framework/0.2.1 \
crate://crates.io/serde-hjson/0.8.1 \
crate://crates.io/serde/0.8.23 \
crate://crates.io/serde/1.0.84 \
crate://crates.io/serde_derive/1.0.43 \
crate://crates.io/serde_derive_internals/0.23.1 \
crate://crates.io/serde_json/1.0.17 \
crate://crates.io/serde_test/0.8.23 \
crate://crates.io/serde_yaml/0.7.4 \
crate://crates.io/serde_yaml/0.8.8 \
crate://crates.io/sha2/0.7.1 \
crate://crates.io/slab/0.4.1 \
crate://crates.io/socket2/0.3.5 \
crate://crates.io/string/0.1.1 \
crate://crates.io/strsim/0.7.0 \
crate://crates.io/syn/0.13.4 \
crate://crates.io/syn/0.14.9 \
crate://crates.io/synstructure/0.9.0 \
crate://crates.io/tabwriter/1.0.4 \
crate://crates.io/tempdir/0.3.7 \
crate://crates.io/tempfile/3.0.3 \
crate://crates.io/termcolor/0.3.6 \
crate://crates.io/termion/1.5.1 \
crate://crates.io/textwrap/0.9.0 \
crate://crates.io/thread-id/2.0.0 \
crate://crates.io/thread_local/0.2.7 \
crate://crates.io/thread_local/0.3.5 \
crate://crates.io/time/0.1.39 \
crate://crates.io/tokio-codec/0.1.0 \
crate://crates.io/tokio-current-thread/0.1.3 \
crate://crates.io/tokio-executor/0.1.5 \
crate://crates.io/tokio-fs/0.1.3 \
crate://crates.io/tokio-io/0.1.8 \
crate://crates.io/tokio-reactor/0.1.1 \
crate://crates.io/tokio-signal/0.2.5 \
crate://crates.io/tokio-tcp/0.1.0 \
crate://crates.io/tokio-threadpool/0.1.6 \
crate://crates.io/tokio-timer/0.2.6 \
crate://crates.io/tokio-tls/0.2.0 \
crate://crates.io/tokio-udp/0.1.0 \
crate://crates.io/tokio-uds/0.2.2 \
crate://crates.io/tokio/0.1.11 \
crate://crates.io/toml/0.4.6 \
crate://crates.io/try-lock/0.2.2 \
crate://crates.io/typed-headers/0.1.0 \
crate://crates.io/typenum/1.10.0 \
crate://crates.io/ucd-util/0.1.1 \
crate://crates.io/unicase/2.1.0 \
crate://crates.io/unicode-bidi/0.3.4 \
crate://crates.io/unicode-normalization/0.1.5 \
crate://crates.io/unicode-width/0.1.4 \
crate://crates.io/unicode-xid/0.1.0 \
crate://crates.io/unreachable/1.0.0 \
crate://crates.io/url/1.7.0 \
crate://crates.io/url_serde/0.2.0 \
crate://crates.io/utf8-ranges/0.1.3 \
crate://crates.io/utf8-ranges/1.0.0 \
crate://crates.io/vcpkg/0.2.3 \
crate://crates.io/vec_map/0.8.0 \
crate://crates.io/version-compare/0.0.6 \
crate://crates.io/version_check/0.1.3 \
crate://crates.io/void/1.0.2 \
crate://crates.io/want/0.0.6 \
crate://crates.io/widestring/0.3.0 \
crate://crates.io/winapi-build/0.1.1 \
crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi/0.2.8 \
crate://crates.io/winapi/0.3.5 \
crate://crates.io/wincolor/0.1.6 \
crate://crates.io/windows-service/0.1.0 \
crate://crates.io/winreg/0.5.1 \
crate://crates.io/ws2_32-sys/0.2.1 \
crate://crates.io/yaml-rust/0.4.0 \
git://github.com/Azure/hyperlocal-windows;protocol=https;name=hyperlocal-windows;destsuffix=hyperlocal-windows \
git://github.com/Azure/mio-uds-windows.git;protocol=https;name=mio-uds-windows;destsuffix=mio-uds-windows \
git://github.com/Azure/tokio-uds-windows.git;protocol=https;name=tokio-uds-windows;destsuffix=tokio-uds-windows \
"
SRCREV_FORMAT .= "_hyperlocal-windows"
SRCREV_hyperlocal-windows = "${AUTOREV}"
EXTRA_OECARGO_PATHS += "${WORKDIR}/hyperlocal-windows"
SRCREV_FORMAT .= "_tokio-uds-windows"
SRCREV_tokio-uds-windows = "${AUTOREV}"
EXTRA_OECARGO_PATHS += "${WORKDIR}/tokio-uds-windows"
SRCREV_FORMAT .= "_mio-uds-windows"
SRCREV_mio-uds-windows = "${AUTOREV}"
EXTRA_OECARGO_PATHS += "${WORKDIR}/mio-uds-windows"
LIC_FILES_CHKSUM=" \
file://../../LICENSE;md5=0f7e3b1308cb5c00b372a6e78835732d \
file://../../THIRDPARTYNOTICES;md5=f6eb6a0e0dc283b6dcd2c59e141dd385 \
"
SUMMARY = "The IoT Edge Security Daemon"
HOMEPAGE = "https://github.com/azure/iotedge"
LICENSE = "MIT"
include iotedge-daemon-${PV}.inc
include iotedge-daemon.inc

Просмотреть файл

@ -1,230 +0,0 @@
# Auto-Generated by cargo-bitbake 0.3.10
#
inherit cargo
SRC_URI += "gitsm://github.com/azure/iotedge.git;protocol=https;branch=release/1.0.7"
SRCREV = "f455ae2cd66db716c4bd8e7aaa7984ce092481c0"
S = "${WORKDIR}/git/edgelet/iotedged"
CARGO_SRC_DIR="iotedged"
SRC_URI += " \
crate://crates.io/aho-corasick/0.5.3 \
crate://crates.io/aho-corasick/0.6.4 \
crate://crates.io/ansi_term/0.11.0 \
crate://crates.io/argon2rs/0.2.5 \
crate://crates.io/arrayref/0.3.4 \
crate://crates.io/arrayvec/0.4.7 \
crate://crates.io/atty/0.2.10 \
crate://crates.io/backtrace-sys/0.1.16 \
crate://crates.io/backtrace/0.3.6 \
crate://crates.io/base64/0.9.1 \
crate://crates.io/bitflags/1.0.3 \
crate://crates.io/blake2-rfc/0.2.18 \
crate://crates.io/block-buffer/0.3.3 \
crate://crates.io/byte-tools/0.2.0 \
crate://crates.io/byteorder/1.2.2 \
crate://crates.io/bytes/0.4.8 \
crate://crates.io/cc/1.0.15 \
crate://crates.io/cfg-if/0.1.2 \
crate://crates.io/chrono-humanize/0.0.11 \
crate://crates.io/chrono/0.4.2 \
crate://crates.io/clap/2.31.2 \
crate://crates.io/cloudabi/0.0.3 \
crate://crates.io/cmake/0.1.30 \
crate://crates.io/config/0.8.0 \
crate://crates.io/consistenttime/0.2.0 \
crate://crates.io/constant_time_eq/0.1.3 \
crate://crates.io/core-foundation-sys/0.5.1 \
crate://crates.io/core-foundation/0.5.1 \
crate://crates.io/crossbeam-deque/0.6.1 \
crate://crates.io/crossbeam-epoch/0.5.2 \
crate://crates.io/crossbeam-utils/0.5.0 \
crate://crates.io/crypto-mac/0.5.2 \
crate://crates.io/digest/0.7.2 \
crate://crates.io/dirs/1.0.4 \
crate://crates.io/dtoa/0.4.2 \
crate://crates.io/env_logger/0.5.9 \
crate://crates.io/error-chain/0.11.0 \
crate://crates.io/failure/0.1.2 \
crate://crates.io/failure_derive/0.1.2 \
crate://crates.io/fake-simd/0.1.2 \
crate://crates.io/fnv/1.0.6 \
crate://crates.io/foreign-types-shared/0.1.1 \
crate://crates.io/foreign-types/0.3.2 \
crate://crates.io/fuchsia-zircon-sys/0.3.3 \
crate://crates.io/fuchsia-zircon/0.3.3 \
crate://crates.io/futures-cpupool/0.1.8 \
crate://crates.io/futures/0.1.24 \
crate://crates.io/generic-array/0.9.0 \
crate://crates.io/h2/0.1.12 \
crate://crates.io/hex/0.3.2 \
crate://crates.io/hmac/0.5.0 \
crate://crates.io/http/0.1.14 \
crate://crates.io/httparse/1.2.4 \
crate://crates.io/humantime/1.1.1 \
crate://crates.io/hyper-proxy/0.5.0 \
crate://crates.io/hyper-tls/0.3.0 \
crate://crates.io/hyper/0.12.17 \
crate://crates.io/hyperlocal/0.6.0 \
crate://crates.io/idna/0.1.4 \
crate://crates.io/indexmap/1.0.1 \
crate://crates.io/iovec/0.1.2 \
crate://crates.io/itoa/0.4.1 \
crate://crates.io/k8s-openapi/0.3.0 \
crate://crates.io/kernel32-sys/0.2.2 \
crate://crates.io/lazy_static/0.2.11 \
crate://crates.io/lazy_static/1.0.0 \
crate://crates.io/lazycell/0.6.0 \
crate://crates.io/lazycell/1.2.0 \
crate://crates.io/libc/0.2.42 \
crate://crates.io/linked-hash-map/0.3.0 \
crate://crates.io/linked-hash-map/0.5.1 \
crate://crates.io/log/0.4.5 \
crate://crates.io/matches/0.1.6 \
crate://crates.io/memchr/0.1.11 \
crate://crates.io/memchr/1.0.2 \
crate://crates.io/memchr/2.0.1 \
crate://crates.io/memoffset/0.2.1 \
crate://crates.io/mime/0.3.5 \
crate://crates.io/mio-named-pipes/0.1.6 \
crate://crates.io/mio-uds/0.6.7 \
crate://crates.io/mio/0.6.14 \
crate://crates.io/miow/0.2.1 \
crate://crates.io/miow/0.3.1 \
crate://crates.io/native-tls/0.2.1 \
crate://crates.io/net2/0.2.32 \
crate://crates.io/nix/0.11.0 \
crate://crates.io/nodrop/0.1.12 \
crate://crates.io/nom/3.2.1 \
crate://crates.io/num-integer/0.1.36 \
crate://crates.io/num-traits/0.1.43 \
crate://crates.io/num-traits/0.2.2 \
crate://crates.io/num_cpus/1.8.0 \
crate://crates.io/openssl-probe/0.1.2 \
crate://crates.io/openssl-sys/0.9.36 \
crate://crates.io/openssl/0.10.12 \
crate://crates.io/percent-encoding/1.0.1 \
crate://crates.io/pkg-config/0.3.11 \
crate://crates.io/proc-macro2/0.3.8 \
crate://crates.io/proc-macro2/0.4.19 \
crate://crates.io/quick-error/1.2.1 \
crate://crates.io/quote/0.5.2 \
crate://crates.io/quote/0.6.8 \
crate://crates.io/rand/0.4.2 \
crate://crates.io/rand/0.5.4 \
crate://crates.io/rand_core/0.2.1 \
crate://crates.io/redox_syscall/0.1.37 \
crate://crates.io/redox_termios/0.1.1 \
crate://crates.io/redox_users/0.2.0 \
crate://crates.io/regex-syntax/0.3.9 \
crate://crates.io/regex-syntax/0.5.6 \
crate://crates.io/regex/0.1.80 \
crate://crates.io/regex/0.2.11 \
crate://crates.io/remove_dir_all/0.5.1 \
crate://crates.io/rustc-demangle/0.1.7 \
crate://crates.io/safemem/0.2.0 \
crate://crates.io/schannel/0.1.13 \
crate://crates.io/scoped_threadpool/0.1.9 \
crate://crates.io/scopeguard/0.3.3 \
crate://crates.io/security-framework-sys/0.2.1 \
crate://crates.io/security-framework/0.2.1 \
crate://crates.io/serde-hjson/0.8.1 \
crate://crates.io/serde/0.8.23 \
crate://crates.io/serde/1.0.84 \
crate://crates.io/serde_derive/1.0.43 \
crate://crates.io/serde_derive_internals/0.23.1 \
crate://crates.io/serde_json/1.0.17 \
crate://crates.io/serde_test/0.8.23 \
crate://crates.io/serde_yaml/0.7.4 \
crate://crates.io/serde_yaml/0.8.8 \
crate://crates.io/sha2/0.7.1 \
crate://crates.io/slab/0.4.1 \
crate://crates.io/socket2/0.3.5 \
crate://crates.io/string/0.1.1 \
crate://crates.io/strsim/0.7.0 \
crate://crates.io/syn/0.13.4 \
crate://crates.io/syn/0.14.9 \
crate://crates.io/synstructure/0.9.0 \
crate://crates.io/tabwriter/1.0.4 \
crate://crates.io/tempdir/0.3.7 \
crate://crates.io/tempfile/3.0.3 \
crate://crates.io/termcolor/0.3.6 \
crate://crates.io/termion/1.5.1 \
crate://crates.io/textwrap/0.9.0 \
crate://crates.io/thread-id/2.0.0 \
crate://crates.io/thread_local/0.2.7 \
crate://crates.io/thread_local/0.3.5 \
crate://crates.io/time/0.1.39 \
crate://crates.io/tokio-codec/0.1.0 \
crate://crates.io/tokio-current-thread/0.1.3 \
crate://crates.io/tokio-executor/0.1.5 \
crate://crates.io/tokio-fs/0.1.3 \
crate://crates.io/tokio-io/0.1.8 \
crate://crates.io/tokio-reactor/0.1.1 \
crate://crates.io/tokio-signal/0.2.5 \
crate://crates.io/tokio-tcp/0.1.0 \
crate://crates.io/tokio-threadpool/0.1.6 \
crate://crates.io/tokio-timer/0.2.6 \
crate://crates.io/tokio-tls/0.2.0 \
crate://crates.io/tokio-udp/0.1.0 \
crate://crates.io/tokio-uds/0.2.2 \
crate://crates.io/tokio/0.1.11 \
crate://crates.io/toml/0.4.6 \
crate://crates.io/try-lock/0.2.2 \
crate://crates.io/typed-headers/0.1.0 \
crate://crates.io/typenum/1.10.0 \
crate://crates.io/ucd-util/0.1.1 \
crate://crates.io/unicase/2.1.0 \
crate://crates.io/unicode-bidi/0.3.4 \
crate://crates.io/unicode-normalization/0.1.5 \
crate://crates.io/unicode-width/0.1.4 \
crate://crates.io/unicode-xid/0.1.0 \
crate://crates.io/unreachable/1.0.0 \
crate://crates.io/url/1.7.0 \
crate://crates.io/url_serde/0.2.0 \
crate://crates.io/utf8-ranges/0.1.3 \
crate://crates.io/utf8-ranges/1.0.0 \
crate://crates.io/vcpkg/0.2.3 \
crate://crates.io/vec_map/0.8.0 \
crate://crates.io/version-compare/0.0.6 \
crate://crates.io/version_check/0.1.3 \
crate://crates.io/void/1.0.2 \
crate://crates.io/want/0.0.6 \
crate://crates.io/widestring/0.3.0 \
crate://crates.io/winapi-build/0.1.1 \
crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi/0.2.8 \
crate://crates.io/winapi/0.3.5 \
crate://crates.io/wincolor/0.1.6 \
crate://crates.io/windows-service/0.1.0 \
crate://crates.io/winreg/0.5.1 \
crate://crates.io/ws2_32-sys/0.2.1 \
crate://crates.io/yaml-rust/0.4.0 \
git://github.com/Azure/hyperlocal-windows;protocol=https;name=hyperlocal-windows;destsuffix=hyperlocal-windows \
git://github.com/Azure/mio-uds-windows.git;protocol=https;name=mio-uds-windows;destsuffix=mio-uds-windows \
git://github.com/Azure/tokio-uds-windows.git;protocol=https;name=tokio-uds-windows;destsuffix=tokio-uds-windows \
"
SRCREV_FORMAT .= "_hyperlocal-windows"
SRCREV_hyperlocal-windows = "${AUTOREV}"
EXTRA_OECARGO_PATHS += "${WORKDIR}/hyperlocal-windows"
SRCREV_FORMAT .= "_mio-uds-windows"
SRCREV_mio-uds-windows = "${AUTOREV}"
EXTRA_OECARGO_PATHS += "${WORKDIR}/mio-uds-windows"
SRCREV_FORMAT .= "_tokio-uds-windows"
SRCREV_tokio-uds-windows = "${AUTOREV}"
EXTRA_OECARGO_PATHS += "${WORKDIR}/tokio-uds-windows"
LIC_FILES_CHKSUM=" \
file://../../LICENSE;md5=0f7e3b1308cb5c00b372a6e78835732d \
file://../../THIRDPARTYNOTICES;md5=f6eb6a0e0dc283b6dcd2c59e141dd385 \
"
SUMMARY = "The IoT Edge Security Daemon"
HOMEPAGE = "https://github.com/azure/iotedge"
LICENSE = "MIT"
include iotedge-daemon-${PV}.inc
include iotedge-daemon.inc

Просмотреть файл

@ -0,0 +1,14 @@
diff --git a/Cargo.toml b/Cargo.toml
index f936b9044..415655f76 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,7 +15,7 @@ members = [
]
[profile.dev]
-panic = 'abort'
+panic = 'unwind'
[profile.release]
-panic = 'abort'
+panic = 'unwind'

Просмотреть файл

@ -0,0 +1 @@
export VERSION = "1.4.4"

Просмотреть файл

@ -0,0 +1,12 @@
DEPENDS += "openssl aziotctl"
export OPENSSL_DIR = "${STAGING_EXECPREFIXDIR}"
export LIBIOTHSM_NOBUILD="On"
SRC_URI +="file://0001-Change-panic-strategy-to-unwind.patch"
do_install () {
# Binaries
install -d "${D}${bindir}"
install -m 755 "${WORKDIR}/build/target/${TARGET_SYS}/release/iotedge" ${D}${bindir}/iotedge
}

Просмотреть файл

@ -0,0 +1,328 @@
# Auto-Generated by cargo-bitbake 0.3.16
#
inherit cargo
# If this is git based prefer versioned ones if they exist
# DEFAULT_PREFERENCE = "-1"
# how to get iotedge could be as easy as but default to a git checkout:
# SRC_URI += "crate://crates.io/iotedge/0.1.0"
SRC_URI += "git://github.com/Azure/iotedge;protocol=https;nobranch=1"
SRCREV = "7d994d326dffed89cf590b1f2dcf34d779809526"
S = "${WORKDIR}/git/edgelet"
CARGO_SRC_DIR = "iotedge"
# please note if you have entries that do not begin with crate://
# you must change them to how that package can be fetched
SRC_URI += " \
crate://crates.io/adler/1.0.2 \
crate://crates.io/aho-corasick/0.7.18 \
crate://crates.io/android_system_properties/0.1.4 \
crate://crates.io/ansi_term/0.12.1 \
crate://crates.io/anyhow/1.0.62 \
crate://crates.io/async-trait/0.1.57 \
crate://crates.io/atty/0.2.14 \
crate://crates.io/autocfg/1.1.0 \
crate://crates.io/base64/0.13.0 \
crate://crates.io/bitflags/1.3.2 \
crate://crates.io/block-buffer/0.10.2 \
crate://crates.io/bumpalo/3.11.0 \
crate://crates.io/byte-unit/4.0.14 \
crate://crates.io/byteorder/1.4.3 \
crate://crates.io/bytes/1.2.1 \
crate://crates.io/cc/1.0.73 \
crate://crates.io/cfg-if/1.0.0 \
crate://crates.io/chrono-humanize/0.2.2 \
crate://crates.io/chrono/0.4.22 \
crate://crates.io/clap/2.34.0 \
crate://crates.io/config/0.13.2 \
crate://crates.io/core-foundation-sys/0.8.3 \
crate://crates.io/cpufeatures/0.2.4 \
crate://crates.io/crc32fast/1.3.2 \
crate://crates.io/crossbeam-channel/0.5.6 \
crate://crates.io/crossbeam-deque/0.8.2 \
crate://crates.io/crossbeam-epoch/0.9.10 \
crate://crates.io/crossbeam-utils/0.8.11 \
crate://crates.io/crypto-common/0.1.6 \
crate://crates.io/darling/0.14.1 \
crate://crates.io/darling_core/0.14.1 \
crate://crates.io/darling_macro/0.14.1 \
crate://crates.io/digest/0.10.3 \
crate://crates.io/either/1.8.0 \
crate://crates.io/env_logger/0.9.0 \
crate://crates.io/erased-serde/0.3.22 \
crate://crates.io/fastrand/1.8.0 \
crate://crates.io/flate2/1.0.24 \
crate://crates.io/fnv/1.0.7 \
crate://crates.io/foreign-types-shared/0.1.1 \
crate://crates.io/foreign-types/0.3.2 \
crate://crates.io/form_urlencoded/1.0.1 \
crate://crates.io/futures-channel/0.3.23 \
crate://crates.io/futures-core/0.3.23 \
crate://crates.io/futures-executor/0.3.23 \
crate://crates.io/futures-io/0.3.23 \
crate://crates.io/futures-macro/0.3.23 \
crate://crates.io/futures-sink/0.3.23 \
crate://crates.io/futures-task/0.3.23 \
crate://crates.io/futures-util/0.3.23 \
crate://crates.io/futures/0.3.23 \
crate://crates.io/generic-array/0.14.6 \
crate://crates.io/h2/0.3.14 \
crate://crates.io/hashbrown/0.12.3 \
crate://crates.io/headers-core/0.2.0 \
crate://crates.io/headers/0.3.7 \
crate://crates.io/hermit-abi/0.1.19 \
crate://crates.io/hex/0.4.3 \
crate://crates.io/http-body/0.4.5 \
crate://crates.io/http/0.2.8 \
crate://crates.io/httparse/1.7.1 \
crate://crates.io/httpdate/1.0.2 \
crate://crates.io/humantime-serde/1.1.1 \
crate://crates.io/humantime/2.1.0 \
crate://crates.io/hyper-openssl/0.9.2 \
crate://crates.io/hyper-proxy/0.9.1 \
crate://crates.io/hyper/0.14.20 \
crate://crates.io/iana-time-zone/0.1.46 \
crate://crates.io/ident_case/1.0.1 \
crate://crates.io/idna/0.2.3 \
crate://crates.io/indexmap/1.9.1 \
crate://crates.io/instant/0.1.12 \
crate://crates.io/itoa/1.0.3 \
crate://crates.io/js-sys/0.3.59 \
crate://crates.io/lazy_static/1.4.0 \
crate://crates.io/libc/0.2.132 \
crate://crates.io/linked-hash-map/0.5.6 \
crate://crates.io/linked_hash_set/0.1.4 \
crate://crates.io/lock_api/0.4.7 \
crate://crates.io/log/0.4.17 \
crate://crates.io/matches/0.1.9 \
crate://crates.io/memchr/2.5.0 \
crate://crates.io/memoffset/0.6.5 \
crate://crates.io/mime/0.3.16 \
crate://crates.io/minimal-lexical/0.2.1 \
crate://crates.io/miniz_oxide/0.5.3 \
crate://crates.io/mio/0.8.4 \
crate://crates.io/nix/0.24.2 \
crate://crates.io/nom/7.1.1 \
crate://crates.io/ntapi/0.3.7 \
crate://crates.io/num-integer/0.1.45 \
crate://crates.io/num-traits/0.2.15 \
crate://crates.io/num_cpus/1.13.1 \
crate://crates.io/num_threads/0.1.6 \
crate://crates.io/once_cell/1.13.1 \
crate://crates.io/openssl-errors/0.1.0 \
crate://crates.io/openssl-macros/0.1.0 \
crate://crates.io/openssl-sys/0.9.75 \
crate://crates.io/openssl/0.10.41 \
crate://crates.io/parking_lot/0.12.1 \
crate://crates.io/parking_lot_core/0.9.3 \
crate://crates.io/pathdiff/0.2.1 \
crate://crates.io/percent-encoding/2.1.0 \
crate://crates.io/pin-project-lite/0.2.9 \
crate://crates.io/pin-utils/0.1.0 \
crate://crates.io/pkg-config/0.3.25 \
crate://crates.io/proc-macro-error-attr/1.0.4 \
crate://crates.io/proc-macro-error/1.0.4 \
crate://crates.io/proc-macro2/1.0.43 \
crate://crates.io/quote/1.0.21 \
crate://crates.io/rayon-core/1.9.3 \
crate://crates.io/rayon/1.5.3 \
crate://crates.io/redox_syscall/0.2.16 \
crate://crates.io/regex-syntax/0.6.27 \
crate://crates.io/regex/1.6.0 \
crate://crates.io/remove_dir_all/0.5.3 \
crate://crates.io/rustversion/1.0.9 \
crate://crates.io/ryu/1.0.11 \
crate://crates.io/scopeguard/1.1.0 \
crate://crates.io/serde/1.0.144 \
crate://crates.io/serde_derive/1.0.144 \
crate://crates.io/serde_json/1.0.85 \
crate://crates.io/serde_with/2.0.0 \
crate://crates.io/serde_with_macros/2.0.0 \
crate://crates.io/serial_test/0.8.0 \
crate://crates.io/serial_test_derive/0.8.0 \
crate://crates.io/sha-1/0.10.0 \
crate://crates.io/sha2/0.10.2 \
crate://crates.io/signal-hook-registry/1.4.0 \
crate://crates.io/slab/0.4.7 \
crate://crates.io/smallvec/1.9.0 \
crate://crates.io/socket2/0.4.4 \
crate://crates.io/strsim/0.10.0 \
crate://crates.io/strsim/0.8.0 \
crate://crates.io/syn/1.0.99 \
crate://crates.io/sysinfo/0.25.3 \
crate://crates.io/tabwriter/1.2.1 \
crate://crates.io/tempfile/3.3.0 \
crate://crates.io/termcolor/1.1.3 \
crate://crates.io/test-case-macros/2.2.1 \
crate://crates.io/test-case/2.2.1 \
crate://crates.io/textwrap/0.11.0 \
crate://crates.io/thiserror-impl/1.0.32 \
crate://crates.io/thiserror/1.0.32 \
crate://crates.io/time/0.1.44 \
crate://crates.io/time/0.3.13 \
crate://crates.io/tinyvec/1.6.0 \
crate://crates.io/tinyvec_macros/0.1.0 \
crate://crates.io/tokio-macros/1.8.0 \
crate://crates.io/tokio-openssl/0.6.3 \
crate://crates.io/tokio-util/0.7.3 \
crate://crates.io/tokio/1.20.1 \
crate://crates.io/toml/0.5.9 \
crate://crates.io/tower-layer/0.3.1 \
crate://crates.io/tower-service/0.3.2 \
crate://crates.io/tracing-attributes/0.1.22 \
crate://crates.io/tracing-core/0.1.29 \
crate://crates.io/tracing/0.1.36 \
crate://crates.io/try-lock/0.2.3 \
crate://crates.io/typenum/1.15.0 \
crate://crates.io/unicode-bidi/0.3.8 \
crate://crates.io/unicode-ident/1.0.3 \
crate://crates.io/unicode-normalization/0.1.21 \
crate://crates.io/unicode-width/0.1.9 \
crate://crates.io/url/2.2.2 \
crate://crates.io/utf8-width/0.1.6 \
crate://crates.io/vcpkg/0.2.15 \
crate://crates.io/vec_map/0.8.2 \
crate://crates.io/version_check/0.9.4 \
crate://crates.io/want/0.3.0 \
crate://crates.io/wasi/0.10.0+wasi-snapshot-preview1 \
crate://crates.io/wasi/0.11.0+wasi-snapshot-preview1 \
crate://crates.io/wasm-bindgen-backend/0.2.82 \
crate://crates.io/wasm-bindgen-macro-support/0.2.82 \
crate://crates.io/wasm-bindgen-macro/0.2.82 \
crate://crates.io/wasm-bindgen-shared/0.2.82 \
crate://crates.io/wasm-bindgen/0.2.82 \
crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi-util/0.1.5 \
crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi/0.3.9 \
crate://crates.io/windows-sys/0.36.1 \
crate://crates.io/windows_aarch64_msvc/0.36.1 \
crate://crates.io/windows_i686_gnu/0.36.1 \
crate://crates.io/windows_i686_msvc/0.36.1 \
crate://crates.io/windows_x86_64_gnu/0.36.1 \
crate://crates.io/windows_x86_64_msvc/0.36.1 \
crate://crates.io/yaml-rust/0.4.5 \
crate://crates.io/zip/0.6.2 \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-cert-client-async;destsuffix=aziot-cert-client-async \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-cert-common-http;destsuffix=aziot-cert-common-http \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-certd-config;destsuffix=aziot-certd-config \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-identity-client-async;destsuffix=aziot-identity-client-async \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-identity-common-http;destsuffix=aziot-identity-common-http \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-identity-common;destsuffix=aziot-identity-common \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-identityd-config;destsuffix=aziot-identityd-config \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-key-client-async;destsuffix=aziot-key-client-async \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-key-client;destsuffix=aziot-key-client \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-key-common-http;destsuffix=aziot-key-common-http \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-key-common;destsuffix=aziot-key-common \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-key-openssl-engine;destsuffix=aziot-key-openssl-engine \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-keyd-config;destsuffix=aziot-keyd-config \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-keys-common;destsuffix=aziot-keys-common \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziot-tpmd-config;destsuffix=aziot-tpmd-config \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=aziotctl-common;destsuffix=aziotctl-common \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=cert-renewal;destsuffix=cert-renewal \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=config-common;destsuffix=config-common \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=http-common;destsuffix=http-common \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=logger;destsuffix=logger \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=openssl-build;destsuffix=openssl-build \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=openssl-sys2;destsuffix=openssl-sys2 \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=openssl2;destsuffix=openssl2 \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=pkcs11-sys;destsuffix=pkcs11-sys \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=pkcs11;destsuffix=pkcs11 \
git://github.com/Azure/iot-identity-service;protocol=https;nobranch=1;name=test-common;destsuffix=test-common \
"
SRCREV_FORMAT .= "_aziot-cert-client-async"
SRCREV_aziot-cert-client-async = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-cert-client-async"
SRCREV_FORMAT .= "_aziot-cert-common-http"
SRCREV_aziot-cert-common-http = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-cert-common-http"
SRCREV_FORMAT .= "_aziot-certd-config"
SRCREV_aziot-certd-config = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-certd-config"
SRCREV_FORMAT .= "_aziot-identity-client-async"
SRCREV_aziot-identity-client-async = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-identity-client-async"
SRCREV_FORMAT .= "_aziot-identity-common"
SRCREV_aziot-identity-common = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-identity-common"
SRCREV_FORMAT .= "_aziot-identity-common-http"
SRCREV_aziot-identity-common-http = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-identity-common-http"
SRCREV_FORMAT .= "_aziot-identityd-config"
SRCREV_aziot-identityd-config = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-identityd-config"
SRCREV_FORMAT .= "_aziot-key-client"
SRCREV_aziot-key-client = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-key-client"
SRCREV_FORMAT .= "_aziot-key-client-async"
SRCREV_aziot-key-client-async = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-key-client-async"
SRCREV_FORMAT .= "_aziot-key-common"
SRCREV_aziot-key-common = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-key-common"
SRCREV_FORMAT .= "_aziot-key-common-http"
SRCREV_aziot-key-common-http = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-key-common-http"
SRCREV_FORMAT .= "_aziot-key-openssl-engine"
SRCREV_aziot-key-openssl-engine = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-key-openssl-engine"
SRCREV_FORMAT .= "_aziot-keyd-config"
SRCREV_aziot-keyd-config = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-keyd-config"
SRCREV_FORMAT .= "_aziot-keys-common"
SRCREV_aziot-keys-common = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-keys-common"
SRCREV_FORMAT .= "_aziot-tpmd-config"
SRCREV_aziot-tpmd-config = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziot-tpmd-config"
SRCREV_FORMAT .= "_aziotctl-common"
SRCREV_aziotctl-common = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/aziotctl-common"
SRCREV_FORMAT .= "_cert-renewal"
SRCREV_cert-renewal = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/cert-renewal"
SRCREV_FORMAT .= "_config-common"
SRCREV_config-common = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/config-common"
SRCREV_FORMAT .= "_http-common"
SRCREV_http-common = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/http-common"
SRCREV_FORMAT .= "_logger"
SRCREV_logger = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/logger"
SRCREV_FORMAT .= "_openssl-build"
SRCREV_openssl-build = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/openssl-build"
SRCREV_FORMAT .= "_openssl-sys2"
SRCREV_openssl-sys2 = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/openssl-sys2"
SRCREV_FORMAT .= "_openssl2"
SRCREV_openssl2 = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/openssl2"
SRCREV_FORMAT .= "_pkcs11"
SRCREV_pkcs11 = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/pkcs11"
SRCREV_FORMAT .= "_pkcs11-sys"
SRCREV_pkcs11-sys = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/pkcs11-sys"
SRCREV_FORMAT .= "_test-common"
SRCREV_test-common = "release/1.4"
EXTRA_OECARGO_PATHS += "${WORKDIR}/test-common"
LIC_FILES_CHKSUM=" \
file://../LICENSE;md5=0f7e3b1308cb5c00b372a6e78835732d \
file://../THIRDPARTYNOTICES;md5=11604c6170b98c376be25d0ca6989d9b \
"
SUMMARY = "The iotedge tool is used to manage the IoT Edge runtime."
HOMEPAGE = "https://aka.ms/iotedge"
LICENSE = "MIT"
# includes this file if it exists but does not fail
# this is useful for anything you may want to override from
# what cargo-bitbake generates.
include iotedge-${PV}.inc
include iotedge.inc

Просмотреть файл

@ -1,18 +0,0 @@
DESCRIPTION = "Standard mode libiothsm implementation for Azure IoT Edge"
LICENSE = "MIT"
LIC_FILES_CHKSUM=" \
file://LICENSE;md5=b98fddd052bb2f5ddbcdbd417ffb26a8 \
"
SRC_URI += "gitsm://github.com/azure/iotedge.git;protocol=https"
SRCREV = "d76e0316c6f324345d77c48a83ce836d09392699"
S = "${WORKDIR}/git/edgelet/hsm-sys/azure-iot-hsm-c"
DEPENDS += "openssl10"
PROVIDES += "virtual/libiothsm"
RPROVIDES_${PN} += "virtual/libiothsm"
EXTRA_OECMAKE += "-DBUILD_SHARED=On -Duse_emulator=Off -Duse_http=Off -Duse_default_uuid=On"
inherit cmake

Просмотреть файл

@ -1,18 +0,0 @@
DESCRIPTION = "Standard mode libiothsm implementation for Azure IoT Edge"
LICENSE = "MIT"
LIC_FILES_CHKSUM=" \
file://LICENSE;md5=b98fddd052bb2f5ddbcdbd417ffb26a8 \
"
SRC_URI += "gitsm://github.com/azure/iotedge.git;protocol=https;branch=release/1.0.6"
SRCREV = "3fa6cbef8b7fc3c55a49a622735eb1021b8a5963"
S = "${WORKDIR}/git/edgelet/hsm-sys/azure-iot-hsm-c"
DEPENDS += "openssl10"
PROVIDES += "virtual/libiothsm"
RPROVIDES_${PN} += "virtual/libiothsm"
EXTRA_OECMAKE += "-DBUILD_SHARED=On -Duse_emulator=Off -Duse_http=Off -Duse_default_uuid=On -DCMAKE_SYSTEM_VERSION=10"
inherit cmake

Просмотреть файл

@ -1,19 +0,0 @@
DESCRIPTION = "Standard mode libiothsm implementation for Azure IoT Edge"
LICENSE = "MIT"
LIC_FILES_CHKSUM=" \
file://LICENSE;md5=b98fddd052bb2f5ddbcdbd417ffb26a8 \
"
SRC_URI += "gitsm://github.com/azure/iotedge.git;protocol=https;branch=release/1.0.7"
SRCREV = "f455ae2cd66db716c4bd8e7aaa7984ce092481c0"
S = "${WORKDIR}/git/edgelet/hsm-sys/azure-iot-hsm-c"
DEPENDS += "openssl10"
PROVIDES += "virtual/libiothsm"
RPROVIDES_${PN} += "virtual/libiothsm"
EXTRA_OECMAKE += "-DBUILD_SHARED=On -Duse_emulator=Off -Duse_http=Off -Duse_default_uuid=On -DCMAKE_SYSTEM_VERSION=10"
inherit cmake

Просмотреть файл

@ -0,0 +1,3 @@
unset OPENSSL_SYS_USE_PKG_CONFIG
unset TSS2_MU_USE_PKG_CONFIG
unset TSS2_RC_USE_PKG_CONFIG

17
scripts/bitbake.sh Executable file
Просмотреть файл

@ -0,0 +1,17 @@
#!/bin/bash
#
# Simple script to set up our build environment and bitbake the desired targets.
#
set -x
# This file should be in the "<repo>/scripts" directory. We put all relevant sources in "<repo>/poky",
# This finds "<repo>"
SCRIPT_DIR=$(dirname $0)
DIR=${SCRIPT_DIR%/scripts}
# build targets
targets=$@
source ${DIR}/poky/oe-init-build-env build
bitbake ${targets}

Просмотреть файл

@ -5,8 +5,8 @@ export MACHINE="${MACHINE-qemux86-64}"
# What to build
BUILD_TARGETS="\
iotedge-cli \
iotedge-daemon \
iotedge \
aziot-edged \
"
die() {
@ -17,5 +17,5 @@ die() {
rm -f build/conf/bblayers.conf || die "failed to nuke bblayers.conf"
rm -f build/conf/local.conf || die "failed to nuke local.conf"
./scripts/containerize.sh bitbake ${BUILD_TARGETS} || die "failed to build"
./scripts/containerize.sh ./scripts/bitbake.sh ${BUILD_TARGETS} || die "failed to build"

Просмотреть файл

@ -1,7 +1,7 @@
#!/bin/bash
# what container are we using to build this
CONTAINER="cardoe/yocto:pyro"
CONTAINER="crops/poky:ubuntu-20.04"
einfo() {
echo "$*" >&2
@ -46,7 +46,8 @@ exec docker run \
-e MACHINE=${MACHINE:-qemux86-64} \
${SSH_AUTH_SOCK:+-e SSH_AUTH_SOCK="/tmp/ssh-agent/${SSH_AUTH_NAME}"} \
-v ${HOME}/.ssh:/var/build/.ssh \
-v "${PWD}":/var/build:rw \
-v ${PWD}:/var/build:rw \
--workdir=/var/build \
${SSH_AUTH_SOCK:+-v "${SSH_AUTH_DIR}":/tmp/ssh-agent} \
${EXTRA_CONTAINER_ARGS} \
-${termint}i --rm -- \

Просмотреть файл

@ -8,8 +8,8 @@ fi
branch=${1-master}
# the repos we want to check out, must setup variables below
# NOTE: poky must remain first
REPOS="poky metaoe metarust metavirt"
# NOTE: poky must remain first.
REPOS="poky metaoe metarust metavirt metasecurity metaclang"
POKY_URI="git://git.yoctoproject.org/poky.git"
POKY_PATH="poky"
@ -27,6 +27,14 @@ METAVIRT_URI="git://git.yoctoproject.org/meta-virtualization"
METAVIRT_PATH="poky/meta-virtualization"
METAVIRT_REV="${METAVIRT_REV-refs/remotes/origin/${branch}}"
METASECURITY_URI="git://git.yoctoproject.org/meta-security"
METASECURITY_PATH="poky/meta-security"
METASECURITY_REV="${METASECURITY_REV-refs/remotes/origin/${branch}}"
METACLANG_URI="https://github.com/kraj/meta-clang"
METACLANG_PATH="poky/meta-clang"
METACLANG_REV="${METACLANG_REV-refs/remotes/origin/${branch}}"
METAIOTEDGE_URI="."
METAIOTEDGE_PATH="poky/meta-iotedge"