From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7354299914861412352 X-Forwarded-Encrypted: i=2; AJvYcCWpMoB1j38fE/72EZaI4Pu/Sjoy+0M7yP4zwmENdjoVJYAF1HLOOsGYWUVNelFNjALHSP4GHxKpTCV6qpQ+R1m4XRuW66VIACTuOIo= X-Received: by 2002:a05:6000:248:b0:355:21f:be1f with SMTP id ffacd0b85a97d-35526c155b3mr6718533f8f.4.1716881346557; Tue, 28 May 2024 00:29:06 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:fd85:0:b0:355:3f3:c114 with SMTP id ffacd0b85a97d-355cb253d14ls1187659f8f.2.-pod-prod-02-eu; Tue, 28 May 2024 00:29:04 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUmpPeO21EWbgkB052FRM0jB4NN80YMXBFxypkOPZNw1kG71fpZUV9wPfpWZoIPx3jHIpj7mClGdLvTZqDicmLtcnviZxLPlk71pBQ= X-Google-Smtp-Source: AGHT+IHON5vBoEzQCKtUVSWdZv0S1IkF9B35oNhr9zPHo5ZuKtIOOnT0fKlQZy7ZPX59EMKcap0j X-Received: by 2002:adf:e681:0:b0:34e:2814:875d with SMTP id ffacd0b85a97d-35526c2bfa7mr8197396f8f.26.1716881344485; Tue, 28 May 2024 00:29:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1716881344; cv=none; d=google.com; s=arc-20160816; b=fiPMfpTDS9ErLoSVfxq4XJlIco5bZuPXNtb8SzJCESRKTQJNGMGEK5YMKi6NapcvQK JmAPBJNHtr0oIHUeE2dVB0o9SxWha0u4pBGno0z3GP8ISQEJAAPnvKkV3P5CTVfxovLy XPcrnjyGE0LaUczBXegLMZCmDxuGBo/tjScE+mUPXcPUQyLSjuy8HCegV4DvkF6RRi2q ZL+POKwM0ktWQj/QV2GvFJpl4JMjM3Mlecw3E68Qz9P6OP911/UkHwID12YzCbV6+1OA FSFWBFv/OR/sYRyG3/1IZs1B1i8qvLLtXroXWMDTIGUeN9iGogYQvR4bmM8gMEdHTno3 MIGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=5Ol5J7gICYfDTNLASfP9713Yjtizg2zm6em96IZ8QbM=; fh=7VdizxBYCCFxpG4mcWVuKAmArSjYtUilDTlSG+YiUUA=; b=H9JtztLlhVWq3+CJsuf1IG2UxIXEfxGg+GmnqdPPgJfuZusNdXa3z2gK2DZ8RqgKyN D6k8MEKBIoE+iHPjBTD0lib/Act3Gec5pJCt+Og6wEE5GTwnjUxg0JgCigkEPyM9vJGv w7bUZYxneFbQG4tSWipb/YOqFCbA7sOohQRTTxg55/OOq7i/stDQX3TxTxTe/SK6fvZs kGT6VUi5EusPJ7cuXPhb2LapdAbWbGNHKrb1kvmjpPvyjwd11eECSJAr+Ktl1fzRh3OJ RJQtNKBSh43BxNqklygftn8/QhzAdAjtAOO/t/hKj78OEZPXmEXHnMWYWdCrpm0uqNl2 aNDw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=o93JL8Xa; spf=pass (google.com: domain of ch@denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=ch@denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by gmr-mx.google.com with ESMTPS id ffacd0b85a97d-355656d439esi161164f8f.2.2024.05.28.00.29.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 00:29:04 -0700 (PDT) Received-SPF: pass (google.com: domain of ch@denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=o93JL8Xa; spf=pass (google.com: domain of ch@denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=ch@denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Received: from [10.0.200.95] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ch@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id C08CB88405; Tue, 28 May 2024 09:29:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1716881343; bh=5Ol5J7gICYfDTNLASfP9713Yjtizg2zm6em96IZ8QbM=; h=Date:Subject:To:References:From:In-Reply-To:From; b=o93JL8Xa+cf6igDQJztRkO5yt36DHml1R0bVqJOcU5e1v5iMZHCSQtrdQL8kdy2wt eZ730nzJAApGGBWRlBIrn7nKIJYUv3zhzgQqzjLe90LxNA7bYMjSABps1Z6zIqh2y4 hdVcHVSP7hPTTf26FELZDR1NZWkG+pcCIKSmOUCdgFbImFtRd+lrBesRd1tZXQDIU8 e6tP4AqfjM0oW9CxGmIH2sjdmmp+02DPjhVZA1iz/569llZ90nY/HNMyPKvDcB6AHV 6pFBFqmdnZQb3OPbvb1SmyapMLkIP95cpTStVCMa+9qhmgm9esrverQVCVqoMIk2r9 0HgDiZWS4qehg== Message-ID: Date: Tue, 28 May 2024 09:29:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Accessing sbuild build-directory To: "Scheler, Fabian" , Uladzimir Bely , Anton Mikanovich , "isar-users@googlegroups.com" , Jan Kiszka References: <81b2fa44-feae-4ddd-80bf-fd6b0e5fe852@siemens.com> <2b33407e-bfcf-4ebb-88a3-6347a1f13aec@ilbers.de> <4cbee698-bbaf-4d5d-8594-818a93a17f6f@siemens.com> <1d0a149b-a5b7-46d2-a4fa-3eb66dc50723@siemens.com> Content-Language: en-US From: Claudius Heine Organization: Denx Software Engineering In-Reply-To: <1d0a149b-a5b7-46d2-a4fa-3eb66dc50723@siemens.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean X-TUID: uJD2Ad4s9UwT Hi everyone, On 2024-04-05 3:10 pm, 'Scheler, Fabian' via isar-users wrote: > Am 05.04.2024 um 12:03 schrieb Scheler, Fabian (T CED EDC-DE): >> Am 05.04.2024 um 11:57 schrieb Uladzimir Bely: >>> On Fri, 2024-04-05 at 12:09 +0300, Anton Mikanovich wrote: >>>> 05/04/2024 11:38, 'Scheler, Fabian (T CED SES-DE)' via isar-users >>>> wrote: >>>>> Hi all, >>>>> >>>>> I want to extract the coverage information (i.e. the gcno-files >>>>> created by gcc) that is generated during the package build via >>>>> sbuild >>>>> and I look for some hook that allows to access the content of the >>>>> sbuild build-directory after the build from within a recipe. >>>>> >>>>> Is this possible? >>>>> >>>>> Ciao >>>>> Fabian >>>> >>>> Hello Fabian, >>>> >>>> You can refer to sbuild documentation for hooks explanation. >>>> The last one executed inside session before its cleanup is >>>> '--chroot-cleanup-commands'. >>>> So you can modify dpkg.bbclass adding any custom commands with this >>>> hook. >>>> >>>> There are no already implemented dummy pre/post hooks for now, but we >>>> can try to >>>> implement them in future if needed. >>>> >>> >>> FWIW, perhaps 6d5fbbab could be used to quickly play with custom hooks >>> to sbuild process. A different approach can be chosen for the final >>> implementation (if any). >>> >> >> thanks for your quick feedback. Yes, injecting arguments to sbuild like >> proposed in 6d5fbbab should be an option. I'll give it a try. > > FYI: Injecting --post-build-commands finally did the trick, but it is > not really nice. However, there seems not to be another option to > accomplish that. Unfortunately 6d5fbbab has been reverted and I can > follow Jan's arguments, maybe this is a use-case justifying the extension. I am currently struggling with a similar issue trying to extract the `.config` used to compile the swupdate recipe from cip-core [1]. Because the debian package uses multiple different build profiles as well as a base debian defconfig to generate a `debian_defconfig`, which is then used to generate a `.config` it becomes very difficult to verify if the configuration I patched into the base debian defconfig has actually applied or was overwritten by something else along the way. With openembedded you could just look in the build directory and see if every option that you wanted is set correctly in the `.config` file, but here this is not possible. It might be possible to add the `.config` into a binary package and read it from there, but there should be an option to investigate the build directory in isar itself. [1] https://gitlab.com/cip-project/cip-core/isar-cip-core/-/tree/master/recipes-core/swupdate?ref_type=heads > > Ciao > Fabian -- DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de