From d4d178359b4ad4fc790d6ae17e40ea9fbdff8f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Thu, 30 Jun 2022 12:21:10 +0200 Subject: [PATCH] runtime: Expose DEFSERVICEOFFLOAD build option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For the CC build we need to enable such a flag, and the cleaner way to do so is exposing it in the Makefile and, later on, making sure its correct value to the build script. Signed-off-by: Fabiano FidĂȘncio --- src/runtime/Makefile | 4 ++++ src/runtime/config/configuration-clh.toml.in | 2 +- src/runtime/config/configuration-qemu.toml.in | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/runtime/Makefile b/src/runtime/Makefile index 757d0a48a9..871618207f 100644 --- a/src/runtime/Makefile +++ b/src/runtime/Makefile @@ -211,6 +211,9 @@ DEFSTATICRESOURCEMGMT ?= false DEFBINDMOUNTS := [] +# Image Service Offload +DEFSERVICEOFFLOAD ?= false + SED = sed CLI_DIR = cmd @@ -479,6 +482,7 @@ USER_VARS += DEFSTATICRESOURCEMGMT_FC USER_VARS += DEFBINDMOUNTS USER_VARS += DEFVFIOMODE USER_VARS += BUILDFLAGS +USER_VARS += DEFSERVICEOFFLOAD V = @ diff --git a/src/runtime/config/configuration-clh.toml.in b/src/runtime/config/configuration-clh.toml.in index 41d4ae4930..f4c218b3cd 100644 --- a/src/runtime/config/configuration-clh.toml.in +++ b/src/runtime/config/configuration-clh.toml.in @@ -405,7 +405,7 @@ experimental=@DEFAULTEXPFEATURES@ # # Offload the CRI image management service to the Kata agent. # (default: false) -#service_offload = true +service_offload = @DEFSERVICEOFFLOAD@ # Container image decryption keys provisioning. # Applies only if service_offload is true. diff --git a/src/runtime/config/configuration-qemu.toml.in b/src/runtime/config/configuration-qemu.toml.in index 702b71aadd..bdafe0a27e 100644 --- a/src/runtime/config/configuration-qemu.toml.in +++ b/src/runtime/config/configuration-qemu.toml.in @@ -609,7 +609,7 @@ experimental=@DEFAULTEXPFEATURES@ # # Offload the CRI image management service to the Kata agent. # (default: false) -#service_offload = true +service_offload = @DEFSERVICEOFFLOAD@ # Container image decryption keys provisioning. # Applies only if service_offload is true.