From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Bezdeka Subject: [xenomai-images][PATCH 1/6] ci: Introduce kas option file for CI builds Date: Wed, 13 Oct 2021 09:18:19 +0200 Message-Id: <20211013071824.9394-2-florian.bezdeka@siemens.com> In-Reply-To: <20211013071824.9394-1-florian.bezdeka@siemens.com> References: <20211013071824.9394-1-florian.bezdeka@siemens.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain MIME-Version: 1.0 List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org For now the difference between the demo and the "ci image" is: - Removed sshd-regen-keys: Reduces the (first) boot time especially on low end CI hardware. Helps to stay within LAVA timeouts. - Removed expand-on-first-boot: Doesn't make much sense on CI runs as we don't really use the filesystem. Helps to reduce the first boot time a bit. CI builds will now use that file. Signed-off-by: Florian Bezdeka --- ci/gitlab-ci-base.yml | 4 ++-- opt-ci.yml | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 opt-ci.yml diff --git a/ci/gitlab-ci-base.yml b/ci/gitlab-ci-base.yml index 8a1dbfb..26c3f60 100644 --- a/ci/gitlab-ci-base.yml +++ b/ci/gitlab-ci-base.yml @@ -39,8 +39,8 @@ default: stage: build script: - sudo sh -c "echo 'nameserver 8.8.8.8' > /etc/resolv.conf" - - echo "Building kas.yml:board-${TARGET}.yml${XENOMAI_BUILD_OPTION}${LINUX_BUILD_OPTION}${BUILD_OPTIONS}:opt-debug.yml" - - kas build kas.yml:board-${TARGET}.yml${XENOMAI_BUILD_OPTION}${LINUX_BUILD_OPTION}${BUILD_OPTIONS}:opt-debug.yml + - echo "Building kas.yml:board-${TARGET}.yml${XENOMAI_BUILD_OPTION}${LINUX_BUILD_OPTION}${BUILD_OPTIONS}:opt-debug.yml:opt-ci.yml" + - kas build kas.yml:board-${TARGET}.yml${XENOMAI_BUILD_OPTION}${LINUX_BUILD_OPTION}${BUILD_OPTIONS}:opt-debug.yml:opt-ci.yml - if [ -n "${USE_S3_BUCKET}" ]; then scripts/deploy_to_aws.sh ${TARGET}; fi .test: diff --git a/opt-ci.yml b/opt-ci.yml new file mode 100644 index 0000000..6766cb0 --- /dev/null +++ b/opt-ci.yml @@ -0,0 +1,19 @@ +# +# Xenomai Real-Time System +# +# Copyright (c) Siemens AG, 2021 +# +# Authors: +# Florian Bezdeka +# +# SPDX-License-Identifier: MIT +# + +header: + version: 10 + +local_conf_header: + xenomai-ci: | + ROOTFS_POSTPROCESS_COMMAND_remove = "image_postprocess_sshd_key_regen" + IMAGE_INSTALL_remove += "sshd-regen-keys" + IMAGE_INSTALL_remove += "expand-on-first-boot" \ No newline at end of file -- 2.31.1