mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-19 16:38:00 +00:00
packaging: Allow building virtiofsd for CC
We're adding a new target for building virtiofsd for CC, but it's important to note that the only difference between this one and the "vanilla" build is the installation path. Moreover, virtiofsd will **NOT** be used by the CC effort, but as the very first release target doesn't include TEE support, let's not force those who want to give it a try to setup devicemapper. Fixes: #4569 Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
b307531c29
commit
186cec6889
@ -84,3 +84,6 @@ cc-rootfs-image-tarball:
|
|||||||
|
|
||||||
cc-shim-v2-tarball:
|
cc-shim-v2-tarball:
|
||||||
${MAKE} $@-build
|
${MAKE} $@-build
|
||||||
|
|
||||||
|
cc-virtiofsd-tarball:
|
||||||
|
${MAKE} $@-build
|
||||||
|
@ -132,6 +132,15 @@ install_cc_shimv2() {
|
|||||||
DESTDIR="${destdir}" PREFIX="${cc_prefix}" EXTRA_OPTS="DEFSERVICEOFFLOAD=true" "${shimv2_builder}"
|
DESTDIR="${destdir}" PREFIX="${cc_prefix}" EXTRA_OPTS="DEFSERVICEOFFLOAD=true" "${shimv2_builder}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Install static CC virtiofsd asset
|
||||||
|
install_cc_virtiofsd() {
|
||||||
|
info "build static CC virtiofsd"
|
||||||
|
"${virtiofsd_builder}"
|
||||||
|
info "Install static CC virtiofsd"
|
||||||
|
mkdir -p "${destdir}/${cc_prefix}/libexec/"
|
||||||
|
sudo install -D --owner root --group root --mode 0744 virtiofsd/virtiofsd "${destdir}/${cc_prefix}/libexec/virtiofsd"
|
||||||
|
}
|
||||||
|
|
||||||
#Install guest image
|
#Install guest image
|
||||||
install_image() {
|
install_image() {
|
||||||
info "Create image"
|
info "Create image"
|
||||||
@ -239,6 +248,8 @@ handle_build() {
|
|||||||
|
|
||||||
cc-shim-v2) install_cc_shimv2 ;;
|
cc-shim-v2) install_cc_shimv2 ;;
|
||||||
|
|
||||||
|
cc-virtiofsd) install_cc_virtiofsd ;;
|
||||||
|
|
||||||
cloud-hypervisor) install_clh ;;
|
cloud-hypervisor) install_clh ;;
|
||||||
|
|
||||||
firecracker) install_firecracker ;;
|
firecracker) install_firecracker ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user