diff --git a/layers/meta-belden-coreos/recipes-support/coreos/coreos-swupdate-helper.inc b/layers/meta-belden-coreos/recipes-support/coreos/coreos-swupdate-helper.inc new file mode 100644 index 0000000..4eb1e41 --- /dev/null +++ b/layers/meta-belden-coreos/recipes-support/coreos/coreos-swupdate-helper.inc @@ -0,0 +1,8 @@ +# libudev (from systemd) and pkgconfig are needed +DEPENDS += "pkgconfig-native systemd" + +# Install all the configuration files to /etc/coreos-swupdate-helper +do_install:append() { + install -d ${D}/${sysconfdir}/coreos-swupdate-helper + install -m 0644 ${S}/config/* ${D}/${sysconfdir}/coreos-swupdate-helper +} diff --git a/layers/meta-belden-coreos/recipes-support/coreos/coreos-swupdate-helper_0.1.0.bb b/layers/meta-belden-coreos/recipes-support/coreos/coreos-swupdate-helper_0.1.0.bb new file mode 100644 index 0000000..ed1e675 --- /dev/null +++ b/layers/meta-belden-coreos/recipes-support/coreos/coreos-swupdate-helper_0.1.0.bb @@ -0,0 +1,99 @@ +# 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 coreos-swupdate-helper could be as easy as but default to a git checkout: +# SRC_URI += "crate://crates.io/coreos-swupdate-helper/0.1.0" +SRC_URI += "git://git@bitbucket.gad.local:7999/ico/coreos-swupdate-helper.git;protocol=ssh;branch=main" +SRCREV = "77caf94a18c7cb6b41f0b85acf661c49f27c068b" +S = "${WORKDIR}/git" +CARGO_SRC_DIR = "" +PV:append = ".AUTOINC+77caf94a18" + +# 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/aho-corasick/1.0.1 \ + crate://crates.io/anstream/0.3.2 \ + crate://crates.io/anstyle-parse/0.2.0 \ + crate://crates.io/anstyle-query/1.0.0 \ + crate://crates.io/anstyle-wincon/1.0.1 \ + crate://crates.io/anstyle/1.0.0 \ + crate://crates.io/anyhow/1.0.71 \ + crate://crates.io/async-trait/0.1.68 \ + crate://crates.io/bitflags/1.3.2 \ + crate://crates.io/cc/1.0.79 \ + crate://crates.io/cfg-if/1.0.0 \ + crate://crates.io/clap-verbosity-flag/2.0.1 \ + crate://crates.io/clap/4.2.7 \ + crate://crates.io/clap_builder/4.2.7 \ + crate://crates.io/clap_derive/4.2.0 \ + crate://crates.io/clap_lex/0.4.1 \ + crate://crates.io/colorchoice/1.0.0 \ + crate://crates.io/config/0.13.3 \ + crate://crates.io/env_logger/0.10.0 \ + crate://crates.io/errno-dragonfly/0.1.2 \ + crate://crates.io/errno/0.3.1 \ + crate://crates.io/heck/0.4.1 \ + crate://crates.io/hermit-abi/0.3.1 \ + crate://crates.io/humantime/2.1.0 \ + crate://crates.io/io-lifetimes/1.0.10 \ + crate://crates.io/is-terminal/0.4.7 \ + crate://crates.io/lazy_static/1.4.0 \ + crate://crates.io/libc/0.2.144 \ + crate://crates.io/libudev-sys/0.1.4 \ + crate://crates.io/linux-raw-sys/0.3.7 \ + crate://crates.io/log/0.4.17 \ + crate://crates.io/memchr/2.5.0 \ + crate://crates.io/minimal-lexical/0.2.1 \ + crate://crates.io/nom/7.1.3 \ + crate://crates.io/once_cell/1.17.1 \ + crate://crates.io/pathdiff/0.2.1 \ + crate://crates.io/pkg-config/0.3.27 \ + crate://crates.io/proc-macro2/1.0.56 \ + crate://crates.io/quote/1.0.26 \ + crate://crates.io/regex-syntax/0.7.1 \ + crate://crates.io/regex/1.8.1 \ + crate://crates.io/rustix/0.37.19 \ + crate://crates.io/serde/1.0.162 \ + crate://crates.io/serde_derive/1.0.162 \ + crate://crates.io/strsim/0.10.0 \ + crate://crates.io/syn/2.0.15 \ + crate://crates.io/termcolor/1.2.0 \ + crate://crates.io/toml/0.5.11 \ + crate://crates.io/udev/0.7.0 \ + crate://crates.io/unicode-ident/1.0.8 \ + crate://crates.io/utf8parse/0.2.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.3.9 \ + crate://crates.io/windows-sys/0.48.0 \ + crate://crates.io/windows-targets/0.48.0 \ + crate://crates.io/windows_aarch64_gnullvm/0.48.0 \ + crate://crates.io/windows_aarch64_msvc/0.48.0 \ + crate://crates.io/windows_i686_gnu/0.48.0 \ + crate://crates.io/windows_i686_msvc/0.48.0 \ + crate://crates.io/windows_x86_64_gnu/0.48.0 \ + crate://crates.io/windows_x86_64_gnullvm/0.48.0 \ + crate://crates.io/windows_x86_64_msvc/0.48.0 \ +" + + + +# FIXME: update generateme with the real MD5 of the license file +LIC_FILES_CHKSUM = " \ + " + +SUMMARY = "Helper script for SWUpdate on CoreOS" +HOMEPAGE = "ssh://git@bitbucket.gad.local:7999/ico/coreos-swupdate-helper.git" +LICENSE = "CLOSED" + +# 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 coreos-swupdate-helper-${PV}.inc +include coreos-swupdate-helper.inc