From patchwork Mon May 6 15:41:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adithya Balakumar X-Patchwork-Id: 13655656 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 D11C1C25B5F for ; Mon, 6 May 2024 15:41:25 +0000 (UTC) Received: from mo-csw.securemx.jp (mo-csw.securemx.jp [210.130.202.132]) by mx.groups.io with SMTP id smtpd.web10.24125.1715010075790359536 for ; Mon, 06 May 2024 08:41:16 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: toshiba-tsip.com, ip: 210.130.202.132, mailfrom: adithya.balakumar@toshiba-tsip.com) Received: by mo-csw.securemx.jp (mx-mo-csw1121) id 446FfEXi226951; Tue, 7 May 2024 00:41:14 +0900 X-Iguazu-Qid: 2rWhlfeQcVztmlKtlo X-Iguazu-QSIG: v=2; s=0; t=1715010074; q=2rWhlfeQcVztmlKtlo; m=LiRMdlT75FjhqqaRIUH87spnXZ2f4PP/OUmqOcIUyBg= Received: from imx12-a.toshiba.co.jp ([38.106.60.135]) by relay.securemx.jp (mx-mr1120) id 446FfDtc1543193 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 7 May 2024 00:41:13 +0900 From: Adithya Balakumar To: cip-dev@lists.cip-project.org, jan.kiszka@siemens.com Cc: quirin.gylstorff@siemens.com, felix.moessbauer@siemens.com, shivanand.kunijadar@toshiba-tsip.com, sai.sathujoda@toshiba-tsip.com, dinesh.kumar@toshiba-tsip.com, kazuhiro3.hayashi@toshiba.co.jp Subject: [isar-cip-core][PATCH v5 4/4] Kconfig: Add delta update option Date: Mon, 6 May 2024 21:11:29 +0530 X-TSB-HOP2: ON Message-Id: <20240506154130.840349-5-Adithya.Balakumar@toshiba-tsip.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240506154130.840349-1-Adithya.Balakumar@toshiba-tsip.com> References: <20240506154130.840349-1-Adithya.Balakumar@toshiba-tsip.com> MIME-Version: 1.0 X-OriginalArrivalTime: 06 May 2024 15:41:07.0988 (UTC) FILETIME=[D0216D40:01DA9FCB] 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, 06 May 2024 15:41:25 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/15845 This change adds a delta update option for swupdate in kas menu Signed-off-by: Adithya Balakumar --- Kconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Kconfig b/Kconfig index 7c19640..3964098 100644 --- a/Kconfig +++ b/Kconfig @@ -192,6 +192,18 @@ config IMAGE_SWUPDATE bool "SWUpdate support for root partition" depends on TARGET_QEMU_AMD64 || TARGET_SIMATIC_IPC227E || TARGET_QEMU_ARM64 || TARGET_QEMU_ARM || TARGET_BBB || ( TARGET_QEMU_RISCV64 && KERNEL_6_1 ) || TARGET_HIHOPE_RZG2M +choice + prompt "Update type" + depends on IMAGE_SWUPDATE + +config IMAGE_COMPLETE_SWUPDATE + bool "Complete Update" + +config IMAGE_DELTA_SWUPDATE + bool "Delta Update" + +endchoice + config IMAGE_SECURE_BOOT bool "Secure boot support" depends on TARGET_QEMU_AMD64 || TARGET_QEMU_ARM64 || TARGET_QEMU_ARM @@ -202,6 +214,10 @@ config KAS_INCLUDE_SWUPDATE_SECBOOT default "kas/opt/ebg-swu.yml" if IMAGE_SWUPDATE && !IMAGE_SECURE_BOOT default "kas/opt/ebg-secure-boot-snakeoil.yml" if IMAGE_SECURE_BOOT +config KAS_INCLUDE_DELTA_UPDATE + string + default "kas/opt/delta-update.yml" if IMAGE_DELTA_SWUPDATE + config IMAGE_DATA_ENCRYPTION bool "Encrypt data partitions on first boot" depends on TARGET_QEMU_AMD64 || TARGET_QEMU_ARM64 || TARGET_QEMU_ARM