From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6680483261914808320 X-Received: by 2002:a19:ca02:: with SMTP id a2mr20287404lfg.88.1556191554321; Thu, 25 Apr 2019 04:25:54 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:5611:: with SMTP id k17ls1168514lfb.15.gmail; Thu, 25 Apr 2019 04:25:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqznCjb21ZhsEKKmAAZbdXnhBwF2MgPRaneSb4z28lXBuzbZlqwsRKw8Xh3dxXVvutkn9Vyo X-Received: by 2002:ac2:4833:: with SMTP id 19mr20519623lft.87.1556191553803; Thu, 25 Apr 2019 04:25:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556191553; cv=none; d=google.com; s=arc-20160816; b=RclYbaBF8fgiD9FriumxAiWJkjj12jUvb3r18SLe48b9+LeEJGSAZUZLfAmO6K7Miv wvwmX6sU9dLPTchTcUN5Z/JcXFLc39dp5w0eMEeoU6gUcI2MNVNrRx1kUxb42t/4ckht EznL9n3KYlATfLTm4srDHPGKC7v18tVKuhndp7pjH17Xzbn5+q89ZRdUgZWTq6n5dtlO OhUktVuEMPqRiLYhNtmLwZaeq47WphK4proPEGY1vG1SSPJhCRKIhIPdAUYIhO7e9zBl h+m8CrWNrmfpCdWfsANj7GFJGDYxniPi8rMldWR/Sr+J7SQ3ubwy2TlSQcdA/VXDz3s0 ykmw== 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:references:cc:to:from:subject; bh=2atdkw+RL8wFlxL2tieRqYgWxq6iW7bznVFobF0BM1M=; b=nhh03Mw8/18wHYY8IAeB/oSf3Ngb3imNwDFhzJfA4lq8PCBNBWJIEnEYk/pAM1TVIa 6h33VSazREXzhNp1LXbzlDYOLSjxlpwO5+Edf4E/HdHzBHhYBCuOUKK5dLOTdP2iA6c2 yHKQ26G8NdMmTsW2n4fqml4iYY3lyQYfn9vnTdM5qpsTXQyk/Ni12ZYYj20Rhv3UkBWU n50p/Ep+3A1Tmrvo+l4ttLSxotZK25dPL09a40luvX8pp0X/vg6OJT6ivg3QWvq+nvf1 5BSW3uHr+2uwJQyukGzCKJH4CIFu442yxVkAhz32JnfF0Lh425/rUzK2ZZZ6Ds+0faSJ vQZg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id w13si57956ljj.2.2019.04.25.04.25.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2019 04:25:53 -0700 (PDT) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id x3PBPpxC002943 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 Apr 2019 13:25:51 +0200 Received: from [139.25.69.232] (linux-ses-ext02.ppmd.siemens.net [139.25.69.232]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id x3PBPpJa016925; Thu, 25 Apr 2019 13:25:51 +0200 Subject: Re: [PATCH v3 1/8] isar-boostrap-helper: move 'HOST_ARCH' and 'HOST_DISTRO' to base.bbclass From: Claudius Heine To: isar-users@googlegroups.com Cc: Claudius Heine References: <20190424092734.14167-1-claudius.heine.ext@siemens.com> <20190424092734.14167-2-claudius.heine.ext@siemens.com> Message-ID: Date: Thu, 25 Apr 2019 13:25:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190424092734.14167-2-claudius.heine.ext@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: 9HHIr4xB/dtc Hi, On 24/04/2019 11.27, [ext] claudius.heine.ext@siemens.com wrote: > 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}" I did find in issue here when debugging. In case of raspbian-stretch HOST_DISTRO needs to be 'debian-stretch'. I corrected that for the next version of this patchset. Currently the same issue in CI issue now reoccurs with the 'isar-bootstrap/buildchroot/sdkchroot: refactor PF and WORKDIR' patch though. I am currently investigating that. Claudius > + > 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): > -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de