mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-23 18:21:27 +00:00
Merge pull request #7351 from fitzthum/fix-offload
local-build: always use DEFSERVICEOFFLOAD for CoCo
This commit is contained in:
commit
6f2c95a2ea
@ -392,8 +392,8 @@ install_cc_shimv2() {
|
|||||||
export RUST_VERSION
|
export RUST_VERSION
|
||||||
export REMOVE_VMM_CONFIGS="acrn fc"
|
export REMOVE_VMM_CONFIGS="acrn fc"
|
||||||
|
|
||||||
if [ "${MEASURED_ROOTFS}" == "yes" ]; then
|
|
||||||
extra_opts="DEFSERVICEOFFLOAD=true"
|
extra_opts="DEFSERVICEOFFLOAD=true"
|
||||||
|
if [ "${MEASURED_ROOTFS}" == "yes" ]; then
|
||||||
if [ -f "${repo_root_dir}/tools/osbuilder/root_hash_vanilla.txt" ]; then
|
if [ -f "${repo_root_dir}/tools/osbuilder/root_hash_vanilla.txt" ]; then
|
||||||
root_hash=$(sudo sed -e 's/Root hash:\s*//g;t;d' "${repo_root_dir}/tools/osbuilder/root_hash_vanilla.txt")
|
root_hash=$(sudo sed -e 's/Root hash:\s*//g;t;d' "${repo_root_dir}/tools/osbuilder/root_hash_vanilla.txt")
|
||||||
root_measure_config="cc_rootfs_verity.scheme=dm-verity cc_rootfs_verity.hash=${root_hash}"
|
root_measure_config="cc_rootfs_verity.scheme=dm-verity cc_rootfs_verity.hash=${root_hash}"
|
||||||
@ -405,12 +405,9 @@ install_cc_shimv2() {
|
|||||||
root_measure_config="cc_rootfs_verity.scheme=dm-verity cc_rootfs_verity.hash=${root_hash}"
|
root_measure_config="cc_rootfs_verity.scheme=dm-verity cc_rootfs_verity.hash=${root_hash}"
|
||||||
extra_opts+=" ROOTMEASURECONFIGTDX=\"${root_measure_config}\""
|
extra_opts+=" ROOTMEASURECONFIGTDX=\"${root_measure_config}\""
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
info "extra_opts: ${extra_opts}"
|
info "extra_opts: ${extra_opts}"
|
||||||
DESTDIR="${destdir}" PREFIX="${cc_prefix}" EXTRA_OPTS="${extra_opts}" "${shimv2_builder}"
|
DESTDIR="${destdir}" PREFIX="${cc_prefix}" EXTRA_OPTS="${extra_opts}" "${shimv2_builder}"
|
||||||
else
|
|
||||||
DESTDIR="${destdir}" PREFIX="${cc_prefix}" "${shimv2_builder}"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install static CC virtiofsd asset
|
# Install static CC virtiofsd asset
|
||||||
|
Loading…
Reference in New Issue
Block a user