From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 05 Jul 2024 09:54:51 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f63.google.com (mail-lf1-f63.google.com [209.85.167.63]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4657sopx015134 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 5 Jul 2024 09:54:50 +0200 Received: by mail-lf1-f63.google.com with SMTP id 2adb3069b0e04-52e969d34a9sf1765638e87.2 for ; Fri, 05 Jul 2024 00:54:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720166085; cv=pass; d=google.com; s=arc-20160816; b=Z7EzZ+8GBXNoqYS7D/gvaTBNWX3aOFDzZ4zfgKDPacgijdnSt+FjT8J84BqeZQfUMb 7V/d5Q7I1z+avYR0A8SI7hi6SgdoZemaIP2IYil3GiZQLhM87r5UsTKripkDVCp8tGdZ jjDZJGnh32L2tdyvAD2MxD+5J8pTm6B2FBzaU73Yw6D1n0nKAZjKURQ35fk5NMoWlMn4 AquIA3ujddHPxTILTbMSZhME7DzdCnrNnevn1Wf2Z22wfC+bsIZ75ztWHdK3fn1IXn4k k3ZUMpADLQhZomJ2zEMPXi1Qa5cgwsFU5/Lr2DmZaNOATioix9kI8fupzNX+KdLZMCA/ CStQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id:sender:dkim-signature; bh=DwkyS3WRGZlqZV0aNPcXjwnTktano1ccClPwcwtTfcI=; fh=ZDIr+ZySa/HbwKmncMUU/UQyoQgAVYgTczZnm5sSQV4=; b=D7BkxMaBL0Dq/4/rttPV9gu1u3KECx96//7+I7h3KSCiYu+qlDUSaOEbpANdXRGZCq Es1lnwf2OXYbspjz1/wBqpCNbSkHpFriPfTmn0UGWddifhUIun4LdEF33fXaNut2TCbs TYGKY1aastYYR5suzQBAgybI3gz44TVmnfP+Q2HEn8uoJPZci0I1uQhe5TZkZmuswDJC LHisSjeAKkqfixEJzlY6aDSl7nfh+mK4NwGfmv1JChxw0JKgAru70OtviYxhKZ+H95Sl tZSnnpIRbmlfUL+5FAMno4F45UH9O1dMrpncEGeHO3WHt9MT1Xnuz8lWTGsJoUhZhYe5 tL2Q==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1720166085; x=1720770885; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:user-agent:content-transfer-encoding :references:in-reply-to:date:to:from:subject:message-id:sender:from :to:cc:subject:date:message-id:reply-to; bh=DwkyS3WRGZlqZV0aNPcXjwnTktano1ccClPwcwtTfcI=; b=L+y9ovlUOVO1UeRREP32O8vjUhk+7quK+vZBzndYS/zV5WTdl03Z8HSX+k5FX173Iv VmndG1q/HM+so89Ymsp51BmzTkmTnUjcDI8P3DpcpTO9MqnCzp6Wua1zwxKI0RliWWTQ oHVI3zH3JeeAE9ZKNlR0inWq57S24riszit5D6m0K5ZJJSGVnT4S3V3SXKXV0QogZtan 0mezf8B5brnry/GPwuzH1jlCGpBuggtDU3zXmEoN/es16V+z/gl3+ak4lrASsljqYlLo uOkaDXOod4gS6gRDXnwIwVgJVzuSzzpmizIOSE6DJSAZyo7GA7fAraFO84mjg2OuUe4i lv0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720166085; x=1720770885; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :user-agent:content-transfer-encoding:references:in-reply-to:date:to :from:subject:message-id:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=DwkyS3WRGZlqZV0aNPcXjwnTktano1ccClPwcwtTfcI=; b=W8tc5G0D9I1xfrpbD8YiWf9gabgyY5u+ZVJz1Uxst5thxXHWUXnQINb2n8B6IgauWA Bsa/+cLTlt2rrprISDRqxsgnpY5v3FZG9Hlyq8CfwJl6GrwY909YwklRJLng+7YSl/Rg /bZJi41ywlAzbeIoX7rwesEQn8SdehczAJNIvc4FlxqcdojqRH+x1oCio9IAKl7Fc3BJ thi9R59rHzhZwBYM5wYucIYQLx2VK1KRqQW7Cnkp/hmsBTS3tUnokkryFzjbvMIZNnr8 FlsHJ4B6z2HwVzmXQrUGfoISp8+XgTRbHDlk5ySIYvkKJCRODVbj5zwQiZiqr+K4WM+K lf3A== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCWEPJDp8RRZ+xa1PZqCdENK/TCbVbqT/uZ5gtjH00UVla+1llA37cBcFM19fU9zeBOprI+NMLAMQX65wSptYV7ZSww= X-Gm-Message-State: AOJu0Yy/2cwtt0fWQIuc4//FEvcfrl6f+jDHY0KHLmHl9M3rA7lWum2g lahEx2Yeu5aGlJnPeRxwTZD0gkzLzlsl8JEdjF5DdQHNtgNSkKNO X-Google-Smtp-Source: AGHT+IFFU3yVOuY5DYB9OhovJn7Ca4NzFrRoAwKVlZuOOiRv7SxHTShaSMaCeDwgZBbWe2e/jqxaOQ== X-Received: by 2002:a05:6512:1595:b0:52b:c33a:aa7c with SMTP id 2adb3069b0e04-52ea06c95edmr4015239e87.65.1720166083636; Fri, 05 Jul 2024 00:54:43 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:4344:0:b0:52e:9d2f:232 with SMTP id 2adb3069b0e04-52e9f14c3d4ls734451e87.0.-pod-prod-05-eu; Fri, 05 Jul 2024 00:54:41 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXzbLP6Ofttk0KBlsyADrWTQcZymPg8I+jU/kTcceLX4tTrskc3xoUqFPlmlFDY0t3RI+F+ecChaAH3b9mG1OoDygJMiRsFXoUAsPE= X-Received: by 2002:a19:ca1d:0:b0:52c:9877:71b7 with SMTP id 2adb3069b0e04-52ea06c758fmr3416910e87.59.1720166081098; Fri, 05 Jul 2024 00:54:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720166081; cv=none; d=google.com; s=arc-20160816; b=K6i8oPEtMOBXfSk7OnCXvv79U/19ymEzQV607iy1eteuUXReZXRBxB+rOtF2z3aWCs piZ/D3MP8BsZGKLc9MKXL8V28d614Z1A39RS3AtKIeOQglpQhOwmAB8SyL1590LuZ6dB W6BBaP0NOJY2JJ2nwAD3zVO2Hkdggulh3myMgTtvYC2iFt0/Wf17Xm9bvr9xBGiIYmYW GHtiZlT9POT+aKOCxQA8rpSxFazx3eyKYAHIufbZz+nqvBqOE7JHznMwtd2h91SDgQEY 1eoVpnELAXLSCVQbXK9t68SeupKbT16ym0VP3VsSAB1t5uFlsHzS/YXJEwZTlkyMFxAu oAlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id; bh=8pUCQnfhv36pQUqq4a1aNrNDajDwaTyToghgyq8hzR4=; fh=Tt+QZPl8InvvQiqWE8dn1KNN3qFrG4iA3xKQeVxUbEk=; b=udbAIVFa2k+A6Et/UaGMb9D5JAs0MrY28YV0WZ2PkujXJWCWczSIRg3LQqqLbqfepg sUzRSPmn+GBbv9imMNEK7ZNI+dKUrm58aVOPZsSt9DLF3c1NPXBaUqS1Q3SS3lPvNbK4 4WBxwUFKMaiPUMfpEniZ0hCVld8s8AP1E1wWXvuneD/a+qytLEvpoZPURXRq1PQoAyve WZmCPurib6R6cMnj2K3+Ich4oCoaECUlBQnvRBfclpiA40HBpEkom7vdmB9LpFjNeQOO 53Dm/To+yvjWed+Fz14F+xKiK4D0OmHYKKMRjZpjo6LuI8FRV81acPIaCrJ1V6wfkolj VHRw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 2adb3069b0e04-52ea5d07cc6si15291e87.3.2024.07.05.00.54.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Jul 2024 00:54:40 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [127.0.0.1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 4657scar015122 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 5 Jul 2024 09:54:39 +0200 Message-ID: <2d99f3d0a9f222be54e4685c6a28ec0022fe9c5c.camel@ilbers.de> Subject: Re: [PATCH] image: allow multiple image recipes to deploy DTB_FILES From: Uladzimir Bely To: "cedric.hombourger@siemens.com" , "isar-users@googlegroups.com" , "Kiszka, Jan" Date: Fri, 05 Jul 2024 10:54:37 +0300 In-Reply-To: <4c2171a5857d5c22ff1810f237235b561a13654c.camel@siemens.com> References: <20240705071856.904-1-cedric.hombourger@siemens.com> <2f1bad7a-5e81-468b-8c75-804e7cee1a49@siemens.com> <4c2171a5857d5c22ff1810f237235b561a13654c.camel@siemens.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.2 (by Flathub.org) MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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-Original-Sender: ubely@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de 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-TUID: V1X0VUdSIC/O On Fri, 2024-07-05 at 07:47 +0000, 'cedric.hombourger@siemens.com' via isar-users wrote: > On Fri, 2024-07-05 at 09:37 +0200, Jan Kiszka wrote: > > On 05.07.24 09:18, 'Cedric Hombourger' via isar-users wrote: > > > sstate is checking for overlapping files in DEPLOY_DIR and will > > > raise an error when building a second image for a machine that > > > uses DTB_FILES. > > >=20 > > > Reproducer: > > > =C2=A0 bitbake mc:phyboard-mira-bookworm:isar-image-base > > > =C2=A0 bitbake mc:phyboard-mira-bookworm:isar-image-debug > > >=20 > > > Signed-off-by: Cedric Hombourger > > > --- > > > =C2=A0meta/classes/image.bbclass | 4 ++++ > > > =C2=A01 file changed, 4 insertions(+) > > >=20 > > > diff --git a/meta/classes/image.bbclass > > > b/meta/classes/image.bbclass > > > index c29d9e26..8b316c83 100644 > > > --- a/meta/classes/image.bbclass > > > +++ b/meta/classes/image.bbclass > > > @@ -27,7 +27,11 @@ INITRD_IMAGE ?=3D "" > > > =C2=A0INITRD_DEPLOY_FILE =3D "${@ d.getVar('INITRD_IMAGE') or > > > '${IMAGE_FULLNAME}-initrd.img'}" > > >=20 > > > =C2=A0# This defines the deployed dtbs for reuse by imagers > > > +# Since we may be building several images with the same set of > > > DTB_FILES, silent sstate > > > +# overlap checks > > > =C2=A0DTB_FILES ?=3D "" > > > +DEPLOY_DTB_FILES =3D "${@ ' '.join(['${DEPLOY_DIR_IMAGE}/' + > > > os.path.basename(dtb) for dtb in d.getVar('DTB_FILES').split()]) > > > }" > > > +SSTATE_ALLOW_OVERLAP_FILES +=3D "${DEPLOY_DTB_FILES}" > > >=20 > > > =C2=A0# Useful variables for imager implementations: > > > =C2=A0PP =3D "/home/builder/${PN}-${MACHINE}" > >=20 > > There is still > > https://patchwork.isar-build.org/project/isar/list/?series=3D1209 > > =C2=A0pending > > which looks much less risky to paper over a real conflict. >=20 > Thanks Jan. I had missed this RFC patch series. >=20 > That said, while it will solve the problem we are having with > building > multiple images with MACHINEs using DTB_FILES, it does not seem to > solve the problem of a build where we are building multiple kernels > (e.g. -rt and non-rt) for a given MACHINE: both kernels will be > shipping the same DTB_FILES. >=20 > On our side, we happen to have that use-case on our side as well. >=20 > Cedric Hello all. Yes, patchset v2 (non-RFC) for this is still in "work-in-progress" state. There are some issues we faced with: - Parallell building issue. If some machines of same arch use the same linux recipe, but have different "DTB_FILES" value, we have sstate- related conflict for the linux recipe ("multiple execution detected..."). This is currently solved by splitting workdirs by adding "-${MACHINE}" prefix here. - Since "linux-distro.bb" now inherits dpkg-raw bbclass, it builds something. And in case of empty DTB_FILES it looks a bit useless (we build empty deb in fact). >=20 > >=20 > > Jan > >=20 >=20 > -- > Cedric Hombourger > Siemens AG > http://www.siemens.com/ >=20 --=20 Best regards, Uladzimir. --=20 You received this message because you are subscribed to the Google Groups "= isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/= isar-users/2d99f3d0a9f222be54e4685c6a28ec0022fe9c5c.camel%40ilbers.de.