From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6680483261914808320 X-Received: by 2002:a1c:c507:: with SMTP id v7mr3167820wmf.9.1555421218209; Tue, 16 Apr 2019 06:26:58 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:2292:: with SMTP id 18ls2225186wmf.3.canary-gmail; Tue, 16 Apr 2019 06:26:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqyX890r3JbGKZIeHfBO/664alIA5TutBTMA4NMH/zxZ5x720r4xUP7/lvYigE98XH89ZzJd X-Received: by 2002:a1c:5504:: with SMTP id j4mr3152163wmb.1.1555421217886; Tue, 16 Apr 2019 06:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555421217; cv=none; d=google.com; s=arc-20160816; b=XhtM+VeY62ZEpzYgFzWkUTFB06tHOtxcfhkJXYDjcLFO+3iqbIsJrmazplXaGuQSQE uX1QX6Ie75/4TF/nLltYR9hevFGglmRdSJ8dPU3Va5gGtJQZR+Q3wh2w5rxW4jgtz/3R uYq61kYuKISZOpnc9urvFPuLVYwE77jEkFfL91miKAzkdwrCxqDQcCfpoy+qUeUaHFq4 n3v1oSqRsk4GFir+g/R66LBPWp7ENZtLVyX6FlS+arlCotOOeEmtTUN4S9K69tXbf+Cn 8DR320+WrY/nHyaixSClBzN0AosObALbm3HPx7QVgfmE17rUoe9/queh3w2SRFR719xR VPQg== 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:date:subject:cc:to:from; bh=54lPT22Jfn/gjrSrK60RmINDsYLn0ORXXY0xlm9vvlc=; b=i9QxFYnfXwKYRQqJhI14MJCdHjMb2BUBNXSy8i/NA9gcqfAOVfZ7IAwzaP9/oRpu2B qP7Zxdn6+nPbKaqZJCiSeAMmhjTAT4c6pCoGMPrN+AWlX6DZwyAfDeFW7yGOuPbN3aiF AzWpntaI+nnxffUlWBFts3uU4qGo+rop7tiDphF+Osxd6k8+4SWtkZejUBjYIX/qMaZV 4nb8rXBdHwGhkfA12xUeOqpIzVXTfVvQzUke1/HOYLaOQkRWIjkZu2Uz2dT+1P3Suxvs Ut4rYBVYVC0HVEOOJ2A0vkepzVxii8PJsLDfwkDhIFsRZF9bQm/9oksPJb1RoJbSgCct QyLw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id z185si140021wmb.0.2019.04.16.06.26.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Apr 2019 06:26:57 -0700 (PDT) Received-SPF: pass (google.com: domain of claudius.heine.ext@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 claudius.heine.ext@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id x3GDQth9004619 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Apr 2019 15:26:56 +0200 Received: from ring.ppmd.siemens.net (linux-ses-ext02.ppmd.siemens.net [139.25.69.232]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id x3GDQuen009089; Tue, 16 Apr 2019 15:26:56 +0200 From: claudius.heine.ext@siemens.com To: isar-users@googlegroups.com Cc: Claudius Heine Subject: [PATCH 1/8] isar-boostrap-helper: move 'HOST_ARCH' and 'HOST_DISTRO' to base.bbclass Date: Tue, 16 Apr 2019 15:26:39 +0200 Message-Id: <20190416132647.3074-2-claudius.heine.ext@siemens.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190416132647.3074-1-claudius.heine.ext@siemens.com> References: <20190416132647.3074-1-claudius.heine.ext@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: QetW4sz81yUk From: Claudius Heine This also sets the 'HOST_DISTRO' to 'DISTRO' per default. (jessie support was dropped.) Signed-off-by: Claudius Heine --- meta/classes/base.bbclass | 9 +++++++++ meta/classes/isar-bootstrap-helper.bbclass | 12 ------------ 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 9a1837f..ca80bf8 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -20,6 +20,15 @@ THISDIR = "${@os.path.dirname(d.getVar('FILE', True))}" +def get_deb_host_arch(): + import subprocess + host_arch = subprocess.check_output( + ["dpkg", "--print-architecture"] + ).decode('utf-8').strip() + return host_arch +HOST_ARCH ??= "${@get_deb_host_arch()}" +HOST_DISTRO ??= "${DISTRO}" + die() { bbfatal "$*" } diff --git a/meta/classes/isar-bootstrap-helper.bbclass b/meta/classes/isar-bootstrap-helper.bbclass index 38d90fb..59c447b 100644 --- a/meta/classes/isar-bootstrap-helper.bbclass +++ b/meta/classes/isar-bootstrap-helper.bbclass @@ -7,18 +7,6 @@ IMAGE_TRANSIENT_PACKAGES ??= "" -def get_deb_host_arch(): - import subprocess - host_arch = subprocess.check_output( - ["dpkg", "--print-architecture"] - ).decode('utf-8').strip() - return host_arch - -#Debian Distribution for SDK host -HOST_DISTRO ?= "debian-stretch" -#Determine SDK host architecture if not explicitly set -HOST_ARCH ?= "${@get_deb_host_arch()}" - HOST_DISTRO_APT_SOURCES += "conf/distro/${HOST_DISTRO}.list" def reverse_bb_array(d, varname): -- 2.20.1