From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6621946372691066880 X-Received: by 2002:a1c:1d1:: with SMTP id 200mr1339470wmb.10.1542811706703; Wed, 21 Nov 2018 06:48:26 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:b585:: with SMTP id e127-v6ls2318508wmf.6.canary-gmail; Wed, 21 Nov 2018 06:48:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/XpCtHfe2m0J++VOkxl0paJIbw9ujDsho890ybLex1/HFIwNfZTJ9j42jFeTciXMAvWKpKN X-Received: by 2002:a1c:7e86:: with SMTP id z128-v6mr1460866wmc.24.1542811706194; Wed, 21 Nov 2018 06:48:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542811706; cv=none; d=google.com; s=arc-20160816; b=gZ2hJyWpdAHgeBFPZJr3E9nVgqgJI79n3/KvVesKcjs2fRusCW+bt9eC+hACi8MLvX yZOQzYdgKXNOeJkVbSZgpqHJXDkWDM+J28a9bZArPs4Woc4zNKqibaBQzaP18jHAo18l rvxGg+FxfH8SjSSvGjCHNF5wWYQ3qdHNJz1IbfF/h9MQiqD+wUweg2TbOf+IJNg62ZYx kB5J4ghSegMpfYDxEHWb+3uKP4Z5QXdddfir4XxK/4sfnhAHmhWHzakjqXAv1JoOrlmX HpTCjP6Mm4Sz+TWRC6IoFei6uGlpVr6Xgt65jjgGxvHfmZ50Gs+2pVcvzMCCdAuHKquB 7qhg== 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; bh=MX+TKtj6yh/o4MEYhTnrAZczPP4EH1EtCxtcN3MSxuc=; b=RAYtB0cSHkX7Y43z0cDIISTc0+G1D0PIXasgafKffXxiy2f8QYS10vN/Yp8lIRSyk8 z2Nr5n9J/BfO1ItB3yy3lujJ+tYPFxOFAJeNhMZlLkCLr28Fhzh2ubSxQdJRhRbKNP1K WyQcmZZuxbyd/yphpwgMReDfAPMdjhrSYXbCkfe68CdOZSBJp4/rYgtGiNP0fc4eMxie fk3s0IhMP0q2Agjs/BDPxT1J2GEaYXjQqo/3APXJubCszwGBBCRBwv2+FLUILt9uqjF5 OZhR7/16Q2OHAXlTTJGom8XTKLV0qI/+Zk5I/BvJhYg3asBZaz0kHWQhIME2xGKW6pKu d7eA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from gecko.sbs.de (gecko.sbs.de. [194.138.37.40]) by gmr-mx.google.com with ESMTPS id 191-v6si63659wmv.0.2018.11.21.06.48.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Nov 2018 06:48:26 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) client-ip=194.138.37.40; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id wALEmPgU009613 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 21 Nov 2018 15:48:25 +0100 Received: from [139.25.68.37] (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id wALEmPbf013235; Wed, 21 Nov 2018 15:48:25 +0100 Subject: Re: [PATCH] bootstrap: move to tmp/deploy/bootstrap To: Cedric Hombourger , isar-users@googlegroups.com References: <3edbd39e-dc42-b874-5f02-71bade02e5cc@siemens.com> <1542792909-274-1-git-send-email-Cedric_Hombourger@mentor.com> From: Jan Kiszka Message-ID: Date: Wed, 21 Nov 2018 15:48:25 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <1542792909-274-1-git-send-email-Cedric_Hombourger@mentor.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: iOf9b12TrXPM On 21.11.18 10:35, Cedric Hombourger wrote: > Bootstraps should not be placed in tmp/deploy/images/${MACHINES} since they > are only distro and architecture dependent (but not machine dependent). The > older location was apparently causing some build failures for large multiconfig > builds (while this issue was not reproduced, multiconfig builds were done to > make sure the change did not introduce obvious regressions). > > Suggested-by: Jan Kiszka > Signed-off-by: Cedric Hombourger > --- > meta/classes/isar-bootstrap-helper.bbclass | 2 +- > meta/conf/isar-bitbake.conf | 1 + > meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb | 4 ++-- > meta/recipes-core/isar-bootstrap/isar-bootstrap-target.bb | 4 ++-- > meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 2 +- > 5 files changed, 7 insertions(+), 6 deletions(-) > > diff --git a/meta/classes/isar-bootstrap-helper.bbclass b/meta/classes/isar-bootstrap-helper.bbclass > index e6a46ce..f41682e 100644 > --- a/meta/classes/isar-bootstrap-helper.bbclass > +++ b/meta/classes/isar-bootstrap-helper.bbclass > @@ -83,7 +83,7 @@ setup_root_file_system() { > CLEAN_FILES="${ROOTFSDIR}/etc/hostname ${ROOTFSDIR}/etc/resolv.conf" > > sudo cp -Trpfx \ > - "${DEPLOY_DIR_IMAGE}/isar-bootstrap-$ROOTFS_DISTRO-$ROOTFS_ARCH/" \ > + "${DEPLOY_DIR_BOOTSTRAP}/$ROOTFS_DISTRO-$ROOTFS_ARCH/" \ > "$ROOTFSDIR" > [ -n "${FSTAB}" ] && cat ${FSTAB} | sudo tee "$ROOTFSDIR/etc/fstab" > > diff --git a/meta/conf/isar-bitbake.conf b/meta/conf/isar-bitbake.conf > index d552c03..bc52d08 100644 > --- a/meta/conf/isar-bitbake.conf > +++ b/meta/conf/isar-bitbake.conf > @@ -19,6 +19,7 @@ > # OTHER DEALINGS IN THE SOFTWARE. > > WORKDIR = "${TMPDIR}/work/${DISTRO}-${DISTRO_ARCH}/${PF}" > +DEPLOY_DIR_BOOTSTRAP = "${DEPLOY_DIR}/bootstrap" > DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MACHINE}" > DL_DIR = "${TOPDIR}/downloads" > SSTATE_DIR ?= "${TMPDIR}/sstate-cache" > diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb b/meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb > index 55696ea..19b60dc 100644 > --- a/meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb > +++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb > @@ -8,8 +8,8 @@ > Description = "Minimal host Debian root file system" > > WORKDIR = "${TMPDIR}/work/${DISTRO}-${DISTRO_ARCH}/${PN}-${HOST_DISTRO}-${HOST_ARCH}" > -DEPLOY_ISAR_BOOTSTRAP = "${DEPLOY_DIR_IMAGE}/isar-bootstrap-${HOST_DISTRO}-${HOST_ARCH}" > -ISAR_BOOTSTRAP_LOCK = "${DEPLOY_DIR_IMAGE}/isar-bootstrap-${HOST_DISTRO}-${HOST_ARCH}.lock" > +DEPLOY_ISAR_BOOTSTRAP = "${DEPLOY_DIR_BOOTSTRAP}/${HOST_DISTRO}-${HOST_ARCH}" > +ISAR_BOOTSTRAP_LOCK = "${DEPLOY_DIR_BOOTSTRAP}/${HOST_DISTRO}-${HOST_ARCH}.lock" > > include isar-bootstrap.inc > inherit isar-bootstrap-helper > diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap-target.bb b/meta/recipes-core/isar-bootstrap/isar-bootstrap-target.bb > index 5752b14..3631506 100644 > --- a/meta/recipes-core/isar-bootstrap/isar-bootstrap-target.bb > +++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap-target.bb > @@ -8,8 +8,8 @@ > Description = "Minimal target Debian root file system" > > WORKDIR = "${TMPDIR}/work/${DISTRO}-${DISTRO_ARCH}/${PN}" > -DEPLOY_ISAR_BOOTSTRAP = "${DEPLOY_DIR_IMAGE}/isar-bootstrap-${DISTRO}-${DISTRO_ARCH}" > -ISAR_BOOTSTRAP_LOCK = "${DEPLOY_DIR_IMAGE}/isar-bootstrap-${DISTRO}-${DISTRO_ARCH}.lock" > +DEPLOY_ISAR_BOOTSTRAP = "${DEPLOY_DIR_BOOTSTRAP}/${DISTRO}-${DISTRO_ARCH}" > +ISAR_BOOTSTRAP_LOCK = "${DEPLOY_DIR_BOOTSTRAP}/${DISTRO}-${DISTRO_ARCH}.lock" > > include isar-bootstrap.inc > > diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc > index 21454b0..be417a0 100644 > --- a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc > +++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc > @@ -165,7 +165,7 @@ def get_host_release(): > > > do_bootstrap[vardeps] += "DISTRO_APT_PREMIRRORS" > -do_bootstrap[dirs] = "${DEPLOY_DIR_IMAGE}" > +do_bootstrap[dirs] = "${DEPLOY_DIR_BOOTSTRAP}" > > isar_bootstrap() { > IS_HOST="" > Looks good, thanks! Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux