From patchwork Mon Nov 24 11:46:29 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "MOESSBAUER, Felix" X-Patchwork-Id: 4627 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 24 Nov 2025 12:47:09 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f57.google.com (mail-wm1-f57.google.com [209.85.128.57]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 5AOBl82B030396 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 24 Nov 2025 12:47:08 +0100 Received: by mail-wm1-f57.google.com with SMTP id 5b1f17b1804b1-4779da35d27sf51932445e9.3 for ; Mon, 24 Nov 2025 03:47:08 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1763984823; cv=pass; d=google.com; s=arc-20240605; b=IEz7c/MrQPzq3AsjGqkubKhdWGoIwrL8ohYCqGGdS6csyH65aXX3O8qY8KCh1hB7ev aqcEvOK8iq7i3smb4GBQIztWTK87dq3oUQlzHXW3jDW+cvtOc7S0Pvmihk6qcEpjKNws 2CTQqsrrbnXv5/35mJ9HqYDZw1R5m1eaxIqrzOdLIAtqr7fNgpJ9ZsNC0oZSm1EpyRdZ eeU+oB/RR/TZ9lZmf/RkHlb1r6efPqiecZDwnMvB2wmxNmh5PdRpEajHsyyeyxOzb5W1 wiFRASKnOE7iLxzPEUDO7puc5tl2x2iIsAR7YUJyyOBn3J1QkIWwAkFHU4SsKWdZ2kmi 2Khg== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=9t1k7Nb1Mnr3VsaxU0MYVlFSkDF4BDAUhdEZA/OU11c=; fh=E8RTXe8/koLc+/e6lTSrNVKDy54Y6CctsY6wVWjTUVg=; b=MoMcqREi7kbZ5zCEODy0q9VhVqCkF3qNY51kCwl0hYRAq2FnTK3XQ6kczYfVis4Wlf MEn0UHoH7LvXony0GemtDvSRQfyl91XY+H9i1BsMAie0p04ONDi1SGRXkvNhOIO77ZQK 6JsFLRF2rxjCYwlAY+vssUqQ4V9eI27yqJFtDkpPwSp6r3bPwKvYjTgj7cxSeJPtVLXj vR41cvjIuin2julbuIkx08U//2us0qylbNOJxjzGXvjyHjnx8oz9uwmH0NgdTmqetRW1 tJJ2FGxYD6dcTnlL3X7Z2EhJJcvNbiO+UD/dPzWFcuG+ogysKQTGqkyFZ1fjF3gZdQwQ fNsA==; darn=isar-build.org ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=chDlRG4d; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of felix.moessbauer@siemens.com designates 2a01:111:f403:c201::1 as permitted sender) smtp.mailfrom=felix.moessbauer@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1763984823; x=1764589623; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=9t1k7Nb1Mnr3VsaxU0MYVlFSkDF4BDAUhdEZA/OU11c=; b=Xvr3n9G49Ax099OYL8ieWn9t+e8Tyzic0jdJadTzQqZ2/r6gRZecrTdFJREkJKMBeR +ydwmrXjdi3S1EzU+ycklqHAThPiUWM34r3YYXIukisrBk9QrjZH8OYoKa74Z2sefwQU IRbj9fQ1Zkryt+1hBy/5HEphe8O3f//TIMEGLzwR3LWMdfsJ5HvD/bRN0liNg+u0lF0T SUKORKqVDCvC4DQssxHuIPo6fGaX9/ZXWNbQYzlUKl0S41IJLTkHhsWwfcgXetZpr7QN cMgVfN61cZnUemI8QruCK7PlkGEZ2NNrfFXHH4+H/knQyNSj9uOK5geFJvt37GOk9UDT MfjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763984823; x=1764589623; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9t1k7Nb1Mnr3VsaxU0MYVlFSkDF4BDAUhdEZA/OU11c=; b=Cm7rNz/Af+rSnByMlo/1erY+9006cQRS7E5HGkqyzT2HK9GhPtNyzgjPH2KSrkZo4z i1nvUOKs8yuk8n8B3a43oz9SZEOZpL3J0RNt2Ku7BE+h3pxaeWY123tlmmgDw4ryedYF zF9o9hCSKVoULbpHIKwKNZLGvW2zepPm8glq7734IZxTW47VU/H/HE77AGY1ZV1AeLe7 1XfQ/WFCcMbGA8zOBKzHD4t8BJfMam43Qt/fMxzOML3lnZ2wsjKa2vAZ6gflK2oGUJZC +jotmGhhxXr1IkAShy/XNWBLv+huio+kKLopqll6ThbwXNZF3w5Yb7iBn+ZS4dW+2/qI GCzg== X-Forwarded-Encrypted: i=3; AJvYcCW2bwp8H/gWKZi8xQnQ3I3Cd/7DFBRbPW2s/fOyr3UzTbpnpBKfRgRd/wGE5CiJgtGEJRv0Ebc=@isar-build.org X-Gm-Message-State: AOJu0YxVp5ntGBqGLJMVEjx6iEkVGevLmnkk5iFB+heIEOQ8/4ykMQQw BJ9g+on0B5AQKfZNUY3AXwNLr7Eu6HXLhjgfC2hfiEiiHV0QCPrc8oQL X-Google-Smtp-Source: AGHT+IGxP5WCM2zaf1c99v7qkYYlWQBPTyydnlrfl/x7FKxPPlOZZSYVGYcjlzV+XHNcBYsGRErIWA== X-Received: by 2002:a05:600c:4fcb:b0:46e:3d41:6001 with SMTP id 5b1f17b1804b1-477c01f7b9amr111966085e9.34.1763984822700; Mon, 24 Nov 2025 03:47:02 -0800 (PST) X-BeenThere: isar-users@googlegroups.com; h="Ae8XA+a0OjCJaaSyzBXiquDrTzjqNXLEyScUre385j3q0AYVTQ==" Received: by 2002:a05:600c:4f53:b0:475:dc86:85d4 with SMTP id 5b1f17b1804b1-477bf60b54cls15048915e9.0.-pod-prod-09-eu; Mon, 24 Nov 2025 03:46:59 -0800 (PST) X-Received: by 2002:a05:600c:4f49:b0:45d:d8d6:7fcc with SMTP id 5b1f17b1804b1-477c01dfe16mr126401775e9.27.1763984819506; Mon, 24 Nov 2025 03:46:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1763984819; cv=pass; d=google.com; s=arc-20240605; b=DxK3eKAuBtcuhkZi4Qd2yO94BvEFNQ7pym9gVQaBC2Kyv0Zr7JglFtsoFMnClYgJeB ePBRPe2bLNBRTjjJHpf4HyZV5kLZL9EzFTBhl8UqEulgReOwztui9r4GwSqEnnxuqhu+ 6S2YPFiQcfLj4Yog+IptxMAlz4sPntD47/3e2Es4eQNhYIHpVs+lLTftQ5yREZX7/VKQ HJDrJs/FGRfZZQdCQ835YE1l+sfkpAxYknSN2SLOTlMjatHVioGXKIo4e2MD6DzEcZv1 kgfJJH5GWinnsUU6ZscscLkwK8botuHL38oXRRjxM9FRVnSbWyPqiMDVCMdvNpEGZyk/ BW8g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=mime-version:content-transfer-encoding:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=LEgt3iMkhp8yW30wkqlXYv4cvAcpI3XHe/tVISz5hhY=; fh=YgHcU2amhotomeH1Rv2VyUlgPjm8wpulXwrBvcHF4rI=; b=Hk2RECcd53eqDFucv4e9NAqCJAx88Dr8P2JIhb875W/84NWZo25jeXJpsXKETBXe8b ZcdCalz2TMJtYBVQjdxEdy8GhxdyJxbN1wEjyjziQtDq5G7QajaJsLXYGdVSSbkas2LE +S0njUmMUFvs0sqDw3nrZMc4JXEajCZx3ih2pTl4OS99hxQ8vWD0ZMBxZw/9416IlCxq XR00uB++fj+y1iWyZfnlW4CH//jFXBsKtP+JASyFO7aQtU4rH806VrDyq/DlLjj3A079 2YMKPEa5YYsRz6e0zLTt1sG/ZNgubigvUCd8NOnNWjp2bM359lPpaNX5Qth+D/s48gq7 7rOg==; dara=google.com ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=chDlRG4d; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of felix.moessbauer@siemens.com designates 2a01:111:f403:c201::1 as permitted sender) smtp.mailfrom=felix.moessbauer@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazlp170100001.outbound.protection.outlook.com. [2a01:111:f403:c201::1]) by gmr-mx.google.com with ESMTPS id ffacd0b85a97d-42cb7f38f93si186752f8f.5.2025.11.24.03.46.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Nov 2025 03:46:59 -0800 (PST) Received-SPF: pass (google.com: domain of felix.moessbauer@siemens.com designates 2a01:111:f403:c201::1 as permitted sender) client-ip=2a01:111:f403:c201::1; ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MUEWAr3tpNnzvH2WEXSS14U8r3kFEQFZVk5h7XtnI6FGe6bjnCUca4OVYKtk3I4y2Kngx1E4eQJ8oRbKu3CVl7ksXaWxbcVTgBAAMZd87VgTbeqKy5u3gd1xslZNfXRK7ug4qprPFPoUG7+b1OCjNqU4/Xvk58KY9ARjNDEuydVqxz2Aa0G2LFl6xkw8538wd2jU0ckiL/tM000bBOps0VRN5TCBD8VyQpjhk/GUhgevg5gWL/aP1Ky6L8EPCKK+0pDhMBlGUPJcDdoakVueSr1ioCu9hnEJbTPvIBZg/Jiw4+ASgYaMp7f00/3QEeqjzHTvhM3zl3ARzFPF8OKGyQ== 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=LEgt3iMkhp8yW30wkqlXYv4cvAcpI3XHe/tVISz5hhY=; b=jRH8nywchIXWKGHzd+Ca8WGsBpOkH8yb6gQTNT5PcmL+2fRx+0rtecJUms2i6rjObciG86XRj2VwswzOnyXbNaBvq4PMZwSaR1e28XQPR3SWh0WYieVCjG90XJkZHdYGZ4Dox+87D4Qe+jhWblm2bQ3HpAi/hlmzK+JxKgwptnmokAIsZWJQyQld01qtj9P88a/PI7ivyRM0ZT7b/lRkSyBPIAzTIO+2zvM9SgUEdKtXW3oLp61UVDMGR5tK2mDaiEXG02BqNEp1CdtMt8hdMYvxJA/VGP5AZqtenwJVJB+UymQFrD2P4b6XpdwCU0/RJWHg+t/XHTSMbGntrsxN9A== 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 Received: from DU0PR10MB6828.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:47f::13) by PA2PR10MB9116.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:41e::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9343.17; Mon, 24 Nov 2025 11:46:58 +0000 Received: from DU0PR10MB6828.EURPRD10.PROD.OUTLOOK.COM ([fe80::8198:b4e0:8d12:3dfe]) by DU0PR10MB6828.EURPRD10.PROD.OUTLOOK.COM ([fe80::8198:b4e0:8d12:3dfe%4]) with mapi id 15.20.9343.016; Mon, 24 Nov 2025 11:46:58 +0000 X-Patchwork-Original-From: "'Felix Moessbauer' via isar-users" From: "MOESSBAUER, Felix" To: isar-users@googlegroups.com Cc: christoph.steiger@siemens.com, cedric.hombourger@siemens.com, jan.kiszka@siemens.com, quirin.gylstorff@siemens.com, Felix Moessbauer Subject: [PATCH v5 01/10] refactor: move get_rootfs_distro from sdk into rootfs Date: Mon, 24 Nov 2025 12:46:29 +0100 Message-ID: <20251124114638.2238090-2-felix.moessbauer@siemens.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251124114638.2238090-1-felix.moessbauer@siemens.com> References: <20251124114638.2238090-1-felix.moessbauer@siemens.com> X-ClientProxiedBy: SG2PR04CA0182.apcprd04.prod.outlook.com (2603:1096:4:14::20) To DU0PR10MB6828.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:47f::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR10MB6828:EE_|PA2PR10MB9116:EE_ X-MS-Office365-Filtering-Correlation-Id: 319b5459-c37d-4246-0930-08de2b4f2c66 X-MS-Exchange-AtpMessageProperties: SA X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|1800799024; X-Microsoft-Antispam-Message-Info: nfxlIG6lNJDCrveiBMQJ6Ac+V9pV2VAkU8lEo9fvviQNkgGckW/kg1hTfaXso11T1YoYmuwnr6tW7OFOzkK1jLJRyzdiozbgqcVVZqR+3vDvF+oNkr+CwwxY5Z4bGwMmE3uamwHZHrpXhq0mMLCjbqtKmNRAOnjf6xs+2s6iuP2VrlOASDf/g5FufmfgtGzyMNkDQCTWL7dUkOkIpomgHVHdSJ5D0a3ohwdSNiSoazxMdaBiO8499wc1OSjdsjeXx7aTNcgmXgjOxxWotmNpJsS5W0E/7qIcnq/Ozgx9reuQFApKGVJoHu0eKfsBha19Gc//xvvS6jErZB4vSNc+OxTZ8oynth1qZ3G77oFBS2S+2iE2C0zeU/oGQxc7IMpphLyANNBAEqMqZmakg2okBbHv1cLfJlKTYf6R8ZVC8IBAegBAqj7i7TjbmxXwOMs9RJiiu4lgMErifvMI7Rn05gN+GIUYnKTNdGtllmGpJaSZwKLsKnUlPNDC9+dJgNHS3NL1DaiacPawVPlPwLM4Sf30NWQYOvjjn0C8gzYX/gILDT40rNScpn3SiJZE7iDkbWifLuGsin0Wv+6bWVwOgN+fciXq1kb9UpyqJnvwH5idAGA+bv1FmpasH7q/7rOENsv4OyDjtans9odIGLv7BAtC8+DMElzV5lP3rZc6AhF18MUU6xI+rHasdJVvxovA1Qt2+fSnj4SyJdxW+2Y4fufgqgUBiBkO/Ti9+8/VkSbjwDPu5ARdElNkB35nQ7EYvh6bZK8fmMB1V1HAd5kD80nWOmUFcmI5/x1aTpSMEA2dnyDxcGCYFZbcGheX0Dx9bW0xQ5bOUrg0T7JjBI4bdFLqg+/ZhgrI5yC4unxYxEDKI1bErOuCzoVBY3mS0mZfZljHfmcNt3A2C784+Gcq7QsLZ9ZCA1LNswWpOLFZGaQ1TLnI43Q1bBTQgAbUB1SBxddo88qgDuCcm2oOr3lHqKl+EJC4D0/dbKx49dJNHA9Eir72RGvb7Ea4atGHgDUZxLRHL+gG2JJmESxQyeyfJh/5Su9c82OJbC5FsS5c1iAmztVXv6Bypb7PKVFzpacq6kwCpSp0Y5Njtft9kkHCfD8DcbSW/Eid2dXTUEhAtuTECEYbTmek9W+CB/aY/J9Ma44LwqJKSleIKQYPRTfHNRvvhMjFj+hp+imR7kIwgWEyOpPDPswIpKRCWdaDHY4qaTDCfeJS7FmNqLd0KRAVGDtb7hDdWJEUFlt18tx+i4jF+GcBNiFGmF+gJZ9wmVqZ60+JJc+7s9/okMtbCf6u/MD5JCin55chejRwEm6pxmuZjVIm8sKKGgnvKnFrGZYXjCwmofkGbuSYMKUOOvEdlCFxLP1f/1gn9XrIOZH1ZfmMqIv9pMRIjl3lgMdUfMbYRzOhVxaRQtcWNj98ghozNNWwnXVwml/4yGi2Q0I3Ik1IdRxQ2Ll4iArSy+Ke6DF/ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR10MB6828.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: YAS7n6mCEFmQhKt7btHgWUBq8odbjN3hrUu5Z6f97YISIw8mYHzzEYpUJqa5UDepVMJbLMbf1lMmZUUmWCNo1VkWvqI0kOxgPBG3wjnLfS+USeNurZCowPNsZyMhunA+DJDUnWR//bmaB88DHcphWkc/1kqxRE6bntu9Fg98UCBdm08PwuS83wWtJXhwkeYOKqMzM0Mxr6/mKn5PVrTwH2nx42pdhAIlSoOSFF7fsOGQfuARXxlNuoqtT1U5VYRMOrBeHL2NVy8PMOsn3ZR4r+W8WYF4tIunXEDAlYqlM4aaCv6lsntoC7xi58CEUlJB6LqDFKAL/e4LFE/c3bug+vLyGxugTHABb2kGzBvqSTTJLMN7M0OZkf8Q1QKxUIQO0GDZJFtyp5rtddC0wRrGKfC9TYA9jIuyFZPkIyYOREJBAmkCezpCjyKPCUJTESk42cyhL9wqGQvDs1Mx3QIA3Apw1OGlhEGFmB36R1F4o3/urYGXXg/GVcXM4FHV/GxbV5+2sPVHLZHGNCGAwMga03UfTcMRqWDkpdd13eIXZaRvtJKhxxs6sJiY8FIKdLsWsGzAbj9YJNxmjlwmPlJt3PQPPnyeWaK/a1i+g3mB0nhm1fiV5HODZdpsWVMzU6XWhHruTM2A74a2V7ixmhAzsKpblKSQo/t62IusDTJ8UekthbNgJPJMp4yWd2WJxpocmTtpQI5pQNStOIAOOi9xOr+rWA9tQJ0aXXL/X2nwkuiHYVx2cGyab5G8H688WbGy30WILMt1VuJon5knTnAltOTxduG3g4lG9+3GD7Me6VHqqa4ap7x6faGDsUnueZOQ3ttKQz/TpbZGHEXA+u9RzSBmdNuFnw7Klh/BJQ0fsIRq+eIuua6Jpj2p52jMqpZAVySVf2pgmdyxM/wEbF9dG3OC1ZBuiR3zVYYrPKc4rIrpDHvknIW6ccDsM9CbwLGrOQiajDjryzB7NVqM+43R1vBtSOtmH40aUWjvBpr0eqTa9M5YJ3XRsLuoNWn1O9mdOfhHMwAGTUEWg3C6GjqwB3ZDuVH3+B7wT6PDH8K4+0dCCnAg5Xj1b7zvl836Wce2ge3AngTaKQFB1CXGswMVF+7fRyFCvqRt++lSP8pTqAkA6l4gwGK2xXDYteGvxin5uUmkZDcbA2WgoaAw6uuCKHvQ9atifa+JoaKr52ilnA4+Ub0ZH079bbKm7fk/zJ1HftH1a+trtMlhYYwl+p1eGaxLnLHHhWiJw5qEwn/div+tVqKvaS/RblUIITzuqfoIlakINvu01klJt5Yw7ysRSGo20QlUCLAfp/N0sn6Ty3EkRkyUjtW2UKvDJMauwsyJf1R2D0SAlozVDAnA4LR8ZhHXcz+tlkZuihKMGNhIdksYsM9om1n32K/PPhwP7YOaNFIlV0/5p0G4uOWWlUROgWX/88V+p64icjnhIMm/afIMQc632/j7IqsDpYIwZCTwqqqzrB0/3acv52ffOE7q8axaIItABHyjtBhf0ITupFn95EXTShnYaVaLc+Xpx2ZTdUIrkOcmkRv1POnZgh6nGR0gm8N9JsT9G/jTHjymvNPqumvJtdBCVbld8qxZg02QutvUI4OorTAUYBWhMABC2Q== X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-Network-Message-Id: 319b5459-c37d-4246-0930-08de2b4f2c66 X-MS-Exchange-CrossTenant-AuthSource: DU0PR10MB6828.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Nov 2025 11:46:58.3727 (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: YUXqezR0Cvra+O8RbfBGSifDCX5Ld3AVZ5/ZDcv+VryBDCqMlWaIGzevFHVxjVrFtzTruP0nC3IN2lrfzGJ80Bwe0FarwYj6celF1/fjIjQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA2PR10MB9116 X-Original-Sender: felix.moessbauer@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=chDlRG4d; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of felix.moessbauer@siemens.com designates 2a01:111:f403:c201::1 as permitted sender) smtp.mailfrom=felix.moessbauer@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Felix Moessbauer Reply-To: Felix Moessbauer Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= This helper is rootfs (not sdk) specific and can be re-used to reliably compute the distro of a rootfs (also transient ones like the ones used by sbuild). As the SDK always is included into a rootfs, we just move it there and make it reusable. Signed-off-by: Felix Moessbauer --- meta/classes/rootfs.bbclass | 9 +++++++++ meta/classes/sdk.bbclass | 8 -------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/meta/classes/rootfs.bbclass b/meta/classes/rootfs.bbclass index e1179e61..c045bfc0 100644 --- a/meta/classes/rootfs.bbclass +++ b/meta/classes/rootfs.bbclass @@ -43,6 +43,15 @@ ROOTFS_PACKAGE_SUFFIX ?= "${PN}-${DISTRO}-${DISTRO_ARCH}" # path to deploy stubbed versions of initrd update scripts during do_rootfs_install ROOTFS_STUBS_DIR = "/usr/local/isar-sbin" +# helper to compute the rootfs distro also under cross building +def get_rootfs_distro(d): + host_arch = d.getVar('HOST_ARCH') + distro_arch = d.getVar('DISTRO_ARCH') + if host_arch == distro_arch: + return d.getVar('DISTRO') + else: + return d.getVar('HOST_DISTRO') + # Useful environment variables: export E = "${@ isar_export_proxies(d)}" export DEBIAN_FRONTEND = "noninteractive" diff --git a/meta/classes/sdk.bbclass b/meta/classes/sdk.bbclass index 46436d97..00cae0da 100644 --- a/meta/classes/sdk.bbclass +++ b/meta/classes/sdk.bbclass @@ -43,14 +43,6 @@ SDK_PREINSTALL += " \ devscripts \ equivs" -def get_rootfs_distro(d): - host_arch = d.getVar('HOST_ARCH') - distro_arch = d.getVar('DISTRO_ARCH') - if host_arch == distro_arch: - return d.getVar('DISTRO') - else: - return d.getVar('HOST_DISTRO') - # rootfs/image overrides for the SDK ROOTFS_ARCH:class-sdk = "${HOST_ARCH}" ROOTFS_DISTRO:class-sdk = "${@get_rootfs_distro(d)}"