From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6566555412143800320 X-Received: by 2002:a5d:4906:: with SMTP id x6-v6mr178588wrq.12.1528975658575; Thu, 14 Jun 2018 04:27:38 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:11cc:: with SMTP id 195-v6ls1662504wmr.9.canary-gmail; Thu, 14 Jun 2018 04:27:38 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJSJPHf1pb3Wv6qjKYFBgvWXGJS/U4fi2OtzKcu5Q2nkyg04Wp0tTNhnsJ4Qmzhqehggwd6 X-Received: by 2002:a1c:7614:: with SMTP id r20-v6mr168250wmc.26.1528975658315; Thu, 14 Jun 2018 04:27:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528975658; cv=none; d=google.com; s=arc-20160816; b=GPNqsB4vguGCXVr36uWdNqFbcXoBQdERKAjzg/TGA02c1T73L0i5PrQT//qNCHy5aa zeTFaDt9/xDTpRSBNYR5NAjepfIfLuYrfGPz/tbxqln9QxXyBsulnSMkPcVCNlZbHkbc zXlOVi89GMnyNRTxY0eTuqGX7t7iCTCy2HEGuNFKWqtBiL4vbSM19JOlZam5n0VQ7/j8 LKHsiOuP1hJ7bCq70AiS2n+dfV+Rt0XtedzFC5mEjmKfVz3Iny2jR+Ww7Vr9chbK6n+8 mA6fgn2+G9H9fdsAPtw3ykjrbcW2dfm7RialwadZ0XaRymWqLksc0tiP2mOL0Fgxo7yi Xu7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:arc-authentication-results; bh=FSdhlydmEX7DAZzaMwvHRabPpmmB7G1CGhX+4Xlp+Q8=; b=nQHYwzIeGqpeJFYYAUvPWsXB+2hzCUvwYuWJ2EnilrFlCrJV84oTuraDP2Uz2zSf38 m0YukC/NMJfpgTrk4XrxOnDa9ctA8I1e7SYQ/ddxrCF4wTQSMhoDGhLZPQ5nBnwUHTkA 2+UOSG604A81HBxzQRi/c2OXXqga/6xszk9Hxd4LxiZxnBLNH6hAhzr9R6O4mgHxqJvQ PzRYkXL/TwAkClHFdDZo7X/rPMUIl+QDrGl7fSu7KftTf6KZLxtNsFNNPdwoyi2b7VK0 U0qyVozOifiVRycmn2MAC1xLP2bOp81s535Oxgld881/xuBht8fPAbvBvwci6wX95U1i UIZA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id x21-v6si63764wmh.3.2018.06.14.04.27.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jun 2018 04:27:38 -0700 (PDT) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w5EBRbhW018160 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Jun 2018 13:27:37 +0200 Received: from md1pvb1c.ad001.siemens.net (md1pvb1c.ad001.siemens.net [139.25.68.40] (may be forged)) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id w5EBRbSG008209; Thu, 14 Jun 2018 13:27:37 +0200 Date: Thu, 14 Jun 2018 13:27:37 +0200 From: Henning Schild To: Alexander Smirnov Cc: Subject: Re: [PATCH 3/9] isar-bootstrap: Add host architecture support Message-ID: <20180614132737.01d88b06@md1pvb1c.ad001.siemens.net> In-Reply-To: <20180613130807.2461-4-asmirnov@ilbers.de> References: <20180613130807.2461-1-asmirnov@ilbers.de> <20180613130807.2461-4-asmirnov@ilbers.de> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: 5dLfbLp28Zhi This + 2/9 looks very much like what Maxim posted. Again i would like to understand why we need a copy of the debootstrap code. Maybe the differences can be addressed with introducing variables. Henning Am Wed, 13 Jun 2018 15:08:01 +0200 schrieb Alexander Smirnov : > Add recipe to generate bootstrap with the host architecture. > > Signed-off-by: Alexander Smirnov > --- > .../isar-bootstrap/isar-bootstrap-host.bb | 44 > ++++++++++++++++++++++ 1 file changed, 44 insertions(+) > create mode 100644 > meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb > > diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb > b/meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb new file > mode 100644 index 0000000..c61c665 > --- /dev/null > +++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb > @@ -0,0 +1,44 @@ > +# Minimal host Debian root file system > +# > +# This software is a part of ISAR. > +# Copyright (c) Siemens AG, 2018 > +# > +# SPDX-License-Identifier: MIT > + > +Description = "Minimal host Debian root file system" > + > +include isar-bootstrap.inc > +inherit isar-bootstrap-helper > + > +do_bootstrap[stamp-extra-info] = "${DISTRO}-${DISTRO_ARCH}" > +do_bootstrap[vardeps] += "DISTRO_APT_SOURCES" > +do_bootstrap[vardeps] += "DISTRO_APT_PREMIRRORS" > +do_bootstrap() { > + if [ -e "${ROOTFSDIR}" ]; then > + sudo umount -l "${ROOTFSDIR}/dev" || true > + sudo umount -l "${ROOTFSDIR}/proc" || true > + sudo rm -rf "${ROOTFSDIR}" > + fi > + E="${@bb.utils.export_proxies(d)}" > + sudo -E "${DEBOOTSTRAP}" --verbose \ > + --variant=minbase \ > + --include=locales \ > + ${@get_distro_components_argument(d)} \ > + ${DEBOOTSTRAP_KEYRING} \ > + "${@get_distro_suite(d)}" \ > + "${ROOTFSDIR}" \ > + "${@get_distro_source(d)}" > +} > +addtask bootstrap before do_build after do_generate_keyring > + > +do_deploy[stamp-extra-info] = "${DISTRO}-${HOST_ARCH}" > +do_deploy[dirs] = "${DEPLOY_DIR_IMAGE}" > +do_deploy() { > + ln -Tfsr "${ROOTFSDIR}" > "${DEPLOY_DIR_IMAGE}/isar-bootstrap-${DISTRO}-${HOST_ARCH}" +} > +addtask deploy before do_build after do_apt_update > + > +CLEANFUNCS = "clean_deploy" > +clean_deploy() { > + rm -f "${DEPLOY_DIR_IMAGE}/${PN}-${DISTRO}-${HOST_ARCH}" > +}