1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
23 fuchsia-zircon-sys-0.3.3
50 percent-encoding-1.0.1
55 pnet_macros_support-0.22.0
72 rustc-serialize-0.3.24
107 winapi-i686-pc-windows-gnu-0.4.0
108 winapi-x86_64-pc-windows-gnu-0.4.0
111 inherit cargo linux-info toolchain-funcs
113 DESCRIPTION="Secure and fast microVMs for serverless computing"
114 HOMEPAGE="https://firecracker-microvm.github.io https://github.com/firecracker-microvm/firecracker"
115 SRC_URI="https://github.com/firecracker-microvm/firecracker/archive/v${PV}.tar.gz -> ${P}.tar.gz
116 $(cargo_crate_uris ${CRATES})"
118 LICENSE="|| ( Apache-2.0 MIT Apache-2.0-with-LLVM-exceptions ) MPL-2.0"
120 KEYWORDS="-* ~amd64 ~x86"
124 BDEPEND="acct-group/kvm"
128 amd64) target_arch=x86_64 ;;
129 x86) target_arch=i686 ;;
135 if ! linux_config_exists; then
136 eerror "Unable to check your kernel for KVM support"
138 CONFIG_CHECK+=" ~KVM_AMD" || \
139 CONFIG_CHECK+=" ~KVM_INTEL"
140 ERROR_KVM="${P} requires KVM in-kernel support."
147 cargo_src_compile --target ${target_arch}-unknown-linux-gnu