diff --git a/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-apps/zram-generator b/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-apps/zram-generator new file mode 100644 index 00000000000..2ca892c2bfe --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-apps/zram-generator @@ -0,0 +1,8 @@ +cros_pre_src_unpack_coreos_unpack() { + local _COREOS_CARGO_SKIP_INHERIT=1 + source "${CROS_ADDONS_TREE}"/../eclass/coreos-cargo.eclass + src_unpack() { + einfo "Running coreos-cargo_src_unpack" + coreos-cargo_src_unpack + } +} diff --git a/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-block/thin-provisioning-tools b/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-block/thin-provisioning-tools new file mode 100644 index 00000000000..e2b17a56774 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-block/thin-provisioning-tools @@ -0,0 +1,16 @@ +cros_pre_src_unpack_coreos_unpack() { + local _COREOS_CARGO_SKIP_INHERIT=1 + source "${CROS_ADDONS_TREE}"/../eclass/coreos-cargo.eclass + src_unpack() { + einfo "Running coreos-cargo_src_unpack" + coreos-cargo_src_unpack + } +} + +cros_pre_src_install_rust_cross() { + pushd "${S}" + local rust_target="$(ls -d target/*-unknown-linux-gnu)" + rust_target="${rust_target#target/}" + ln -f target/{"${rust_target}",}/"$(usex debug debug release)/pdata_tools" || die + popd +} diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/coreos-cargo.eclass b/sdk_container/src/third_party/coreos-overlay/eclass/coreos-cargo.eclass index c7076edefb4..405696dc226 100644 --- a/sdk_container/src/third_party/coreos-overlay/eclass/coreos-cargo.eclass +++ b/sdk_container/src/third_party/coreos-overlay/eclass/coreos-cargo.eclass @@ -12,10 +12,12 @@ if [[ -z ${_COREOS_CARGO_ECLASS} ]]; then _COREOS_CARGO_ECLASS=1 # XXX: Don't require host dependencies to also be in the sysroot. -CATEGORY=dev-util PN=cargo inherit cargo -inherit toolchain-funcs +if [[ -z ${_COREOS_CARGO_SKIP_INHERIT} ]]; then + CATEGORY=dev-util PN=cargo inherit cargo + inherit toolchain-funcs -EXPORT_FUNCTIONS src_unpack + EXPORT_FUNCTIONS src_unpack +fi # @FUNCTION: coreos-cargo_src_unpack # @DESCRIPTION: