From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6925703955981795328 X-Received: by 2002:ac2:4152:: with SMTP id c18mr2680380lfi.616.1612537125021; Fri, 05 Feb 2021 06:58:45 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:9ad2:: with SMTP id p18ls1732364ljj.5.gmail; Fri, 05 Feb 2021 06:58:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzYEKn5cweO6OmsAd+faCgzhxTG0qo9jnzJ42P08+2KYvB/wdwfSLPzuwIgAkmdJau9S3AJ X-Received: by 2002:a2e:3317:: with SMTP id d23mr3020056ljc.199.1612537123975; Fri, 05 Feb 2021 06:58:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1612537123; cv=pass; d=google.com; s=arc-20160816; b=BvBl4Iw7BeXSMUGNePJDe2mtIKrdAUsPuIwC2PlaFL7nFq6R7xlb/TWv5y62AHRdRs /RHHfmbbMR1rDKyPquKGN7B6fikmsBt986y+QzFnIXh7TQRQ6drSInWcWQvzLP0Ca8f2 5C9pSHSncMJ+AQn31K9Wsd9bWvpb+6caLSZS8lBl3PfWONWURt/ftjfL1a+UT8GMDGB0 aKT86rMmSPSQDQKD9jsot6XkSdQvvjtcP3tdjuXxd5kGQQUxfbbqRArWQTEz1Y06i/rm VDtqlnfU/PQCYegBzkYYzfe4u+q9FuTxwUi/SxPqbm9vS+r17zj3CerR+nTFxCgfrxZW i1Sw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-language:content-transfer-encoding:in-reply-to :user-agent:date:message-id:from:references:to:subject :dkim-signature; bh=PlbTJESz71291H7+79yukc4S2wyGPHweV+RVRRrv0w0=; b=UUhEvlbu9qm9QP0GbEiuF6B78s4aoPSgDmNom2CHUzMLgNglWpOH1bzxnNw9tkXL79 oeSn5KLx6DrDZi9S5byhDuXbeTyHW8vk54Yn8xAqgrFXXFcrcBF1be+Q9f+hvkye0QP6 iixP0X5OT9CI7fVM2Bb6ia1NAn7ddJA3VNa23xvQdwsejEKl27OeMyYhXNXbNjl3tlpC 7Ahdg3AJt5oJTqSP1bNGBE6/qCsjmNNadBjFjaJWaAecF8z6uHEvzizk+ANjaOi8PMOx lYoehmj4bQZesGNbGS0x57W+Od241A/sDLCWZ8leKrDzO5g4+NbYXJrSornn2MwGbYQF nJYg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.onmicrosoft.com header.s=selector1-siemens-onmicrosoft-com header.b=TngNMzBE; 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 silvano.cirujano-cuesta@siemens.com designates 40.107.3.88 as permitted sender) smtp.mailfrom=silvano.cirujano-cuesta@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30088.outbound.protection.outlook.com. [40.107.3.88]) by gmr-mx.google.com with ESMTPS id d7si492299ljj.6.2021.02.05.06.58.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Feb 2021 06:58:43 -0800 (PST) Received-SPF: pass (google.com: domain of silvano.cirujano-cuesta@siemens.com designates 40.107.3.88 as permitted sender) client-ip=40.107.3.88; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.onmicrosoft.com header.s=selector1-siemens-onmicrosoft-com header.b=TngNMzBE; 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 silvano.cirujano-cuesta@siemens.com designates 40.107.3.88 as permitted sender) smtp.mailfrom=silvano.cirujano-cuesta@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=oFdZ4BsKM8X7YyXOg8Wrpb9PQhu46q+02nMhgVgR0mJkAswUve9XsrhgW0KFiR15XNBUv2KsMVAFjUSmIBpQcTqDkBUr7pUH0Z8SHAlEdyTxmDykQv7KYLwoiTH4x+EgK0URN0XYJE9WpuXxxOV+XV01doGMToM/5/3savxTCCyYBoqKtL5ewuaheyQUD8LKlUUTgHaO/taFyVXf+spLATzkuGI5u2SVu39Kpfpw398K8VuM1SSqBrcoQg45OtfEXEbL1Yz8vJ3MLGpt7FlkhZTDHNJfYheqIeEtVrrp28FmZQH+gbc+UXcA/2jWEpumTmE3YiZBr0ji4aWjmF9GeA== 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-SenderADCheck; bh=PlbTJESz71291H7+79yukc4S2wyGPHweV+RVRRrv0w0=; b=NyMIC2r+VHX9YQwLH+9GbUA+ZmJKXtoRAdvEe4tgZgDv9Vr5Uq27mI2q/JQhNaJSkJuFtq/mBPNqF9PH55+OQkzGXx5PaJdcROzVLUEM6Sy/HL0G0rO/bUiaXyNCzPh2Azhe7h4cz4QhAKOe/S27ajY+6ddsOkAk3P+EJ/7h6+EoRgBZIJQquA4VzXJfOmA08wySGFUsOa+9CqrvfzhxQQ2pm8To6QOYM39LGgDTKRO6cB3MvqJlCKP7tt+EJxBZgIlbZrbCO2nLL7HzLzlNaNOYPC2AhF4/TrLsqUAayH2Y482zoB548glcJa+Okv+GzI6DeBmR6kYSjpnABKRYKQ== 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.onmicrosoft.com; s=selector1-siemens-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PlbTJESz71291H7+79yukc4S2wyGPHweV+RVRRrv0w0=; b=TngNMzBEzTTJA+JdPoElefYb2ziFtUlZcofVFJ7chPvVAnGo3lEu5rQX5akESLwQUXZeh3KIOh3EQFlnmgTbKAypDxluLZqvlrCVlMPkP4HNS5y0K6NvSHkYS49b2nbtMbZWYzO8dFsqV4kS806Jsyt+2IVNFaQz+5A9kXwtbXI= Authentication-Results: googlegroups.com; dkim=none (message not signed) header.d=none;googlegroups.com; dmarc=none action=none header.from=siemens.com; Received: from AM0PR10MB2708.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:12a::30) by AM8PR10MB4641.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:315::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.21; Fri, 5 Feb 2021 14:58:42 +0000 Received: from AM0PR10MB2708.EURPRD10.PROD.OUTLOOK.COM ([fe80::c035:62d1:fd79:1bc8]) by AM0PR10MB2708.EURPRD10.PROD.OUTLOOK.COM ([fe80::c035:62d1:fd79:1bc8%5]) with mapi id 15.20.3742.012; Fri, 5 Feb 2021 14:58:42 +0000 Subject: Re: [PATCH 2/2] docs: document usage of sdk container images To: Jan Kiszka , isar-users@googlegroups.com References: <20210205090827.17788-1-silvano.cirujano-cuesta@siemens.com> <20210205090827.17788-3-silvano.cirujano-cuesta@siemens.com> <90e5388b-cc20-1a1c-3a53-4734168d8205@siemens.com> From: Silvano Cirujano Cuesta Message-ID: Date: Fri, 5 Feb 2021 15:58:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 In-Reply-To: <90e5388b-cc20-1a1c-3a53-4734168d8205@siemens.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [2001:a61:3ba9:3102:e458:f9ae:a68a:ac3d] X-ClientProxiedBy: AM4PR05CA0026.eurprd05.prod.outlook.com (2603:10a6:205::39) To AM0PR10MB2708.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:12a::30) Return-Path: silvano.cirujano-cuesta@siemens.com MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [IPv6:2001:a61:3ba9:3102:e458:f9ae:a68a:ac3d] (2001:a61:3ba9:3102:e458:f9ae:a68a:ac3d) by AM4PR05CA0026.eurprd05.prod.outlook.com (2603:10a6:205::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.20 via Frontend Transport; Fri, 5 Feb 2021 14:58:41 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 3f4248e7-46a8-43f2-00a8-08d8c9e68728 X-MS-TrafficTypeDiagnostic: AM8PR10MB4641: X-LD-Processed: 38ae3bcd-9579-4fd4-adda-b42e1495d55a,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OfLx3iDiu0RTZmKktZp5s0Bdk5kb61YtGgt/PVtxY/4uMO9k6ujv9wmk4UxEviOP52G86qKy7dYXzkYz7XyYxtmZLQGp9kUMWkJpQ78W1ceyHiwrY2KoWbe4ER4hdH8WW3VZJzCyFcmVlcnFGwrQXXJF6/z83/R/PhHT3jCoGpYZIngW8oH8ilFTcSfewVutn8R81hnwv22IzxN4o3FXEfO/p2nt7FbTz1Sn8lRvThKrpa9MTrnDpk8aSpK2exENDzYmUE1nK5KSXLQJaJQnGkpwmsiu55uSMaWM59FLvJ5b0WUhwr2jG3gwQIqys6LO+03AE62rZQQ7tqnp3TPHKoU/HjAbmFHpX84llThMSOGmO2/QE9lTu8vVauD+asl35rt+uStoG160ctDQ+4hlmpmhx5Z9M6cEhxzJ5m0g/02L0BOPIUetJDRQrSexhgTMPTdADsuTRSEPPvQo1ljLGVaBmt8yg9nlkzj+ZEvqzpbuPGfMge+tGHgfzl08PRU6jf6mByZwZMWyQcV0DFU0e+OR+vkMtjWg1SEupt6rMpQSCsavj4PeMDOhxggGjQ42wcdmQRTrDvgfdkfbhO02ZX/LyEEFAsihf9XQOAZtEmBUqt2hSLmv/M3imLXq26ZHmjNUzjaD/ueau4oJYx4NRdm3mSig0vNXJ3csyZ8YREOQFaYs9Ra/5J0R50fEoUsz X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR10MB2708.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(4636009)(376002)(396003)(136003)(346002)(39860400002)(366004)(8676002)(83380400001)(53546011)(16526019)(966005)(6486002)(5660300002)(2616005)(186003)(66556008)(66476007)(31696002)(45080400002)(66946007)(36756003)(6666004)(2906002)(86362001)(316002)(8936002)(31686004)(478600001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?bDhRMExFTVVQYnR1aGxqd1R4YWZiNGxPUzY3NWZpcjNoelI1RjZocnF6ejVh?= =?utf-8?B?K0h3MWxjTnl5bnVKRnZTSDdURFRFK2o2REFObFNBTFB6b21KYnRqLzJwdXlu?= =?utf-8?B?cHk3WWJuVDQ0ZllxblJVWEUxME1tWGtkMzcvZnhwQ0l0OVFQT0E0dnhNZ0FJ?= =?utf-8?B?Z2l5QjQ1QytsWjY4dDA0OCthWGVBN0Q2R3dhVGpJb1RxWVlsUFpabHBZRjVK?= =?utf-8?B?ajROVEppTEJiRWF1QnNFd0JzSk9SVDc3ZGQ0YUpOUjBYOUFVUGhUY0xpWlp2?= =?utf-8?B?YnVubXNaUFlOWmh6alJvTW9zVEtKUyt1ekdQdzNTbUgrYXUwQUVUWFZYZ2N2?= =?utf-8?B?MGI1Vy9HTTRJRVd5Tm81eDhkeFMralM1TTF1ZGVaNXVKRG1hZXBwcExpaEVG?= =?utf-8?B?YVhQOUhsVWwreWlFQmUvNjQ1ZFZDSmU1ZVg3L1c4YlVpYSs4V2MrbGdtQ0Vq?= =?utf-8?B?cnVIZjBsNmhTUFd4UGIvQi83TkxtOE5wa29iSWRJSTFNbzU3VlN5SW1rZGh2?= =?utf-8?B?M0lWcUR0cmNFeFAzMk9vaWdIUnhueUxlQ2xNcmcrTUpiQ3o2RkhrMzZxd0RC?= =?utf-8?B?OTc1Um5STXlUV2poQXdXMTN5aVMrUWF0Sk14VkRMaWttWUlVRDNVRXcvU2N2?= =?utf-8?B?Uzk0WElIRE1mSVhLemtLbHdWcDczNHZwQmwyeFh5UDdLOTZhZzJjMCtKL3J4?= =?utf-8?B?RC9VVDhGSmRqeUNEZU1UY2pJT0NiM1VUN2p6d0J1UE9lQ2tkbHVpSmR5dTBn?= =?utf-8?B?VTdhZmNyTGkrYTQvcjRWdDdZYVA1L0JzT09HRmM3ekdhUWtHTG8xQUVGL25i?= =?utf-8?B?WUxQOStIdXVqMjJWdzF0RGVaY2FQL3hkU1BwUUQxL1lDQ1Y1WG1hcURkSFJ2?= =?utf-8?B?dUFIUVNjaEFzRlEwUEVHRjY0MHhBRmxldEthc1NtM25oajYxblVmc1Fma0c1?= =?utf-8?B?dW16VWdMNDNER3l5YkdKVkE2VkxOYml1cGZVQVVKOERYZUZmem9vNzFBS1ll?= =?utf-8?B?M3FwN2lEY2FWQ0x5WWt2dDdIR1NPMWt1dHg1TjVkRjhJbnJUcmRXSzA4Wlc3?= =?utf-8?B?WmdFUDJoeFdBanRpUGJGOHExcGxiZytWdnFCZG1UdWNZUmlwMHdBQlZFeWNM?= =?utf-8?B?MzdFSWdPcUcvQjdkVkdZY0VZWUJOTTNVK2FjeVIwZWhhWWptWVFzZ1cwemNy?= =?utf-8?B?OW1qQzNPdEovczFORE0vVkNreWhGVW15a2VoT1Q3NG92UWdyYW9xSjZmT0Mz?= =?utf-8?B?ODY4N3VFTlovOXhMNTg5aDZHazZUbjZMMXQ0QWVrNXI0TkpvWVd5Wld1ODk5?= =?utf-8?B?U0p1OFhmRUMySmRodUNnR1Z2bFc4c1lvT2FhU3VHZElVaDFudGZ6c2dTa0ZL?= =?utf-8?B?L1kyYmxPYU1lM1FuMGRyOXplbEY3UEo1TXg0bStPZ3VDYkdkaHRDdHZ3amda?= =?utf-8?B?VFlRbmVkMkJENDJjS0RqOU5YNmN4aWxmNko2d0JmbTFwWkN4eGZNL1IrVEJy?= =?utf-8?B?STFGZjB6TWhLUkFLVnY0R05LQnFMNkRYSjR6b0FZVjU2WG1XOUYzZDNONW43?= =?utf-8?B?M1QwR2J4aExHUnlSdm5jT2FOS2FwdU9TOTNBN05PeWZPbnZCNzZ5TkdXUXpq?= =?utf-8?B?VTBRRnYxQjlFMVo5aExpS0xqSk15Z1ZvYTYwR2RUaGxvd21YQUVBOFYwckVO?= =?utf-8?B?dmo5c3Z6L1pxcGVVNzROWFhEemJ4dm0yN0lCdlp4UVdONDdETFkxYmhEMWdM?= =?utf-8?B?Q0lvaU43Zm1hTFhxTEZLQ0tvY1RtdldCSWJsQ0t2Q0ZGbFFSeVd2MFp3QmNI?= =?utf-8?B?empBbWNpaWdJeWlobXZCZS9McDhlR3QvZ0RmT0Z3eWdKY1AzZ1hRL1JmRml6?= =?utf-8?Q?+RUCAMbT1aQUr?= X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3f4248e7-46a8-43f2-00a8-08d8c9e68728 X-MS-Exchange-CrossTenant-AuthSource: AM0PR10MB2708.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Feb 2021 14:58:42.5109 (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: RfZ8cX8nZ036QPO/THwjgpOXV/8pZHldTKeqK47e23u80/t+JOkcx+31RxEuo4Zz4qbZa66FB9A8aJnB+2KUcQudTh7So5YAvzy3CSMgNRg86KU8cPd7Fnb/OmKUxHv2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR10MB4641 X-TUID: Gg4T8IDxDdK6 On 05/02/2021 12:07, Jan Kiszka wrote: > On 05.02.21 10:08, [ext] Silvano Cirujano Cuesta wrote: >> Signed-off-by: Silvano Cirujano Cuesta >> --- >> doc/user_manual.md | 79 ++++++++++++++++++++++++++++++++++++++++++++++ >> 1 file changed, 79 insertions(+) >> >> diff --git a/doc/user_manual.md b/doc/user_manual.md >> index a4f3d1d..7863241 100644 >> --- a/doc/user_manual.md >> +++ b/doc/user_manual.md >> @@ -19,6 +19,7 @@ Copyright (C) 2016-2019, ilbers GmbH >> - [Add a Custom Application](#add-a-custom-application) >> - [Enabling Cross-compilation](#isar-cross-compilation) >> - [Create an ISAR SDK root filesystem](#create-an-isar-sdk-root-filesystem) >> + - [Create a containerized ISAR SDK root filesystem](#create-a-containerized-isar-sdk-root-filesystem) >> - [Creation of local apt repo caching upstream Debian packages](#creation-of-local-apt-repo-caching-upstream-debian-packages) >> >> >> @@ -84,6 +85,9 @@ If your host is >= buster, also install the following package. >> apt install python3-distutils >> ``` >> >> +If you want to generate containerized SDKs, also install the following packages: `umoci` and `skopeo`. > This packages should probably also be listed under > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Filbers%2Fisar%2Fblob%2Fmaster%2Fdoc%2Fuser_manual.md%23install-host-tools&data=04%7C01%7Csilvano.cirujano-cuesta%40siemens.com%7C6b8f60d2fae94496197d08d8c9c6403a%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637481200603194744%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=VF1U9PGhurVgbH%2BoILbmSfAnBYWUL%2BwylXZ0N2xoG6g%3D&reserved=0, > as optional and with a pointer to here for all the details. I'm puzzled now. That's the document and section where this addition goes to... Am I missing something?  Silvano >> +Umoci is provided by Debian Buster and can be installed with `apt install umoci`, Skopeo is provided by Debian Bullseye/Unstable and has to be installed either manually downloading the DEB and installing it (no other packages required) or with `apt install -t bullseye skopeo` (if unstable/bullseye included in `/etc/apt/sources.list[.d]`). >> + >> Notes: >> >> * BitBake requires Python 3.4+. >> @@ -834,6 +838,81 @@ ii crossbuild-essential-armhf 12.3 all Inf >> ~# >> ``` >> >> +## Create a containerized ISAR SDK root filesystem >> + >> +### Motivation >> + >> +Distributing and using the SDK root filesystem created following the instructions in "[Create an ISAR SDK root filesystem](#create-an-isar-sdk-root-filesystem)" becomes easier using container images (at least for those using containers anyway) >> +A "containerized" SDK adds to those advantages of a normal SDK root filesystem the comfort of container images. >> + >> +### Approach >> + >> +Create container image with SDK root filesystem with installed cross-toolchain for target architecture and ability to install already prebuilt target binary artifacts. >> +Developer: >> + - runs a container based on the resulting container image mounting the source code to be built, >> + - develops applications for target platform on the container and >> + - leaves the container getting the results on the mounted directory. >> + >> +### Solution >> + >> +User specifies the variable `SDK_FORMAT` providing a space-separated list of SDK formats to generate. >> + >> +Supported formats are: >> + - `tar-xz`: (default) is the non-containerized format that results from following the instructions in "[Create an ISAR SDK root filesystem](#create-an-isar-sdk-root-filesystem)" >> + - `docker-archive`: an archive containing a Docker image that can be imported with [`docker import`](https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.docker.com%2Fengine%2Freference%2Fcommandline%2Fimport%2F&data=04%7C01%7Csilvano.cirujano-cuesta%40siemens.com%7C6b8f60d2fae94496197d08d8c9c6403a%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637481200603194744%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=fMI3heAmHRkFvQj3euZcbFYS0wkhIjM3hyw5FzOjyes%3D&reserved=0) >> + - `docker-daemon`: resulting container image is made available on the local Docker Daemon >> + - `containers-storage`: resulting container image is made available to tools using containers/storage back-end (e.g. Podman, CRIO, buildah,...) >> + - `oci-archive`: an archive containing an OCI image, mostly for archiving as seed for any of the above formats >> + >> +User manually triggers creation of SDK formats for his target platform by launching the task `do_populate_sdk` for target image, f.e. >> +`bitbake -c do_populate_sdk mc:${MACHINE}-${DISTRO}:isar-image-base`. >> +Packages that should be additionally installed into the SDK can be appended to `SDK_PREINSTALL` (external repositories) and `SDK_INSTALL` (self-built). >> + >> +Following formats don't work if running `bitbake -c do_populate_sdk ...` (to generate the containerized SDK) from inside of a container (e.g. using `kas-container`): `docker-daemon` and `containers-storage`. >> +It's technically possible, but requires making host resources (e.g. the Docker Daemon socket) accessible in the container. >> +What can endanger the stability and security of the host. >> + >> +The resulting SDK formats are archived into `tmp/deploy/images/${MACHINE}/sdk-${DISTRO}-${DISTRO_ARCH}-${sdk_format}.tar.xz` (being `sdk_format` each one of the formats specified in `SDK_FORMATS`). >> +The SDK container directory `/isar-apt` contains a copy of isar-apt repo with locally prebuilt target debian packages (for ). >> +One may get into an SDK container and install required target packages with the help of `apt-get install :` command. >> +The directory with the source code to develop on should be mounted on the container (with `--volume :`) to be able to edit files in the host with an IDE and build in the container. >> + >> +### Example >> + >> + - Make the SDK formats to generate available to the task >> + >> +For one-shot builds (use `local.conf` otherwise): >> + >> +``` >> +export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE SDK_FORMATS" >> +export SDK_FORMATS="docker-archive" >> +``` >> + >> + - Trigger creation of SDK root filesystem >> + >> +``` >> +bitbake -c do_populate_sdk mc:qemuarm-buster:isar-image-base >> +``` >> + >> + - Load the SDK container image into the Docker Daemon >> + >> +``` >> +xzcat build/tmp/deploy/images/qemuarm/sdk-debian-buster-armhf-docker-archive.tar.xz | docker load >> +``` >> + >> + - Run a container using the SDK container image (following commands starting with `#~:` are to be run in the container) >> + >> +``` >> +docker run --rm -ti --volume "$(pwd):/build" isar-sdk-buster-armhf:latest >> +``` >> + >> + - Check that cross toolchains are installed >> + >> +``` >> +:~# dpkg -l | grep crossbuild-essential-armhf >> +ii crossbuild-essential-armhf 12.3 all Informational list of cross-build-essential packages >> +``` >> + >> ## Creation of local apt repo caching upstream Debian packages >> >> ### Motivation >> > Jan > -- Siemens AG, T RDA IOT SES-DE Corporate Competence Center Embedded Linux