From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6572049490740510720 X-Received: by 2002:aa7:c88d:: with SMTP id p13-v6mr2051554eds.5.1530174514920; Thu, 28 Jun 2018 01:28:34 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:aa7:c247:: with SMTP id y7-v6ls1902358edo.2.gmail; Thu, 28 Jun 2018 01:28:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeKfCKrMxl2Pm4epmCQTvcBr83Qvlkz1QiCpypoZmfuS5YDSjOfmwiV6AUmGJJFMf6ulb6U X-Received: by 2002:aa7:d806:: with SMTP id v6-v6mr2141067edq.3.1530174514449; Thu, 28 Jun 2018 01:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530174514; cv=none; d=google.com; s=arc-20160816; b=KLUhEYeJPLJRWNN69iQWG/8adbMW44fxjBuMXYo2EThsj3vgXmhEPEhPHimaXt964D kb/6qJoiR2zqZLYmOTnRX2YaP0Tq+ip7pE9II1oFZr9W1e3hG4f/ePb5xH/JG240YBhj GTU1sp01XIXkBeZEW3L48U8u+ulCXH5F5mtxzilKyJnsPTWYBwExLp7eFCRS/7JFcGt4 hwOLVLqYiB1vZg7e0/2G4BAQn0gpmELaBvrYfX5vHKixGkWjYOG1Xt56kApHD6bJaX83 XkRCQbGZXHiS3Wn0In3fNhC+iLW78ggAXzc5W6gaLL4/ArG5hXr1kkYxzL0faamds50g IU4Q== 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=Yh+EBk3fD17Kt7aHmgrYLnehIfv1ibPQasQ7mp+o/1oNhe6kfUsI+AMaRKV0IGmuD9 1oC6RTVRiB1vYWAINHPk2MeooMJnhZmhqcoB9HZyFq9ZZmrlpdE5RlDqbWteeUgU5mJP uim86p1a1bMk4Xy5qCqO4b2Fb2ixOQBbEHJuqTDL8JMNyGS0lydF13Q1+FDsEuZPZQvt xZjmiZkPHSYsXMspxV5cU74VnImrWbJ4SAynUVb4NNapp22Lw1XCyGzWniao/deDX2Gg Df9uV7mQsBP6TsXqkH1fBwr0PVDvnC4PB9JkEGBY34uSrHiJrP/v/HIFG9hlfpFULkzR gsIA== 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 w5-v6si301156eds.2.2018.06.28.01.28.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jun 2018 01:28:34 -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 w5S8SEq9024070 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT); Thu, 28 Jun 2018 10:28:24 +0200 From: Alexander Smirnov To: isar-users@googlegroups.com Cc: Alexander Smirnov Subject: [PATCH v2 03/12] isar-bootstrap: Add host architecture support Date: Thu, 28 Jun 2018 10:28:01 +0200 Message-Id: <20180628082810.3571-4-asmirnov@ilbers.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180628082810.3571-1-asmirnov@ilbers.de> References: <20180628082810.3571-1-asmirnov@ilbers.de> X-TUID: uYDVIsHrHlbJ 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