From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6464921707679318016 X-Received: by 10.107.48.78 with SMTP id w75mr11018737iow.37.1505315381976; Wed, 13 Sep 2017 08:09:41 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.36.127.21 with SMTP id r21ls3351959itc.11.canary-gmail; Wed, 13 Sep 2017 08:09:41 -0700 (PDT) X-Google-Smtp-Source: ADKCNb5TWfiDHiIydzMhDq2Pk1exB7PPEphcCpe5CyZMJai8ogpIiuUfDkR+Qg96H3p/SXFN2zUt X-Received: by 10.13.209.6 with SMTP id t6mr11916203ywd.146.1505315381482; Wed, 13 Sep 2017 08:09:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505315381; cv=none; d=google.com; s=arc-20160816; b=roD12h8veWKYahVNhm6pbdTtYFKzOEcvusWMGkQSDO5LfV6H61pM3PMTXjgM6GNjM+ nrd11nppq9TT6VxGhAhkKRRcLnNfUuZkPbN3tObb+Z9NyyRK8aakdZ2G6cKLIX/q8x1K iQCRrX52x/c6OT+1TV1LJYipNHYYXGtge5ikmmOPMRHiyhRXDDmo5eZ0VVv+E+9obRnF NQv9So2d+KubyIN2k/mffd0hrQv4X7fQVMN4TZ4bFtHz9CM2P/OrJS4wUEJNzGUzems6 90Gc0uQDLjm/sFVikWSzuPDkeQ8NPY92omkC2OoP5IgLST9dZ2Nlje1kHmbgaFhRSLZI 7BVA== ARC-Message-Signature: i=1; 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 :arc-authentication-results; bh=fquvUa6wv4MpAZA4anvUIPYyM9KHjTDNTAja6PlLeLY=; b=ynGwiHooIk0tQ43hpO7gx5UKadvi87Gwk64aL1Qsw/2+GJrnMMbHlZRlRR4QvrUK2z aTEi2fR2LOhnXDl5nKndHF+AoYL8k8EWbLp0hFP6uZROMGP6WxCzhML8Aqan8OwS22M5 C5p3o4GDit0ndvrup/S00Li8miLJ4g8rdY2Vf6L3j1mihLEhLlTLeZ8X54NRSmiEtBdt bcTwWlHq5I/1BWVunX8ctahM2h6oNgHLdZZ9xjLVQfLPYaEUtMSfE+qEAw3nk2nMI6z2 ZH+/uSFDlsP2Ay9d7PU77X/HwXELvJBqtsog5beiIxJ2E92x+mxUKq8edUvSsyUkNVJF wbcA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id m69si30347ith.8.2017.09.13.08.09.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Sep 2017 08:09:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from [10.0.2.15] ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id v8DF9b1Y012302 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Wed, 13 Sep 2017 17:09:39 +0200 Subject: Re: [PATCH][FYI] dpkg-raw: Allow multiconfig build To: isar-users@googlegroups.com References: <20170912155810.9434-1-henning.schild@siemens.com> <20170913150020.9927-1-asmirnov@ilbers.de> From: Alexander Smirnov Message-ID: <0d4f7101-2608-dd43-443d-516aecb54943@ilbers.de> Date: Wed, 13 Sep 2017 18:09:32 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170913150020.9927-1-asmirnov@ilbers.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: RQgoisUfWzUe P.S. all the multiconfig builds have been completed, no more issues found. On 09/13/2017 06:00 PM, Alexander Smirnov wrote: > Add suffixes to stamps for tasks defined in dpkg-raw class. This allows > to use multiconfig. > > 8<-- > > If I build Isar using command: > > $ bitbake multiconfig:qemuarm-wheezy:isar-image-base multiconfig:qemuarm-jessie:isar-image-base > > There will be the following stamps created: > > 1. Without this patch: > > $ ls -1 tmp/stamps > > ... > example-raw-0.1-r0.do_build.raspbian-jessie-armhf > example-raw-0.1-r0.do_deb_package_conffiles > example-raw-0.1-r0.do_deb_package_prepare > example-raw-0.1-r0.do_fetch > example-raw-0.1-r0.do_populate_package > ... > [example for hello package]: > hello-1.0-r0.do_build.debian-jessie-armhf > hello-1.0-r0.do_build.debian-wheezy-armhf > hello-1.0-r0.do_fetch > hello-1.0-r0.do_unpack.debian-jessie-armhf > hello-1.0-r0.do_unpack.debian-wheezy-armhf > ... > > In this case, the "example-raw" package will be processed only once, so for > all the other architectures bitbake will ignore tasks execution. > > 2. With this patch: > > ... > example-raw-0.1-r0.do_build.debian-jessie-armhf > example-raw-0.1-r0.do_build.debian-wheezy-armhf > example-raw-0.1-r0.do_deb_package_conffiles.debian-jessie-armhf > example-raw-0.1-r0.do_deb_package_conffiles.debian-wheezy-armhf > example-raw-0.1-r0.do_deb_package_prepare.debian-jessie-armhf > example-raw-0.1-r0.do_deb_package_prepare.debian-wheezy-armhf > example-raw-0.1-r0.do_fetch > example-raw-0.1-r0.do_populate_package.debian-jessie-armhf > example-raw-0.1-r0.do_populate_package.debian-wheezy-armhf > example-raw-0.1-r0.do_unpack.debian-jessie-armhf > example-raw-0.1-r0.do_unpack.debian-wheezy-armhf > ... > > So all the new tasks added to Isar, that are distro and/or architecture > specific, should have suffixes in stamps. > > 8<-- > > Signed-off-by: Alexander Smirnov > --- > meta/classes/dpkg-raw.bbclass | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/meta/classes/dpkg-raw.bbclass b/meta/classes/dpkg-raw.bbclass > index f9a7411..6c6a89c 100644 > --- a/meta/classes/dpkg-raw.bbclass > +++ b/meta/classes/dpkg-raw.bbclass > @@ -14,6 +14,7 @@ do_populate_package() { > bbnote "Put your files for this package in ${D}" > } > > +do_populate_package[stamp-extra-info] = "${DISTRO}-${DISTRO_ARCH}" > addtask populate_package after do_unpack before do_deb_package_prepare > > # so we can put hooks etc. in there already > @@ -39,6 +40,7 @@ do_deb_package_prepare() { > done > } > > +do_deb_package_prepare[stamp-extra-info] = "${DISTRO}-${DISTRO_ARCH}" > addtask deb_package_prepare after do_populate_package before do_deb_package_conffiles > > do_deb_package_conffiles() { > @@ -47,6 +49,7 @@ do_deb_package_conffiles() { > test -s $CONFFILES || rm $CONFFILES > } > > +do_deb_package_conffiles[stamp-extra-info] = "${DISTRO}-${DISTRO_ARCH}" > addtask deb_package_conffiles after do_deb_package_prepare before do_build > > dpkg_runbuild() { >