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:
Fabiano Fidêncio 2022-06-30 15:12:53 +02:00
parent b307531c29
commit 186cec6889
2 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -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 ;;