From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6566555412143800320 X-Received: by 2002:a19:12c8:: with SMTP id 69-v6mr237879lfs.2.1528895325908; Wed, 13 Jun 2018 06:08:45 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:2202:: with SMTP id i2-v6ls500804lji.10.gmail; Wed, 13 Jun 2018 06:08:45 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJGp4QtVoMM5ZSxuOoi0QmdMmp75rSITxRvNQOjnwxcXZT6kkDX7VwB/RVhU5albB2Oxd0L X-Received: by 2002:a2e:8152:: with SMTP id t18-v6mr260985ljg.24.1528895325453; Wed, 13 Jun 2018 06:08:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528895325; cv=none; d=google.com; s=arc-20160816; b=sgXW+sTp37NVANpJGu/w04W7HprXMkZwN5qdMve2UB0h9+ih49rbbPKtTWcViYu1KV byWoQSKstuAu7MBFdNSU2nGMnZ7jiHi4ZTPt/7GSwe0+Ffmmo7jubniQrQElZlmQPcD6 4T3MMWild7lpaSKav6OHvPulpNC0a4/CpGi+cS7I2sFQ6qAM7UQzFdWgzPDJMPKt42UQ i85OI08WQqSyICmiwIP/T3tIcySIqKpTCs9ooJ6SClsBEDuA6+rc0VsN3Kj5lM9m856M vH/xHXFTtcl0sXvL3UIdN6PxjKKk933z3dDQo3/D5ahogruwth30xegaBfEwXUe5e+WY YInQ== 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=V9qMh+gwIus1mwTBs8zqKx9CBh0O8w+ey3EIcYKXdTc=; b=iNocLB1vPMJbXSRLRdDrV13mSw7SJA6DOOtBoDhfjMEv4E8DDbKpQ9NGctmeDBkyVu bCIuHDMo/pJsG/iMZ2F4W6UfhxeIfL3JE0IsS7f0qYANxmbLahEs0BXPZR5tY+LLzPzZ qpStUuual716zWHuPMwhB+tEyHW2JZTMxkD7dOiUH+gYAIaIRapRqK6301uAeMEoq7ui bSTui9BHDNvJeK1S0kOpdA6rhei4UydHovhBxenDWHod8JbvhcJ4okegKL3CE4Lgvy0U QFHTOLnfUNimXA9JeR7ooNKYBKpC9osdv7Gm/5qGagVupax/l69hvqnDQrmwHyjfoGlb BCmA== 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 l24-v6si103965lja.1.2018.06.13.06.08.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jun 2018 06:08:45 -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 azat.i.ilbers.de (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w5DD8P02030010 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT); Wed, 13 Jun 2018 15:08:35 +0200 From: Alexander Smirnov To: isar-users@googlegroups.com Cc: Alexander Smirnov Subject: [PATCH 3/9] isar-bootstrap: Add host architecture support Date: Wed, 13 Jun 2018 15:08:01 +0200 Message-Id: <20180613130807.2461-4-asmirnov@ilbers.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180613130807.2461-1-asmirnov@ilbers.de> References: <20180613130807.2461-1-asmirnov@ilbers.de> X-TUID: MAxF0cNVWks5 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}" +} -- 2.1.4