From: claudius.heine.ext@siemens.com
To: isar-users@googlegroups.com
Cc: Claudius Heine <ch@denx.de>
Subject: [PATCH 2/2] isar-bootstrap: Change task dependencies to improve parallelization
Date: Wed, 11 Apr 2018 09:54:31 +0200 [thread overview]
Message-ID: <20180411075431.6201-3-claudius.heine.ext@siemens.com> (raw)
In-Reply-To: <20180411075431.6201-1-claudius.heine.ext@siemens.com>
From: Claudius Heine <ch@denx.de>
The isar-bootstrap tasks are currently ordered linearly. This patch
changes this to better model the real dependencies between them. Now
some tasks are executed in parallel if possible. This should slightly
improve the performance.
In detail 'do_apt_config_prepare' can be executed in parallel to
'do_generate_keyring' and 'do_bootstrap'. 'do_apt_config_install' has to
be executed after 'do_bootstrap' and 'do_apt_config_prepare'.
Signed-off-by: Claudius Heine <ch@denx.de>
---
meta/recipes-core/isar-bootstrap/isar-bootstrap.bb | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.bb b/meta/recipes-core/isar-bootstrap/isar-bootstrap.bb
index 3fbf890..aae760e 100644
--- a/meta/recipes-core/isar-bootstrap/isar-bootstrap.bb
+++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap.bb
@@ -162,6 +162,7 @@ do_generate_keyring() {
addtask generate_keyring before do_build after do_unpack
do_apt_config_prepare[stamp-extra-info] = "${DISTRO}-${DISTRO_ARCH}"
+do_apt_config_prepare[dirs] = "${WORKDIR}"
do_apt_config_prepare[vardeps] += "\
APTPREFS \
DISTRO_APT_PREFERENCES \
@@ -180,7 +181,7 @@ python do_apt_config_prepare() {
aggregate_aptsources_list(d, apt_sources_list, apt_sources_out)
}
-addtask apt_config_prepare before do_build after do_generate_keyring
+addtask apt_config_prepare before do_build after do_unpack
do_bootstrap[stamp-extra-info] = "${DISTRO}-${DISTRO_ARCH}"
do_bootstrap[vardeps] += "DISTRO_APT_SOURCES"
@@ -201,7 +202,7 @@ do_bootstrap() {
"${ROOTFSDIR}" \
"${@get_distro_source(d)}"
}
-addtask bootstrap before do_build after do_apt_config_prepare
+addtask bootstrap before do_build after do_generate_keyring
do_apt_config_install[stamp-extra-info] = "${DISTRO}-${DISTRO_ARCH}"
do_apt_config_install() {
@@ -216,7 +217,7 @@ do_apt_config_install() {
sudo install -v -m644 "${WORKDIR}/isar-apt.conf" \
"${ROOTFSDIR}/etc/apt/apt.conf.d/50isar.conf"
}
-addtask apt_config_install before do_build after do_bootstrap
+addtask apt_config_install before do_build after do_bootstrap do_apt_config_prepare
do_apt_update[stamp-extra-info] = "${DISTRO}-${DISTRO_ARCH}"
do_apt_update() {
--
2.16.3
prev parent reply other threads:[~2018-04-11 7:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-11 7:54 [PATCH 0/2] Some smaller fixes to the debootstrap patchset claudius.heine.ext
2018-04-11 7:54 ` [PATCH 1/2] Renamed 'Multistrap' references to 'Isar' (no functional change) claudius.heine.ext
2018-04-11 7:54 ` claudius.heine.ext [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180411075431.6201-3-claudius.heine.ext@siemens.com \
--to=claudius.heine.ext@siemens.com \
--cc=ch@denx.de \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox