From patchwork Mon Feb 3 11:53:19 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sai.Sathujoda@toshiba-tsip.com X-Patchwork-Id: 13957316 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0141EC02197 for ; Mon, 3 Feb 2025 11:56:49 +0000 (UTC) Received: from mo-csw.securemx.jp (mo-csw.securemx.jp [210.130.202.152]) by mx.groups.io with SMTP id smtpd.web10.86148.1738583800507615225 for ; Mon, 03 Feb 2025 03:56:40 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: toshiba-tsip.com, ip: 210.130.202.152, mailfrom: sai.sathujoda@toshiba-tsip.com) Received: by mo-csw.securemx.jp (mx-mo-csw1802) id 513BucqN3465046; Mon, 3 Feb 2025 20:56:38 +0900 X-Iguazu-Qid: 2yAbJ3LJ1krAf8m2nz X-Iguazu-QSIG: v=2; s=0; t=1738583798; q=2yAbJ3LJ1krAf8m2nz; m=DahRd9zvzAI9XhZS91MRLaxQixZ+mph+ewrkI9RV4gU= Received: from imx2-a.toshiba.co.jp (imx2-a.toshiba.co.jp [106.186.93.35]) by relay.securemx.jp (mx-mr1800) id 513Bubxe840173 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 3 Feb 2025 20:56:38 +0900 From: Sai.Sathujoda@toshiba-tsip.com To: cip-dev@lists.cip-project.org, jan.kiszka@siemens.com Cc: sai ashrith sathujoda , dinesh.kumar@toshiba-tsip.com, kazuhiro3.hayashi@toshiba.co.jp Subject: [isar-cip-core v1 1/3] security.yml: Set new LTP installation path in case of security target. Date: Mon, 3 Feb 2025 17:23:19 +0530 X-TSB-HOP2: ON Message-Id: <20250203115321.3589084-2-Sai.Sathujoda@toshiba-tsip.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20250203115321.3589084-1-Sai.Sathujoda@toshiba-tsip.com> References: <20250203115321.3589084-1-Sai.Sathujoda@toshiba-tsip.com> MIME-Version: 1.0 X-OriginalArrivalTime: 03 Feb 2025 11:56:34.0728 (UTC) FILETIME=[AC36DA80:01DB7632] List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 03 Feb 2025 11:56:48 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/17727 From: sai ashrith sathujoda Due to read-only rootfs of security image, LTP tests cannot be executed because the runltp tool expects the install path as working directory and this creates issues with "/opt/ltp" as install path. So in case of security image, the LTP installation path is configured to be "/home/ltp" Signed-off-by: sai ashrith sathujoda --- kas/opt/security.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kas/opt/security.yml b/kas/opt/security.yml index 4aa40e0..974b756 100644 --- a/kas/opt/security.yml +++ b/kas/opt/security.yml @@ -26,3 +26,5 @@ local_conf_header: VERITY_IMAGE_RECIPE = "cip-core-image-security" security-override: | OVERRIDES .= ":security" + change_ltp_path: | + LTP_INSTALL_PATH = "/home/ltp" From patchwork Mon Feb 3 11:53:20 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sai.Sathujoda@toshiba-tsip.com X-Patchwork-Id: 13957317 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E6A91C02192 for ; Mon, 3 Feb 2025 11:56:48 +0000 (UTC) Received: from mo-csw.securemx.jp (mo-csw.securemx.jp [210.130.202.158]) by mx.groups.io with SMTP id smtpd.web10.86151.1738583802902832164 for ; Mon, 03 Feb 2025 03:56:43 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: toshiba-tsip.com, ip: 210.130.202.158, mailfrom: sai.sathujoda@toshiba-tsip.com) Received: by mo-csw.securemx.jp (mx-mo-csw1122) id 513BudiY3082679; Mon, 3 Feb 2025 20:56:40 +0900 X-Iguazu-Qid: 2rWhWAeBjLVrkxQ5Ku X-Iguazu-QSIG: v=2; s=0; t=1738583799; q=2rWhWAeBjLVrkxQ5Ku; m=7VYXzHyOdumxLxHqpXwHD9ukcmrZbnCtCc1e2CjoSeE= Received: from imx2-a.toshiba.co.jp (imx2-a.toshiba.co.jp [106.186.93.35]) by relay.securemx.jp (mx-mr1120) id 513BucaK764692 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 3 Feb 2025 20:56:39 +0900 From: Sai.Sathujoda@toshiba-tsip.com To: cip-dev@lists.cip-project.org, jan.kiszka@siemens.com Cc: sai ashrith sathujoda , dinesh.kumar@toshiba-tsip.com, kazuhiro3.hayashi@toshiba.co.jp Subject: [isar-cip-core v1 2/3] rules.tmpl: Make ltp rules file as template to make installation path configurable Date: Mon, 3 Feb 2025 17:23:20 +0530 X-TSB-HOP2: ON Message-Id: <20250203115321.3589084-3-Sai.Sathujoda@toshiba-tsip.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20250203115321.3589084-1-Sai.Sathujoda@toshiba-tsip.com> References: <20250203115321.3589084-1-Sai.Sathujoda@toshiba-tsip.com> MIME-Version: 1.0 X-OriginalArrivalTime: 03 Feb 2025 11:56:34.0806 (UTC) FILETIME=[AC42C160:01DB7632] List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 03 Feb 2025 11:56:48 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/17729 From: sai ashrith sathujoda Signed-off-by: sai ashrith sathujoda --- recipes-core/ltp/files/debian/{rules => rules.tmpl} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename recipes-core/ltp/files/debian/{rules => rules.tmpl} (80%) diff --git a/recipes-core/ltp/files/debian/rules b/recipes-core/ltp/files/debian/rules.tmpl similarity index 80% rename from recipes-core/ltp/files/debian/rules rename to recipes-core/ltp/files/debian/rules.tmpl index 06b9070..918b443 100755 --- a/recipes-core/ltp/files/debian/rules +++ b/recipes-core/ltp/files/debian/rules.tmpl @@ -1,7 +1,7 @@ #!/usr/bin/make -f export DEB_CFLAGS_MAINT_APPEND = -Wall -Wno-format-security -LTP_CONFIGURE_FLAGS = --prefix=/opt/ltp +LTP_CONFIGURE_FLAGS = --prefix=${LTP_INSTALL_PATH} %: dh $@ --with autoreconf From patchwork Mon Feb 3 11:53:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sai.Sathujoda@toshiba-tsip.com X-Patchwork-Id: 13957315 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E3FC8C02193 for ; Mon, 3 Feb 2025 11:56:48 +0000 (UTC) Received: from mo-csw.securemx.jp (mo-csw.securemx.jp [210.130.202.152]) by mx.groups.io with SMTP id smtpd.web10.86150.1738583802384438543 for ; Mon, 03 Feb 2025 03:56:42 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: toshiba-tsip.com, ip: 210.130.202.152, mailfrom: sai.sathujoda@toshiba-tsip.com) Received: by mo-csw.securemx.jp (mx-mo-csw1802) id 513Buedm3465111; Mon, 3 Feb 2025 20:56:40 +0900 X-Iguazu-Qid: 2yAbuzQy0YtzcUB1MY X-Iguazu-QSIG: v=2; s=0; t=1738583799; q=2yAbuzQy0YtzcUB1MY; m=3cJET/dyLDkn2TNUSHCaZlRvRNZXS9K5MhSTg2IV9ik= Received: from imx2-a.toshiba.co.jp (imx2-a.toshiba.co.jp [106.186.93.35]) by relay.securemx.jp (mx-mr1801) id 513BudNK880670 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 3 Feb 2025 20:56:39 +0900 From: Sai.Sathujoda@toshiba-tsip.com To: cip-dev@lists.cip-project.org, jan.kiszka@siemens.com Cc: sai ashrith sathujoda , dinesh.kumar@toshiba-tsip.com, kazuhiro3.hayashi@toshiba.co.jp Subject: [isar-cip-core v1 3/3] ltp.inc: Set default ltp install path and include template files and variables Date: Mon, 3 Feb 2025 17:23:21 +0530 X-TSB-HOP2: ON Message-Id: <20250203115321.3589084-4-Sai.Sathujoda@toshiba-tsip.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20250203115321.3589084-1-Sai.Sathujoda@toshiba-tsip.com> References: <20250203115321.3589084-1-Sai.Sathujoda@toshiba-tsip.com> MIME-Version: 1.0 X-OriginalArrivalTime: 03 Feb 2025 11:56:34.0884 (UTC) FILETIME=[AC4EA840:01DB7632] List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 03 Feb 2025 11:56:48 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/17728 From: sai ashrith sathujoda Signed-off-by: sai ashrith sathujoda --- recipes-core/ltp/ltp.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes-core/ltp/ltp.inc b/recipes-core/ltp/ltp.inc index c8f1199..0890097 100644 --- a/recipes-core/ltp/ltp.inc +++ b/recipes-core/ltp/ltp.inc @@ -18,6 +18,10 @@ SRC_URI = " \ file://debian \ " +LTP_INSTALL_PATH ??= "/opt/ltp" +TEMPLATE_FILES += "debian/rules.tmpl" +TEMPLATE_VARS += "LTP_INSTALL_PATH" + do_prepare_build() { cp -R ${WORKDIR}/debian ${S} deb_add_changelog