From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7041881252872323072 X-Received: by 2002:a05:6512:1148:: with SMTP id m8mr14987708lfg.456.1639665046096; Thu, 16 Dec 2021 06:30:46 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:651c:201a:: with SMTP id s26ls1011424ljo.5.gmail; Thu, 16 Dec 2021 06:30:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJw+w9q4WLFMcU9QnI57S4NVHTMfmdG977bQzgVYbVWq4yAxjJq96azgyitye8ZCbtYA2xXj X-Received: by 2002:a2e:5712:: with SMTP id l18mr14961686ljb.268.1639665044760; Thu, 16 Dec 2021 06:30:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1639665044; cv=pass; d=google.com; s=arc-20160816; b=yAX6NcCfnI04aMfZvkZqpB8HdmJH2hEAO3+eU2hA01i7pk8fVUPJ0P58opVv69dJ9T +XjCp428CXAz2rwRo4EJ4EFGn90VeKIamVrT3fHxvsF5gdjF5osuMEP7XtZNEpgc5Sp1 pYdrWcTIjoKlaLRRcfjOtBw0NPjTab0DqPF4HPU+kJU58TDg+g+DF1FZbqrkG8SQWL5Q 2+t0XE9cyE8JAqjw364IcGcXzlJy2cy77tRd/dpqf4Kj3cXdwrdxVnyexBSCeJZdjJVc yBfrIXtc3D5xSVxA8dnDtl8wFbjuAuij0nFKMx6ZlKvpnvVCNcGia2Bh8sXxcl8GcXti vGRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :dkim-signature; bh=Oa8Njtumf8AY34wct8VQEgnjCKCBmvjAGxyAGauhiAo=; b=R5FrrRFec1C+ZvfVywY4ZR5GSx/JebwwZaqxwSm5U30L6qcwufSV2SzwED9IlLtmiJ CvwrqJ9SWmbxmNNaSZXNZubcqyFPDDzl4LU0AJMn9m0urDCYGggmZ7we782CA2sAy3Y7 7m+etY18D9cIt9kGITu/1iDO3nkhxl3Pe+qlZibrWcnSaiY6z+aWA4LWigYpbTVEDeNT T7/6NuJL+6jQw6kC0Jw06+n3l1JcjMuObpuSsknqgNlHqwZgb/GsY+7mrHaQ5ZrqUSsb 3xVIqiUs4GyCVWVtj31a6Uw471qwmhnfuyQMkSjD6bCVLr/lulhNaPp5aKx99HcReZYi iGRw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=EY4bOmuK; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of jan.kiszka@siemens.com designates 40.107.20.54 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2054.outbound.protection.outlook.com. [40.107.20.54]) by gmr-mx.google.com with ESMTPS id s16si267518lfb.2.2021.12.16.06.30.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Dec 2021 06:30:44 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 40.107.20.54 as permitted sender) client-ip=40.107.20.54; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=EY4bOmuK; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of jan.kiszka@siemens.com designates 40.107.20.54 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lkUey6GDyjpN+wFREKAVQ+/TvE4SLlpteCtjT73iuwiGPa9Mh1WwdqrIb2bIj2toob+BoxrnY39dAuzA3g6x4wXzKCJaRG3zpTaW0sZwwbi1NxbpdOG3tuQfXD7R1KGxD4iufGQIhNE0RPUjoX4JzKvjnhAWvLXwEnn4rBiEiPdvAw/+UC81CxjQqJi/8n3AZtnjfnYzdSmUmVb8IuunfbZWWe+rhIEWVu19ahAGOF2hiGJR8oFgZ6KKKF3wMmkkar6RiN44f0jL3jSiEuCOmSyf0Xv83pv97D8e+YKTLPHYPOdu4kkJE5fQJnA8198/v/YEFon2ndH/AyZP7DExgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=Oa8Njtumf8AY34wct8VQEgnjCKCBmvjAGxyAGauhiAo=; b=ABFam6D51bWiS/U9hENJvhUhbK+cceEF5lEMIaVxznYJx1Aq6fXVCQMph15v/EhpeBikMsatS32RryMBvGFB3XL9jeVhmz8uw04KcZ6QwGBiWsCy2neD2bU/vCQY6kE+NahQzY5gky1Mv3L1l4sZi3zu+AG44WI97QpfmeIDRdYm/zpZZYAmhFdaub0LwdVbGVD9IDqLKFOvClZpFFnMjCAIi6iIO9v7RJa06hJtY2kHEEIhXwV2c/ZJ2iIc2n7a5qJy0y0TkBf65u8tod2z6tNwdrmpxQJTD1jcaK6rboUduzijINDxQuapZz95BlLCxWDvVYHj4ovOJ4rkizbgIA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 194.138.21.70) smtp.rcpttodomain=googlegroups.com smtp.mailfrom=siemens.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=siemens.com; dkim=none (message not signed); 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=Oa8Njtumf8AY34wct8VQEgnjCKCBmvjAGxyAGauhiAo=; b=EY4bOmuKYr2W8nTFePpMJ7U3TOeTyzlGH+rfnZMaHQDU2641pZazsDbeor79AOpQfb8MavmGdwawyVWWuGq9mKPJhDlPaI0iCVBjefN5ymydDAQzA6Rih9SMfdUKGabY1zy16qaTt0iDiQ/BITNxrEaTESOGMaRuoDyfXXwqMguaF8BGfeirnJaB2jHmYCR6u2wVR+HaDuOq+dflZ67oAzyvI4H5IlDGjl6b5qLg/eV3kmz2f/OzGFl89OBOuFlkpYfZmxleOCdZTgcXgNWcn01cSk/sbe7Zc4UsH5rd2mNV9Dri2rP7U/fLCig3BPJF5CPwU156ATBltNULsm0y+A== Received: from DU2PR04CA0051.eurprd04.prod.outlook.com (2603:10a6:10:234::26) by VI1PR1001MB1168.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:800:6c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4778.13; Thu, 16 Dec 2021 14:30:42 +0000 Received: from DB5EUR01FT007.eop-EUR01.prod.protection.outlook.com (2603:10a6:10:234:cafe::da) by DU2PR04CA0051.outlook.office365.com (2603:10a6:10:234::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4801.15 via Frontend Transport; Thu, 16 Dec 2021 14:30:42 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 194.138.21.70) smtp.mailfrom=siemens.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=siemens.com; Received-SPF: Pass (protection.outlook.com: domain of siemens.com designates 194.138.21.70 as permitted sender) receiver=protection.outlook.com; client-ip=194.138.21.70; helo=hybrid.siemens.com; Received: from hybrid.siemens.com (194.138.21.70) by DB5EUR01FT007.mail.protection.outlook.com (10.152.4.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4778.12 via Frontend Transport; Thu, 16 Dec 2021 14:30:42 +0000 Received: from DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) by DEMCHDC9SJA.ad011.siemens.net (194.138.21.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 16 Dec 2021 15:30:42 +0100 Received: from [139.22.140.88] (139.22.140.88) by DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 16 Dec 2021 15:30:41 +0100 Subject: Re: [PATCH v2] sdk: make SDK an image To: "Schmidt, Adriaan (T RDA IOT SES-DE)" , "isar-users@googlegroups.com" References: <20211215105513.3398693-1-adriaan.schmidt@siemens.com> <289e8f63-7b63-1a91-9c03-40f07ffdbc87@siemens.com> From: Jan Kiszka Message-ID: Date: Thu, 16 Dec 2021 15:30:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit Return-Path: jan.kiszka@siemens.com X-Originating-IP: [139.22.140.88] X-ClientProxiedBy: DEMCHDC89XA.ad011.siemens.net (139.25.226.103) To DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f8e1f4e8-57e7-46f5-737c-08d9c0a0a3ff X-MS-TrafficTypeDiagnostic: VI1PR1001MB1168:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PmUxL1YCR+GXA/5AzAED9GC6cLVH55/QVkqqXsr4bRi7cOmO4Emeb3fb+eP1/aMLFnIf+7rYcT+T8HtG5xXsFk+xWRr9zZGMCFrr0o2NRBLyCAOiD3f4DDzjMdNOCkr1NTikiOoqBarQ/Kib4UpSGyvjhje74d8x1l7yMD/syqhH0Fx/Yy49Yoll5XPqHO1hJ+AZ3hHSkuTpBXDJ7mKCCJY6+9I5g/CCB8nelF7C0BQKUg05O4lHOhznJ7fvTPjkYOQxpW3kApfricO+Y45t142vC4fasjtRd5Zt5Sdk8HUDbKEav036fLSwl7iATv4k3UADwx2LtVRhrDN75vXDHNwBI7SFYDhcN2VK/rKxRbQT6lupIXCpnTq+fCA6w8znm8Nf+cUt3KYyzytaOW1WTGVe2hIuTBKfvBXezs99DyrEz2f28kBfwOUvwdwXENJTFW1QrKRowi7CUgw6zhkFVqDX0tTuomW+oawo/PgDp59CHzFK9pv1O2ataLqbwEyRS/ZmhriwfIuDTi7+uAnuuu0ctAxOWl1hzFJd3CIAV14BizvmxtLFGjz/in4H1Pw+7nmnoMb6B/79zMuMN201P+sEo08FnO4GajkS5Z0uZTzrNiJnL3K2cy17CI2l7HW/L28SQJu3Yh5soTZAueLShojScWUQuL8fsKUuYcdakHr0xh7yiOiTZXrwMo5MKh+y77gbNnEnGumMNBZBKRNXJLJ4nG8u6LLotgThwRz3oVNaJc6lVakwKTS2LEm3H2tymU2DT0iCYaee1yEnGgsLtfxCCcZHIomeQ0Ree4tdKli6vubCToOqs+hm7kmnab9s0EbOFtdaJKielPPr48D0pG03biV1FYOvkvOi3WjkT+pBRYIPH8Upo5S14dVADwDo6V2CGJrgP3BpeG7Xubup8mxxbUSBys0kcw48WOHEgBI= X-Forefront-Antispam-Report: CIP:194.138.21.70;CTRY:DE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:hybrid.siemens.com;PTR:hybrid.siemens.com;CAT:NONE;SFS:(4636009)(46966006)(36840700001)(40470700001)(8936002)(508600001)(70206006)(36756003)(356005)(186003)(8676002)(53546011)(47076005)(2906002)(31696002)(7596003)(7636003)(336012)(44832011)(5660300002)(26005)(83380400001)(31686004)(110136005)(82310400004)(40460700001)(6706004)(86362001)(956004)(82960400001)(36860700001)(316002)(2616005)(16526019)(16576012)(70586007)(3940600001)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Dec 2021 14:30:42.7738 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f8e1f4e8-57e7-46f5-737c-08d9c0a0a3ff X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=38ae3bcd-9579-4fd4-adda-b42e1495d55a;Ip=[194.138.21.70];Helo=[hybrid.siemens.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR01FT007.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR1001MB1168 X-TUID: mP50CFWjU3Su On 16.12.21 10:12, Schmidt, Adriaan (T RDA IOT SES-DE) wrote: > Kiszka, Jan, 15. Dezember 2021 12:55: >> On 15.12.21 11:55, Adriaan Schmidt wrote: >>> This derives the SDK from image.bbclass (currently it only >>> inherits rootfs), removing the custom packaging, and instead >>> relying on existing features of image.bbclass. >>> Note that because there is not tarxz-img IMAGE_TYPE, we switch >>> the SDK type to targz-img. This is only temporary, until we have >>> the OE-inspired imagetypes. >> >> Then the ordering is also wrong: First make sure we can keep the >> previous output format, then refactor. >> >> Meanwhile, we can think about how to hook the SDK image build into a >> task of another image build, so that we move in the right direction /wrt >> configuration. > > I had a look at OE. There the SDK is something generated by the target > image, but it's something quite complex, with lots of Python code and > stuff in libraries. But except for the Isar SDK being simpler, it's > following the same idea. > > I now think: > - The SDK should be generated by the target image recipe, but maybe > more integrated than it currently is. (Put the logic currently in > the sdkchroot recipe into the image-sdk-extension class, so we can > easily use settings made in the target image recipe) > - The SDK should only be generated as tar[xz|gz], but not as container > - If someone wants an SDK image (container, development VM, ...), > that would be a separate recipe further processing the SDK, and the > user would need to create that recipe explicitly. I can imagine that > for the default case, this SDK image recipe would only have two lines: > include the target image recipe (to get all the SDK_* settings and the > do_populate_sdk task) and include some new class that makes the > adjustments to generate an "image containing the SDK" instead > of the original target image. But how do get from the tarball to the container image? You are suggesting to drop an existing and actually used interface (https://github.com/siemens/meta-iot2050/blob/master/conf/distro/iot2050-debian.conf#L48), but you do not provide an equally simple alternative yet. That can't be "someone downstream has to write a special class". And it's also unclear to me how to ensure that container images are generated corresponding to the specific target images. Jan -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux