From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6449247987863388160 X-Received: by 10.237.58.166 with SMTP id o35mr673939qte.29.1502123264506; Mon, 07 Aug 2017 09:27:44 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.107.55.7 with SMTP id e7ls7639082ioa.35.gmail; Mon, 07 Aug 2017 09:27:44 -0700 (PDT) X-Received: by 10.99.232.83 with SMTP id a19mr674925pgk.127.1502123264230; Mon, 07 Aug 2017 09:27:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502123264; cv=none; d=google.com; s=arc-20160816; b=gPTr7Tl/KA7V2wqZQdRk2Mk1Uun2unMPs2B1nfqbytYupPA74NdDp43g5EiW++cvqj FWsEx04HATlYYTf4c4dQj0WxCLcBaLZGAvfI4xNrYICbvDhnG5HaIAfJam5L/XB8e3eb kitu90dl2HQH/wCgCpbJHSSGuYbs2ushTeiqWG8fIWTDwcOyNVEpDCAGqfNSnhcG1vhd aOhyVFI6q/c0jcUE4DbBC1WnfiRo+VThxKi3ZC/RZeGweoJmaYg83BYamSeMh8b8C+3B /zqHNTQ+t6KLsSGphpPaiNv7nOrPKm5ep9KRla6iorXb1LNHFKTQSD0yzZbUaoyCtBu2 tIcw== 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=UX5nkb6J86HTvcQdmjVY+pUp/wD2OgWTz3wLmaPPMqI=; b=SPme+dco0xJ1accXSu3cJP8WEoEMYMmpJQcOfHpmyi5NV/cxpFZKEKdGAGb0Anu7nY PM2O2r9csb8GkbypAmdTU0Qko7s5GJ6oIMTjb67HnjYv+7A5B132wJRF0pDxD5OUtCR3 juSpsVvCdD7RPdTWp8tC6U586VZl+qAfGKuZSBvDaSr+Swg3JIEVjc1HO9+0Hk27ydJu Mdwy4aZIy0hO6xECeOVi1VPyA8ob7AB1Ceu71vFYhgUgySuhXldQIthHCRkcsvtbGj8R OqYpj/ZMY0mfmM67Gd7Z4w77bDs9Z9F2lGp/cMVfZXAFxPDoCT4+f6sqvzyIXpxCvKaM F/8A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.b=fTVamSPD; spf=pass (google.com: domain of alex.bluesman.smirnov@gmail.com designates 2607:f8b0:400d:c09::22b 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-qk0-x22b.google.com (mail-qk0-x22b.google.com. [2607:f8b0:400d:c09::22b]) by gmr-mx.google.com with ESMTPS id u188si574234ywd.5.2017.08.07.09.27.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Aug 2017 09:27:44 -0700 (PDT) Received-SPF: pass (google.com: domain of alex.bluesman.smirnov@gmail.com designates 2607:f8b0:400d:c09::22b as permitted sender) client-ip=2607:f8b0:400d:c09::22b; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.b=fTVamSPD; spf=pass (google.com: domain of alex.bluesman.smirnov@gmail.com designates 2607:f8b0:400d:c09::22b 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-qk0-x22b.google.com with SMTP id d145so5483638qkc.2 for ; Mon, 07 Aug 2017 09:27:44 -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=UX5nkb6J86HTvcQdmjVY+pUp/wD2OgWTz3wLmaPPMqI=; b=fTVamSPDAmdrSe9v3GVpwmGbatRcJ5Vm4J7oFiUoZLwwhyknstHuQ/1QydajzJYlUs OWZkOe5O6ZvGW+zQU6U6NkyrbQPR9Jmx9O6g4NjMI6ljK8G4EU6sezlCy+AOBkeNzAs2 uPupESWZLHlrz97swcqozAJET5WbcBm+51Grfdgc7NGdL4yB6dhCPbikfzVQ+T7qIFcD WswcgzZlmTAr7PpSy+2Exku99oSM+SRrKPUZx3PcrGtSg/QZlxC5jrQTtiC7OQDiw9MD lKk/6EwMhmdPcXDh+0YYW7q51FTwh4uDJp66dRw1fG2uO6zxoJ7XHKYJD2ujhzmjcgUm b9HQ== 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=UX5nkb6J86HTvcQdmjVY+pUp/wD2OgWTz3wLmaPPMqI=; b=qvqMD2LYTXKdQ4gFFzzWBrdXJirqWr6Lij21gUndxJMO0eSF5G+5tImeA/0tYL1gXF u4E0mHeL31t7f8ny65x0bTN9FC/+PZ3lqeJNggVA95JUWfQNV+FfU0kTi0zFSOu8++8r v8dIPOmOXL9ZrFXoYLkFno/B/mqdJq60epfoS2L5o3yREuFC8Y7qNjX+aUlN9lp968fH NMISdCUL7z1jXDkG5zgF5qOVVjsUpLl6ysbV8ok72p3dW4UwV9lcRg/AyPJYzIaWRy0+ sn1kWm+HA1qmqEzF+atVo17DPjgY7n2xquax0zRi3m+Wm1BuuEJOxgeyk4z6oPEAXW+O RcQQ== X-Gm-Message-State: AHYfb5gDHjeeA1bSGd3Jr4wyPz1iqXJyEtZKtu/nKccTdrj+jHZ7lqaW 2JmbiGebNVlNCQ32Zxlo+NfnJgk0fw== X-Received: by 10.55.168.140 with SMTP id r134mr1571333qke.204.1502123263840; Mon, 07 Aug 2017 09:27:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.148.188 with HTTP; Mon, 7 Aug 2017 09:27:43 -0700 (PDT) In-Reply-To: <87549e3e12d5e4f2ee2464ba0e47cfe3b1d91284.1501760818.git.henning.schild@siemens.com> References: <87549e3e12d5e4f2ee2464ba0e47cfe3b1d91284.1501760818.git.henning.schild@siemens.com> From: Alexander Smirnov Date: Mon, 7 Aug 2017 19:27:43 +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="001a114fce348ce01605562c536d" X-TUID: WHSjNuCzBZZM --001a114fce348ce01605562c536d Content-Type: text/plain; charset="UTF-8" Hi Henning, thank you for the series! I'm trying to build Isar with your patches but got an error: 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. 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 > > --001a114fce348ce01605562c536d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Henning,

thank you for the series! I= 'm trying to build Isar with your patches but got an error:
<= br>
ERROR: buildchroot-1.0-r0 do_build: Build of do_build fa= iled
ERROR: buildchroot-1.0-r0 do_build: Traceback (most recent c= all last):
=C2=A0 File "/home/asmirnov/Work/isar/isar/bitbak= e/lib/bb/data_smart.py", line 388, in expandWithRefs
=C2=A0 = =C2=A0 s =3D __expand_python_regexp__.sub(varparse.python_sub, s)
=C2=A0 File "/home/asmirnov/Work/isar/isar/bitbake/lib/bb/data_smart.= py", line 138, in python_sub
=C2=A0 =C2=A0 value =3D utils.b= etter_eval(codeobj, DataContext(self.d), {'d' : self.d}) =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =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0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
Attri= buteError: 'module' object has no attribute 'which' =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0

The above exception was the dire= ct 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.
Wh= ich python version do you use? My version is python 3.4.2 - this is standar= d one for Debian-8.

2017-08-03 14:55 GMT+03:00 Henning Schild &= lt;henning.= schild@siemens.com>:
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 <henning.schild@siemens.com>
---
=C2=A0meta/classes/base.bbclass=C2=A0 =C2=A0 =C2=A0 | 81 +-----------------= ------------------------
=C2=A0meta/classes/dpkg.bbclass=C2=A0 =C2=A0 =C2=A0 |=C2=A0 2 ++
=C2=A0meta/classes/ext4-img.bbclass=C2=A0 |=C2=A0 2 ++
=C2=A0meta/classes/isar-base.bbclass | 36 +++++++++++++++++++
=C2=A04 files changed, 41 insertions(+), 80 deletions(-)
=C2=A0mode change 100644 =3D> 120000 meta/classes/base.bbclass
=C2=A0create 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=C2=A0 Chris Larson
-#
-# Permission is hereby granted, free of charge, to any person obtaining a<= br> -# copy of this software and associated documentation files (the "Soft= ware"),
-# to deal in the Software without restriction, including without limitatio= n
-# 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<= br> -# 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<= br> -# 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 =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:" "$*"
-}
-
-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 "Usage: b= bdebug 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= 9;]} -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 "DEBUG:&q= uot; $*
-=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
-=C2=A0 =C2=A0 =C2=A0 =C2=A0bb.data.emit_env(sys.__stdout__, d, True)<= br> -=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.data.getVarFl= ag(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.data.getVarFl= ag(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 BB base.bbc= lass does not define a useful default task.")
-=C2=A0 =C2=A0 =C2=A0 =C2=A0bb.note("Try running the 'listtasks= 9; 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 @@
=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=A0DEPENDS +=3D "buildchroot"
=C2=A0do_unpack[deptask] =3D "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 @@
=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=A0ROOTFS_EXTRA ?=3D "64"

diff --git a/meta/classes/isar-base.bbclass b/meta/classes/isar-base.<= wbr>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<= br> +# copy of this software and associated documentation files (the "Soft= ware"),
+# to deal in the Software without restriction, including without limitatio= n
+# 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<= br> +# 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<= br> +# 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 =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 "Usage: b= bdebug 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= 9;]} -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 "DEBUG:&q= uot; $*
+=C2=A0 =C2=A0 =C2=A0 =C2=A0}
+}
+
+do_build[nostamp] =3D "0"
--
2.13.0


--001a114fce348ce01605562c536d--