From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6464921707679318016 X-Received: by 10.25.201.136 with SMTP id z130mr943552lff.3.1505314843211; Wed, 13 Sep 2017 08:00:43 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.206.200 with SMTP id e191ls987373wmg.2.canary-gmail; Wed, 13 Sep 2017 08:00:42 -0700 (PDT) X-Google-Smtp-Source: AOwi7QB+c29Vi1/P8GD942AIsyyG03cOXJBFmxQnQOyIt5vZqckZQPvOCsQ2V/rRYxh3rcOFRlV5 X-Received: by 10.28.136.143 with SMTP id k137mr320191wmd.3.1505314842834; Wed, 13 Sep 2017 08:00:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505314842; cv=none; d=google.com; s=arc-20160816; b=PnbTmgt2p3ftsVdFzo9DFwzEXx2iJFULfEvDAv0bN81jvlH04gnDMnMymck8NcyHlE WPXuBH3fCVtIRVBTQTjgKfBc5ZsqeGVcgl+kErY+ExCMO/jZYqTRy87Ahg4TiLrGQUBZ poipkOowpKwBJ2tpiUCDTe5469is5yUQyBDmWbxPt7QQMuBTwduq7tNOVVb+WIqH/Q15 OHmB+C66gHYpULFIxvpYVxdIWtWdMzQgemXESdnOkJ09deUuAbPFQXLuNfQHrX+/Q9IY bw7wsWCAUT0ILwYw9Y3BAynsaYX++xuEx//pnpid1mgF46MpYWR6lv6ZjrePnPe8PfG4 eyCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=irM/HeytUUUPhFyHcWOMgwvXqhgAtf+xOoqcSgGBDfs=; b=dqEGJfyOddTyF82wHIVRegWejRQ/QbC0hwnpZ0z0nIxYlHVopF7ZEHzadd7XY73Anr uf92EHFTxbRezq/Z0D2nQx7I+hCnGr0Y2rhESKoc3xT2q/tQfYGIO+oDEo7w358oF3cG uCRfYqNQn59nXQ9+ls28v7mzPk6DUyRI8QhKV0tMO8lTuNQyzooxxtbmj7q1nHUkO0EV R8ncm9rBX7nIywDLsHrVMn9xbkgBhBcyFbkog9yKyrTszMQNc5kpwspozGqyR+RAWxDm 2rHhNyh3scoSoqYdRONKitJdP9kKGfRpw3PbFSkndP2UgHmMfHaIx/QFt+ZD1vvTeaFA drSA== 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 z129si76338wmc.5.2017.09.13.08.00.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Sep 2017 08:00:42 -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 localhost.localdomain ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id v8DF0S9X012267 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Sep 2017 17:00:34 +0200 From: Alexander Smirnov To: isar-users@googlegroups.com Cc: Alexander Smirnov Subject: [PATCH][FYI] dpkg-raw: Allow multiconfig build Date: Wed, 13 Sep 2017 18:00:20 +0300 Message-Id: <20170913150020.9927-1-asmirnov@ilbers.de> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170912155810.9434-1-henning.schild@siemens.com> References: <20170912155810.9434-1-henning.schild@siemens.com> X-TUID: 6Ujo157wnwWX 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() { -- 2.1.4