From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6449247987863388160 X-Received: by 10.13.233.195 with SMTP id s186mr2273125ywe.80.1502185188224; Tue, 08 Aug 2017 02:39:48 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.107.134.70 with SMTP id i67ls2502711iod.12.gmail; Tue, 08 Aug 2017 02:39:47 -0700 (PDT) X-Received: by 10.99.54.133 with SMTP id d127mr2327129pga.138.1502185187841; Tue, 08 Aug 2017 02:39:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502185187; cv=none; d=google.com; s=arc-20160816; b=BZ0vROkX6sm4gBuwM5fjqE3jdH2IvMtcTlN/GNbNvBLykyco1VntSFBbapyNlwVnTP 89O47fjVg59Qh1Ud40XizJ99OvuQka1fFldpnmPFiEsGm6YpPRpHb2gGfdLtWo4Fxl9O wqXj2rOI9PZ5Indyzo6xSzem9DHwe10M36kRg2mKzto2VrxUA8UHQdA2+h2KahfTvsqX bcpyks1yLKZJRDoPKuU+KypTr6g7W1BtWJ8pd+fItuH0UUMLNFoYxKYPUoHaZo6ianBT uytQRGuHSeFB+5spZHwVIztQuUpMq/TrrehqCfwzkQPp/3Xa0pYN7v9421Avqkszz9BQ uBlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:dkim-signature:arc-authentication-results; bh=Z3sGdIGNCm57EHF8WNOJa1khcstTvh3SX0CFy7Ivw+I=; b=AkrUlgcJa31Fb3+cr9BWdtsJ86P5Yj8Xsgnxrxm0jrPCRnO7nGQjgrKoJZ+hrot+fZ X94oT1dr4lrgHOciMAafV3jtkePSj7hNZ7lIOS4Z5ycBzhZGarSp+JDI/oKmceIBA6r0 S8G1FL0YHbG2w6ihJNqyWot126V7VsMNpKjTTumNhI7WCuWWeTIo5gTpWbscBiGC8vNh yjuoDKlJ6AU7VfmbdvIazKhr9DCgzGJaz1qGglC5UXP2lZjsTGenWySjy9rQFhYc1pWV FA82T/vzHp293krLGhAZXxdwzWdO2VGSYZHmnC9ncZBQPzGF5DeNdHFu6M6Kw7I3nZXG csdQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VVaO2uN8; spf=pass (google.com: domain of alex.bluesman.smirnov@gmail.com designates 2607:f8b0:400d:c0d::232 as permitted sender) smtp.mailfrom=alex.bluesman.smirnov@gmail.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from mail-qt0-x232.google.com (mail-qt0-x232.google.com. [2607:f8b0:400d:c0d::232]) by gmr-mx.google.com with ESMTPS id p205si53626ywg.0.2017.08.08.02.39.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Aug 2017 02:39:47 -0700 (PDT) Received-SPF: pass (google.com: domain of alex.bluesman.smirnov@gmail.com designates 2607:f8b0:400d:c0d::232 as permitted sender) client-ip=2607:f8b0:400d:c0d::232; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VVaO2uN8; spf=pass (google.com: domain of alex.bluesman.smirnov@gmail.com designates 2607:f8b0:400d:c0d::232 as permitted sender) smtp.mailfrom=alex.bluesman.smirnov@gmail.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: by mail-qt0-x232.google.com with SMTP id v29so16632684qtv.3 for ; Tue, 08 Aug 2017 02:39:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Z3sGdIGNCm57EHF8WNOJa1khcstTvh3SX0CFy7Ivw+I=; b=VVaO2uN804ruigfV3N2cBCDL3VjZAIV8c/Ur82rxhWsT7IkfCE8W4h+7s+TkcYX4Ax DC3vgorRSh0UqxIF2fVZsr0aWrXQgqPsrdLXtT4LaN4mjk+bxHn1AAL7/nDVpNpZjxVa xSLLW1jlGEv+jMtFkYRlWkg2tmN0FA9ZO46Y5a+WpiJ4CtQ+tcBN7KE+7uVLsub5XedG Ign5nUKVINd3GO+1CyKzW9JAZLXJ6giH4M+zGKV1GurHMqovkJCoM5Ul18Nl9LJwJ5rk z67FstUG/MsiezJhMdLQvu7FJA+GbRHay7iLmRqO8n6bP17Nzas3Ff7Z+8lalZKW1hty alzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Z3sGdIGNCm57EHF8WNOJa1khcstTvh3SX0CFy7Ivw+I=; b=LXzz+fZHh9BcjBpKFnC4Falzefnq1IH6q+WNn+pfYcotSd/9oN+JFjaIc3RGlNCCOQ 5+jNAK2fGlD7znVYJVaUTDKzztKStjc/kX9Sl//3A29oPAzxGqx5CnNHv/EKoCYAUeEK v12QHGYcDoRxban6lcZJy43tRKHhOG7Ss/Q8iMilXiDNMBZyQ/YnC+jEmcjG9uGkvPkR GC5kRFeKmmBDZf3ptABu5DHXo34jmEaofNc63BY+NlI5CMAKI4dfsw/zUNkKlDwUEtkP 2zxN4ij/gXtOT5l+eSXLUfu93RHPkxh8v87dNAtL9YwY61QH9apXigNUTgn2N3HMIMNq uGfQ== X-Gm-Message-State: AHYfb5hNN9jo6sOFt46VPV8RzW5BgtuO9t0dMqtlbGEORg6d9sI0sPrA q4tK9wVTiU7QstF8sDUX81rVxvwyag== X-Received: by 10.200.46.118 with SMTP id s51mr4656999qta.48.1502185187589; Tue, 08 Aug 2017 02:39:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.148.188 with HTTP; Tue, 8 Aug 2017 02:39:47 -0700 (PDT) In-Reply-To: <20170808105229.2049262b@md1em3qc> References: <87549e3e12d5e4f2ee2464ba0e47cfe3b1d91284.1501760818.git.henning.schild@siemens.com> <20170808105229.2049262b@md1em3qc> From: Alexander Smirnov Date: Tue, 8 Aug 2017 12:39:47 +0300 Message-ID: Subject: Re: [PATCH 0-10 of 16 v2 1/8] meta: classes: use base.bbclass from bitbake To: Henning Schild Cc: isar-users@googlegroups.com Content-Type: multipart/alternative; boundary="001a113cf0e47e40af05563abe2e" X-TUID: 3sdVP34WONYj --001a113cf0e47e40af05563abe2e Content-Type: text/plain; charset="UTF-8" 2017-08-08 11:52 GMT+03:00 Henning Schild : > Am Mon, 7 Aug 2017 19:27:43 +0300 > schrieb Alexander Smirnov : > > > Hi Henning, > > > > thank you for the series! I'm trying to build Isar with your patches > > but got an error: > > Thanks for merging some of the stuff! > > > ERROR: buildchroot-1.0-r0 do_build: Build of do_build failed > > ERROR: buildchroot-1.0-r0 do_build: Traceback (most recent call last): > > File "/home/asmirnov/Work/isar/isar/bitbake/lib/bb/data_smart.py", > > line 388, in expandWithRefs > > s = __expand_python_regexp__.sub(varparse.python_sub, s) > > File "/home/asmirnov/Work/isar/isar/bitbake/lib/bb/data_smart.py", > > line 138, in python_sub > > value = utils.better_eval(codeobj, DataContext(self.d), {'d' : > > self.d}) > > > > > > File "/home/asmirnov/Work/isar/isar/bitbake/lib/bb/utils.py", line > > 424, in better_eval > > > > return eval(source, ctx, locals) > > > > > > File "FILESDIR", line 1, in > > > > > > AttributeError: 'module' object has no attribute 'which' > > > > > > > > The above exception was the direct cause of the following exception: > > ... > > > > From the internet I got that this problem caused by old python which > > doesn have 'which' method in 'module' object. > > Which python version do you use? My version is python 3.4.2 - this is > > standard one for Debian-8. > > I am using 3.4.2 in a Debian-8 container, it just contains a few > Debian-9 packages to fix multistrap host-leakage. > Docker: jankiszka/kas-isar/base > > Maybe we build it differently? Could you try the unmodified q on master > as well? > What I've tried: 1. I have clean Debian-8 in chroot with python 3.4.2 installed. 2. The current master at github.com works good. 3. The paster with your series applied (without any changes from my side) - fails with the error mentioned in this mail. 4. To build I use the following command: bitbake multiconfig:qemuarm-wheezy:isar-image-base Could you please send the list of python plugins installed? Alex > > 2017-08-03 14:55 GMT+03:00 Henning Schild > > : > > > > > Do not use our own copy of that class and move local deviations into > > > isar-base. That also fixes the default tasks "showdata" and > > > "listtasks", which probably never worked. > > > > > > Signed-off-by: Henning Schild > > > --- > > > meta/classes/base.bbclass | 81 +----------------------------- > > > ------------ > > > meta/classes/dpkg.bbclass | 2 ++ > > > meta/classes/ext4-img.bbclass | 2 ++ > > > meta/classes/isar-base.bbclass | 36 +++++++++++++++++++ > > > 4 files changed, 41 insertions(+), 80 deletions(-) > > > mode change 100644 => 120000 meta/classes/base.bbclass > > > create mode 100644 meta/classes/isar-base.bbclass > > > > > > diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass > > > deleted file mode 100644 > > > index 48b6bac..0000000 > > > --- a/meta/classes/base.bbclass > > > +++ /dev/null > > > @@ -1,80 +0,0 @@ > > > -# Copyright (C) 2003 Chris Larson > > > -# > > > -# Permission is hereby granted, free of charge, to any person > > > obtaining a -# copy of this software and associated documentation > > > files (the "Software"), > > > -# to deal in the Software without restriction, including without > > > limitation > > > -# the rights to use, copy, modify, merge, publish, distribute, > > > sublicense, -# and/or sell copies of the Software, and to permit > > > persons to whom the -# Software is furnished to do so, subject to > > > the following conditions: -# > > > -# The above copyright notice and this permission notice shall be > > > included -# in all copies or substantial portions of the Software. > > > -# > > > -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, > > > EXPRESS OR > > > -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF > > > MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND > > > NONINFRINGEMENT. IN NO EVENT SHALL -# THE AUTHORS OR COPYRIGHT > > > HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR -# OTHER LIABILITY, > > > WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -# ARISING > > > FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -# > > > OTHER DEALINGS IN THE SOFTWARE. - > > > -THISDIR = "${@os.path.dirname(d.getVar('FILE', True))}" > > > - > > > -die() { > > > - bbfatal "$*" > > > -} > > > - > > > -bbnote() { > > > - echo "NOTE:" "$*" > > > -} > > > - > > > -bbwarn() { > > > - echo "WARNING:" "$*" > > > -} > > > - > > > -bbfatal() { > > > - echo "FATAL:" "$*" > > > - exit 1 > > > -} > > > - > > > -bbdebug() { > > > - test $# -ge 2 || { > > > - echo "Usage: bbdebug level \"message\"" > > > - exit 1 > > > - } > > > - > > > - test ${@bb.msg.debug_level['default']} -ge $1 && { > > > - shift > > > - echo "DEBUG:" $* > > > - } > > > -} > > > - > > > -addtask showdata > > > -do_showdata[nostamp] = "1" > > > -python do_showdata() { > > > - import sys > > > - # emit variables and shell functions > > > - bb.data.emit_env(sys.__stdout__, d, True) > > > - # emit the metadata which isnt valid shell > > > - for e in bb.data.keys(d): > > > - if bb.data.getVarFlag(e, 'python', d): > > > - sys.__stdout__.write("\npython %s () > > > {\n%s}\n" % (e, bb.data.getVar(e, d, 1))) > > > -} > > > - > > > -addtask listtasks > > > -do_listtasks[nostamp] = "1" > > > -python do_listtasks() { > > > - import sys > > > - for e in bb.data.keys(d): > > > - if bb.data.getVarFlag(e, 'task', d): > > > - sys.__stdout__.write("%s\n" % e) > > > -} > > > - > > > -addtask build > > > -do_build[dirs] = "${TOPDIR}" > > > -python base_do_build () { > > > - bb.note("The included, default BB base.bbclass does not > > > define a useful default task.") > > > - bb.note("Try running the 'listtasks' task against a .bb to > > > see what tasks are defined.") > > > -} > > > - > > > -EXPORT_FUNCTIONS do_clean do_mrproper do_build > > > diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass > > > new file mode 120000 > > > index 0000000..11fe0a4 > > > --- /dev/null > > > +++ b/meta/classes/base.bbclass > > > @@ -0,0 +1 @@ > > > +../../bitbake/classes/base.bbclass > > > \ No newline at end of file > > > diff --git a/meta/classes/dpkg.bbclass b/meta/classes/dpkg.bbclass > > > index a0446d7..3d7aafb 100644 > > > --- a/meta/classes/dpkg.bbclass > > > +++ b/meta/classes/dpkg.bbclass > > > @@ -1,6 +1,8 @@ > > > # This software is a part of ISAR. > > > # Copyright (C) 2015-2016 ilbers GmbH > > > > > > +inherit isar-base > > > + > > > # Add dependency from buildchroot creation > > > DEPENDS += "buildchroot" > > > do_unpack[deptask] = "do_build" > > > diff --git a/meta/classes/ext4-img.bbclass > > > b/meta/classes/ext4-img.bbclass index 65d4c11..1486c3e 100644 > > > --- a/meta/classes/ext4-img.bbclass > > > +++ b/meta/classes/ext4-img.bbclass > > > @@ -1,6 +1,8 @@ > > > # This software is a part of ISAR. > > > # Copyright (C) 2015-2016 ilbers GmbH > > > > > > +inherit isar-base > > > + > > > # Extra space for rootfs in MB > > > ROOTFS_EXTRA ?= "64" > > > > > > diff --git a/meta/classes/isar-base.bbclass > > > b/meta/classes/isar-base. bbclass > > > new file mode 100644 > > > index 0000000..67d38a1 > > > --- /dev/null > > > +++ b/meta/classes/isar-base.bbclass > > > @@ -0,0 +1,36 @@ > > > +# This software is a part of ISAR. > > > +# Copyright (C) 2017 Siemens AG > > > +# > > > +# Permission is hereby granted, free of charge, to any person > > > obtaining a +# copy of this software and associated documentation > > > files (the "Software"), > > > +# to deal in the Software without restriction, including without > > > limitation > > > +# the rights to use, copy, modify, merge, publish, distribute, > > > sublicense, +# and/or sell copies of the Software, and to permit > > > persons to whom the +# Software is furnished to do so, subject to > > > the following conditions: +# > > > +# The above copyright notice and this permission notice shall be > > > included +# in all copies or substantial portions of the Software. > > > +# > > > +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, > > > EXPRESS OR > > > +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF > > > MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND > > > NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT > > > HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR +# OTHER LIABILITY, > > > WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +# ARISING > > > FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +# > > > OTHER DEALINGS IN THE SOFTWARE. + > > > +THISDIR = "${@os.path.dirname(d.getVar('FILE', True))}" > > > + > > > +bbdebug() { > > > + test $# -ge 2 || { > > > + echo "Usage: bbdebug level \"message\"" > > > + exit 1 > > > + } > > > + > > > + test ${@bb.msg.debug_level['default']} -ge $1 && { > > > + shift > > > + echo "DEBUG:" $* > > > + } > > > +} > > > + > > > +do_build[nostamp] = "0" > > > -- > > > 2.13.0 > > > > > > > > --001a113cf0e47e40af05563abe2e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

= 2017-08-08 11:52 GMT+03:00 Henning Schild <henning.schild@siemens= .com>:
A= m Mon, 7 Aug 2017 19:27:43 +0300
schrieb Alexander Smirnov <alex.bluesman.smirnov@gmail.com>:

> Hi Henning,
>
> thank you for the series! I'm trying to build Isar with your patch= es
> but got an error:

Thanks for merging some of the stuff!

> ERROR: buildchroot-1.0-r0 do_build: Build of do_build failed
> ERROR: buildchroot-1.0-r0 do_build: Traceback (most recent call last):=
>=C2=A0 =C2=A0File "/home/asmirnov/Work/isar/isar/bitbake/lib/= bb/data_smart.py",
> line 388, in expandWithRefs
>=C2=A0 =C2=A0 =C2=A0s =3D __expand_python_regexp__.sub(varparse.py= thon_sub, s)
>=C2=A0 =C2=A0File "/home/asmirnov/Work/isar/isar/bitbake/lib/= bb/data_smart.py",
> line 138, in python_sub
>=C2=A0 =C2=A0 =C2=A0value =3D utils.better_eval(codeobj, DataContext(se= lf.d), {'d' :
> self.d})
>
>
>=C2=A0 =C2=A0File "/home/asmirnov/Work/isar/isar/bitbake/lib/= bb/utils.py", line
> 424, in better_eval
>
>=C2=A0 =C2=A0 =C2=A0return eval(source, ctx, locals)
>
>
>=C2=A0 =C2=A0File "FILESDIR", line 1, in <module>
>
>
> AttributeError: 'module' object has no attribute 'which= 9;
>
>
>
> The above exception was the direct cause of the following exception: > ...
>
> From the internet I got that this problem caused by old python which > doesn have 'which' method in 'module' object.
> Which python version do you use? My version is python 3.4.2 - this is<= br> > standard one for Debian-8.

I am using 3.4.2 in a Debian-8 container, it just contains a few
Debian-9 packages to fix multistrap host-leakage.
Docker: jankiszka/kas-isar/base

Maybe we build it differently? Could you try the unmodified q on master
as well?

What I've tried:

1. I have clean Debian-8 in chroot with python 3.4.2 instal= led.
2. The current master at githu= b.com works good.
3. The paster with your series applied (wit= hout any changes from my side) - fails with the error mentioned in this mai= l.
4. To build I use the following command:=C2=A0bitbake multicon= fig:qemuarm-wheezy:isar-image-base

Could you pleas= e send the list of python plugins installed?

Alex<= /div>
=C2=A0
> 2017-08-03 14:55 GMT+03:00 Henning Schild
> <henning.schild@sieme= ns.com>:
>
> > Do not use our own copy of that class and move local deviations i= nto
> > isar-base. That also fixes the default tasks "showdata"= and
> > "listtasks", which probably never worked.
> >
> > Signed-off-by: Henning Schild <henning.schild@siemens.com>
> > ---
> >=C2=A0 meta/classes/base.bbclass=C2=A0 =C2=A0 =C2=A0 | 81 +-------= ----------------------
> > ------------
> >=C2=A0 meta/classes/dpkg.bbclass=C2=A0 =C2=A0 =C2=A0 |=C2=A0 2 ++<= br> > >=C2=A0 meta/classes/ext4-img.bbclass=C2=A0 |=C2=A0 2 ++
> >=C2=A0 meta/classes/isar-base.bbclass | 36 +++++++++++++++++++
> >=C2=A0 4 files changed, 41 insertions(+), 80 deletions(-)
> >=C2=A0 mode change 100644 =3D> 120000 meta/classes/base.bbclass=
> >=C2=A0 create mode 100644 meta/classes/isar-base.bbclass
> >
> > diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclas= s
> > deleted file mode 100644
> > index 48b6bac..0000000
> > --- a/meta/classes/base.bbclass
> > +++ /dev/null
> > @@ -1,80 +0,0 @@
> > -# Copyright (C) 2003=C2=A0 Chris Larson
> > -#
> > -# Permission is hereby granted, free of charge, to any person > > obtaining a -# copy of this software and associated documentation=
> > files (the "Software"),
> > -# to deal in the Software without restriction, including without=
> > limitation
> > -# the rights to use, copy, modify, merge, publish, distribute, > > sublicense, -# and/or sell copies of the Software, and to permit<= br> > > persons to whom the -# Software is furnished to do so, subject to=
> > the following conditions: -#
> > -# The above copyright notice and this permission notice shall be=
> > included -# in all copies or substantial portions of the Software= .
> > -#
> > -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY O= F ANY KIND,
> > EXPRESS OR
> > -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
> > MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND
> > NONINFRINGEMENT. IN NO EVENT SHALL -# THE AUTHORS OR COPYRIGHT > > HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR -# OTHER LIABILITY, > > WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -# ARISING > > FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -#<= br> > > OTHER DEALINGS IN THE SOFTWARE. -
> > -THISDIR =3D "${@os.path.dirname(d.getVar('FILE'= ;, True))}"
> > -
> > -die() {
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0bbfatal "$*"
> > -}
> > -
> > -bbnote() {
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0echo "NOTE:" "$*"=
> > -}
> > -
> > -bbwarn() {
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0echo "WARNING:" "$*&qu= ot;
> > -}
> > -
> > -bbfatal() {
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0echo "FATAL:" "$*"= ;
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0exit 1
> > -}
> > -
> > -bbdebug() {
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0test $# -ge 2 || {
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0echo &quo= t;Usage: bbdebug level \"message\""
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0exit 1 > > -=C2=A0 =C2=A0 =C2=A0 =C2=A0}
> > -
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0test ${@bb.msg.debug_level['= default']} -ge $1 && {
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0shift
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0echo &quo= t;DEBUG:" $*
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0}
> > -}
> > -
> > -addtask showdata
> > -do_showdata[nostamp] =3D "1"
> > -python do_showdata() {
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0import sys
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0# emit variables and shell functions<= br> > > -=C2=A0 =C2=A0 =C2=A0 =C2=A0bb.data.emit_env(sys.__stdout__,= d, True)
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0# emit the metadata which isnt valid = shell
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0for e in bb.data.keys(d):
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if bb.dat= a.getVarFlag(e, 'python', d):
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0sys.__stdout__.write("\npython %s ()
> > {\n%s}\n" % (e, bb.data.getVar(e, d, 1)))
> > -}
> > -
> > -addtask listtasks
> > -do_listtasks[nostamp] =3D "1"
> > -python do_listtasks() {
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0import sys
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0for e in bb.data.keys(d):
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if bb.dat= a.getVarFlag(e, 'task', d):
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0sys.__stdout__.write("%s\n" % e)
> > -}
> > -
> > -addtask build
> > -do_build[dirs] =3D "${TOPDIR}"
> > -python base_do_build () {
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0bb.note("The included, default B= B base.bbclass does not
> > define a useful default task.")
> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0bb.note("Try running the 'li= sttasks' task against a .bb to
> > see what tasks are defined.")
> > -}
> > -
> > -EXPORT_FUNCTIONS do_clean do_mrproper do_build
> > diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclas= s
> > new file mode 120000
> > index 0000000..11fe0a4
> > --- /dev/null
> > +++ b/meta/classes/base.bbclass
> > @@ -0,0 +1 @@
> > +../../bitbake/classes/base.bbclass
> > \ No newline at end of file
> > diff --git a/meta/classes/dpkg.bbclass b/meta/classes/dpkg.bbclas= s
> > index a0446d7..3d7aafb 100644
> > --- a/meta/classes/dpkg.bbclass
> > +++ b/meta/classes/dpkg.bbclass
> > @@ -1,6 +1,8 @@
> >=C2=A0 # This software is a part of ISAR.
> >=C2=A0 # Copyright (C) 2015-2016 ilbers GmbH
> >
> > +inherit isar-base
> > +
> >=C2=A0 # Add dependency from buildchroot creation
> >=C2=A0 DEPENDS +=3D "buildchroot"
> >=C2=A0 do_unpack[deptask] =3D "do_build"
> > diff --git a/meta/classes/ext4-img.bbclass
> > b/meta/classes/ext4-img.bbclass index 65d4c11..1486c3e 10064= 4
> > --- a/meta/classes/ext4-img.bbclass
> > +++ b/meta/classes/ext4-img.bbclass
> > @@ -1,6 +1,8 @@
> >=C2=A0 # This software is a part of ISAR.
> >=C2=A0 # Copyright (C) 2015-2016 ilbers GmbH
> >
> > +inherit isar-base
> > +
> >=C2=A0 # Extra space for rootfs in MB
> >=C2=A0 ROOTFS_EXTRA ?=3D "64"
> >
> > diff --git a/meta/classes/isar-base.bbclass
> > b/meta/classes/isar-base. bbclass
> > new file mode 100644
> > index 0000000..67d38a1
> > --- /dev/null
> > +++ b/meta/classes/isar-base.bbclass
> > @@ -0,0 +1,36 @@
> > +# This software is a part of ISAR.
> > +# Copyright (C) 2017=C2=A0 Siemens AG
> > +#
> > +# Permission is hereby granted, free of charge, to any person > > obtaining a +# copy of this software and associated documentation=
> > files (the "Software"),
> > +# to deal in the Software without restriction, including without=
> > limitation
> > +# the rights to use, copy, modify, merge, publish, distribute, > > sublicense, +# and/or sell copies of the Software, and to permit<= br> > > persons to whom the +# Software is furnished to do so, subject to=
> > the following conditions: +#
> > +# The above copyright notice and this permission notice shall be=
> > included +# in all copies or substantial portions of the Software= .
> > +#
> > +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY O= F ANY KIND,
> > EXPRESS OR
> > +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
> > MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND
> > NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT > > HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR +# OTHER LIABILITY, > > WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +# ARISING > > FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +#<= br> > > OTHER DEALINGS IN THE SOFTWARE. +
> > +THISDIR =3D "${@os.path.dirname(d.getVar('FILE'= ;, True))}"
> > +
> > +bbdebug() {
> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0test $# -ge 2 || {
> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0echo &quo= t;Usage: bbdebug level \"message\""
> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0exit 1 > > +=C2=A0 =C2=A0 =C2=A0 =C2=A0}
> > +
> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0test ${@bb.msg.debug_level['= default']} -ge $1 && {
> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0shift
> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0echo &quo= t;DEBUG:" $*
> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0}
> > +}
> > +
> > +do_build[nostamp] =3D "0"
> > --
> > 2.13.0
> >
> >


--001a113cf0e47e40af05563abe2e--