From patchwork Thu Nov 7 17:31:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 13866820 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 B8D2AD5D67D for ; Thu, 7 Nov 2024 17:31:26 +0000 (UTC) Received: from EUR02-DB5-obe.outbound.protection.outlook.com (EUR02-DB5-obe.outbound.protection.outlook.com [40.107.249.59]) by mx.groups.io with SMTP id smtpd.web10.78249.1731000678689635843 for ; Thu, 07 Nov 2024 09:31:19 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@siemens.com header.s=selector2 header.b=yXibANoS; spf=pass (domain: siemens.com, ip: 40.107.249.59, mailfrom: jan.kiszka@siemens.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=F/h50UMyYMYiwOz4BwZywh6NBmXQumPneiUSiHPxWrxJXZ5PWs6h6xBWxFQIiDCC17tUkH3oPQqWx1CEqso7ljv5i6ZMRYQJUA6UKWIeA12uCvLruHcFh5UtfvXKS9m8nKospqgkDwUF8lmApsskNC+k8dtTJbtIy6GZI+QbBQfgXc3v4Zt2mbARmNL4eailK0kzZTUqh3/MHj2Ju65cWGrp3V3AXiej1/8VC3uaXE9mEp9rqvPV4P/1bzTZXskuRVY9C3ALNGPkkPWqeAYPe3VGbrgu9s/xa8iK3gcGMmETfs+sRF+CnE3RTO7PIIFmDtBUaOUcvzgHBnoqoaSsSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HwQx9wC6ytNYjDXqcgz1WzhKil21eguQzn2IRuttunM=; b=f4eanfhubnjmc72qgAhTwW/nlsmxnKAxr7EY61+1HJ679U12zN/72s8KxiEJeIOVyUJgn7HjmPMz2pLuizQFm0xVPdVFs5eyWFPky0JFlFbU1WTSYfdrHO003XYF7Ak7jGmpcNxbJFcWYmSy30A42jZTSdLpc63nVf5VnfV4/MffrPpjr5F3qYwzVGfTSspI43o2P6G1PoYSgwnEqiuNrrRD7x+jAqMywHaODakC5GdHt1nFX2FOHt2IchsMZGwH6kuse80pc5LQWqnx5o01kmA7SFAJaiTFi73U4wbwPwPO5nRGBBpiDg9PeY+b9l4zPLWMq78l6QDLQd6/T8KaEw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HwQx9wC6ytNYjDXqcgz1WzhKil21eguQzn2IRuttunM=; b=yXibANoSUQJVydV9wYnyBOIZqcezDZAa+/jxJ5Ur/t70iFM3+LoU/dY7oSekfBhLeWTA10k7oA1ZKQkoehRObGG+ByEJSjgWEqcUC/f2r06YpiFct/42MjrLKjpL20dpq7uXIzahPpuX2Yye0dbNp4JO/hl2S5PobXA7d6TNtTWZ3zO8+yWusymMSnLUy4QTXfwdZ9ke218X7qHGIu3SvN79o7aPL3Cn96f7iYYA0OIEg+nYH/3NT68eG5fxkl3JsHyXZeUio01geBlimtgJFiRoB8DK5/oGWGxKswBEe3hCWCci6wYDwTFQ1gxxOOBDkukeoCmUSY5l7MJ4iZuqXA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siemens.com; Received: from AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) by AS8PR10MB7561.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:564::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.19; Thu, 7 Nov 2024 17:31:15 +0000 Received: from AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM ([fe80::8fe1:7e71:cf4a:7408]) by AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM ([fe80::8fe1:7e71:cf4a:7408%5]) with mapi id 15.20.8137.018; Thu, 7 Nov 2024 17:31:14 +0000 Message-ID: Date: Thu, 7 Nov 2024 18:31:09 +0100 User-Agent: Mozilla Thunderbird Subject: [isar-cip-core][PATCH 10/9] swupdate: Perform checks for supported configurations From: Jan Kiszka To: cip-dev@lists.cip-project.org Cc: Quirin Gylstorff , Cedric Hombourger , Kazuhiro Hayashi References: Content-Language: en-US Autocrypt: addr=jan.kiszka@siemens.com; keydata= xsFNBGZY+hkBEACkdtFD81AUVtTVX+UEiUFs7ZQPQsdFpzVmr6R3D059f+lzr4Mlg6KKAcNZ uNUqthIkgLGWzKugodvkcCK8Wbyw+1vxcl4Lw56WezLsOTfu7oi7Z0vp1XkrLcM0tofTbClW xMA964mgUlBT2m/J/ybZd945D0wU57k/smGzDAxkpJgHBrYE/iJWcu46jkGZaLjK4xcMoBWB I6hW9Njxx3Ek0fpLO3876bszc8KjcHOulKreK+ezyJ01Hvbx85s68XWN6N2ulLGtk7E/sXlb 79hylHy5QuU9mZdsRjjRGJb0H9Buzfuz0XrcwOTMJq7e7fbN0QakjivAXsmXim+s5dlKlZjr L3ILWte4ah7cGgqc06nFb5jOhnGnZwnKJlpuod3pc/BFaFGtVHvyoRgxJ9tmDZnjzMfu8YrA +MVv6muwbHnEAeh/f8e9O+oeouqTBzgcaWTq81IyS56/UD6U5GHet9Pz1MB15nnzVcyZXIoC roIhgCUkcl+5m2Z9G56bkiUcFq0IcACzjcRPWvwA09Zb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B+uqoM6F8zMfIfDsqjB0r/q7WeJaI8NKfFwNOGPuo93N+WUyBi2yYCXMOgBUifm0 T6Hbf3SHQpbA56wcKPWJqAC2iFaxNDowcJij9LtEqOlToCMtDBekDwchRvqrWN1mDXLg+av8 qH4kDzsqKX8zzTzfAWFxrkXA/kFpR3JsMzNmvextkN2kOLCCHkym0zz5Y3vxaYtbXG2wTrqJ 8WpkWIE8STUhQa9AkezgucXN7r6uSrzW8IQXxBInZwFIyBgM0f/fzyNqzThFT15QMrYUqhhW ZffO4PeNJOUYfXdH13A6rbU0y6xE7Okuoa01EqNi9yqyLA8gPgg/DhOpGtK8KokCsdYsTbk= In-Reply-To: X-ClientProxiedBy: CH0PR03CA0253.namprd03.prod.outlook.com (2603:10b6:610:e5::18) To AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS4PR10MB6181:EE_|AS8PR10MB7561:EE_ X-MS-Office365-Filtering-Correlation-Id: 76edd4a3-193b-48bf-d061-08dcff51fade X-MS-Exchange-AtpMessageProperties: SA X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?W5PeaVWHxR+1Tz6Lah87xzCKR1UsBLE?= =?utf-8?q?4kGPKAJTbJ3eIRDOjKo+cUmJe28ASN1R2hRz10b+p6GKNgFjYCCdl6sM5rClWjTrH?= =?utf-8?q?97Ax3hChEN+1JmWsup2Qnzp928GJABJUstvmnpgAp7J7pDKcMDaCm7zYo+pZvUiPP?= =?utf-8?q?VDrYMAmVu5PUfIFiSofn8CP5NogqbU30/JQ2ZF0f+bIE6D37rcMw73Qz6ag7cj4XB?= =?utf-8?q?ysAG6NJ73QOAJHyxIeYljokwWJVS2feausk9pNOL3H8O4e3tkY0nel0x2M07Aldy2?= =?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?q?FaHZKtsIRkVg+MeRA2eTK5uq6MoxQguxLCh64tuRACJK5OxuHxRqp4/c8s1fMFIpb?= =?utf-8?q?FSsDczSis05U7cDwfwbZAXwnOlIXlTaXyacK3HGUgibQmTQgxGw6CJc57n6tYAkxn?= =?utf-8?q?+PY8IvqDMd18U?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?UdTqwSRhjPbfV0c1H9fhZULRCS7m?= =?utf-8?q?TWsIkxZN+AUCTOssQhKaILcOVfeBu0X6aJOdn1rfMhF+bet1l0Of6aXnnr0NPRLa7?= =?utf-8?q?dk6bK6bD16k64Cqpe5FYanJzOpDeiPz83Mn3ihGFNjVZA9upygB3dgwoJQSMgnxW+?= =?utf-8?q?fHff2NyMrTz9TFXSNEeRKKR3aLdi8d6tL/J1ty3B5/CrSZ7YkR+4IL4jLgu4qhR9V?= =?utf-8?q?ARJ4v5MpaapL1rDzBFJTO3t/D+79N0V20I1nAZQqN04A8cGW/FMxC320t/V5mWyNO?= =?utf-8?q?k2OO1PdMFZOsjvN2IyAkuLdAd2rNzWe1WkONWXaiImi/QO7ASKtK+dVr9n0CS1zQ7?= =?utf-8?q?r3O+YSwAcglAc2EDNTJk8OLDX8gGwNpcTePmspl2LhZpnl72IZis10okMbQXoW9RW?= =?utf-8?q?qnRQZiY4+KpVFRZ/WffxWrOnv3SQZmOE77xfcZUK3wxvvlBomw5NjMxxm8PiK2RMk?= =?utf-8?q?dlPXzvQoCC0ukq7zMhiI3nuRCOV5I4gELD/viPVwQtIWQdA+CRgDjYziF2SfI2cij?= =?utf-8?q?zRFoGduB5PYa0Rwrt/3w3kUmu+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aExM+t/QVqkpvOEex0SFdz3Pdq8Rg1mq?= =?utf-8?q?BOXkdTyB74WTLmtLCQYcZNVnFqj9izCs5suaHv/6C2vBEBladQLyQ8KNVCW2ftKFI?= =?utf-8?q?sCwYg2H4++FtnVtEcUHOfG1IxN1efpFUXA=3D=3D?= X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-Network-Message-Id: 76edd4a3-193b-48bf-d061-08dcff51fade X-MS-Exchange-CrossTenant-AuthSource: AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2024 17:31:14.8744 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ztumID8MvnDeu4NTquR8e0KGTFQq9hexaTTWW3Qs6J5YOLZJjNB0oW2Bvef6F7cApALOD86m/Erbwgi8DEHQBA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR10MB7561 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 ; Thu, 07 Nov 2024 17:31:26 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/17222 From: Jan Kiszka The upcoming trixie release is currently containing everything we need from SWUpdate, so we are retiring the self-building option from that release on - until someone comes up with a valid use case to restore it. This happens to avoid exposing a configuration that is technically selectable but became silently broken due to being effectively unused. The Debian package enforces SWU signing. Therefore warn if a user configures this out while using the upstream package. Signed-off-by: Jan Kiszka --- recipes-core/images/swupdate.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/recipes-core/images/swupdate.inc b/recipes-core/images/swupdate.inc index b1cad439..81c33658 100644 --- a/recipes-core/images/swupdate.inc +++ b/recipes-core/images/swupdate.inc @@ -23,6 +23,17 @@ SWUPDATE_SELFBUILT:buster = "1" SWUPDATE_SELFBUILT:bullseye = "1" SWUPDATE_SELFBUILT:bookworm = "1" +python() { + base_distro = d.getVar('BASE_DISTRO_CODENAME') + if base_distro not in ['buster', 'bullseye', 'bookworm'] and \ + bb.utils.to_boolean(d.getVar('SWUPDATE_SELFBUILT')): + bb.fatal(f'Self-built SWUpdate not supported for {base_distro}') + + if not bb.utils.to_boolean(d.getVar('SWUPDATE_SELFBUILT')) and \ + not bb.utils.to_boolean(d.getVar('SWU_SIGNED')): + bb.fatal('SWUpdate from Debian requires signed SWUs') +} + IMAGE_INSTALL:append = "${@' swupdate' if bb.utils.to_boolean(d.getVar('SWUPDATE_SELFBUILT')) else ''}" IMAGE_PREINSTALL:append = "${@'' if bb.utils.to_boolean(d.getVar('SWUPDATE_SELFBUILT')) else ' swupdate'}"