local-build: make kernel parameters configurable

This is to make kernel parameters configurable during the secure image build by adding an environment variable SE_KERNEL_PARAMS.

Signed-off-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
This commit is contained in:
Hyounggyu Choi
2023-06-07 21:53:48 +02:00
parent 9ceb2c27e0
commit 52bdc87fe9
2 changed files with 2 additions and 1 deletions

View File

@@ -119,7 +119,7 @@ build_image() {
popd popd
protimg_source_dir="${image_source_dir}${prefix}/share/kata-containers" protimg_source_dir="${image_source_dir}${prefix}/share/kata-containers"
local kernel_params="" local kernel_params="${SE_KERNEL_PARAMS:-}"
if ! build_secure_image "${kernel_params}" "${protimg_source_dir}" "${install_dir}"; then if ! build_secure_image "${kernel_params}" "${protimg_source_dir}" "${install_dir}"; then
usage 1 usage 1
fi fi

View File

@@ -122,6 +122,7 @@ docker run \
--env USE_CACHE="${USE_CACHE}" \ --env USE_CACHE="${USE_CACHE}" \
--env AA_KBC="${AA_KBC:-}" \ --env AA_KBC="${AA_KBC:-}" \
--env HKD_PATH="$(realpath "${HKD_PATH:-}" 2> /dev/null || true)" \ --env HKD_PATH="$(realpath "${HKD_PATH:-}" 2> /dev/null || true)" \
--env SE_KERNEL_PARAMS="${SE_KERNEL_PARAMS:-}" \
--env CROSS_BUILD="${CROSS_BUILD}" \ --env CROSS_BUILD="${CROSS_BUILD}" \
--env TARGET_ARCH="${TARGET_ARCH}" \ --env TARGET_ARCH="${TARGET_ARCH}" \
--env ARCH="${ARCH}" \ --env ARCH="${ARCH}" \