summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Varvara <andrei.varvara@enea.com>2015-12-09 13:48:17 +0100
committerGeorge Nita <george.nita@enea.com>2015-12-09 15:01:43 +0100
commitb5dbf2cbd4a0d6395ebc82999bda1981c8cd3f0a (patch)
treeacd51cf147e52e14169972e20308718e326a0261
parent6682c77520965dd7f0ab1ce92f32d57181d04462 (diff)
downloadmeta-enea-bsp-ppc-b5dbf2cbd4a0d6395ebc82999bda1981c8cd3f0a.tar.gz
linux-qoriq-common.inc: Replaced python print with yocto command
When printing from a recipe it should be used the printing functions provided by yocto. Used bb.note for info printing and bb.error for error exception printing. Signed-off-by: Andrei Varvara <andrei.varvara@enea.com> Signed-off-by: George Nita <george.nita@enea.com>
-rw-r--r--recipes-kernel/linux/linux-qoriq-common.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes-kernel/linux/linux-qoriq-common.inc b/recipes-kernel/linux/linux-qoriq-common.inc
index c5430c8..aa1e6ea 100644
--- a/recipes-kernel/linux/linux-qoriq-common.inc
+++ b/recipes-kernel/linux/linux-qoriq-common.inc
@@ -43,13 +43,13 @@ do_unpack_append() {
43 import shutil 43 import shutil
44 workdir = d.getVar("WORKDIR", True) 44 workdir = d.getVar("WORKDIR", True)
45 sourcedir = d.getVar("S", True) 45 sourcedir = d.getVar("S", True)
46 print "Copy cfg folder from workdir %s to source directory %s" % (workdir, sourcedir) 46 bb.note("Copy cfg folder from workdir %s to source directory %s" % (workdir, sourcedir))
47 src = workdir + "/cfg" 47 src = workdir + "/cfg"
48 dst = sourcedir + "/cfg" 48 dst = sourcedir + "/cfg"
49 try: 49 try:
50 shutil.copytree(src, dst) 50 shutil.copytree(src, dst)
51 except shutil.Error as e: 51 except shutil.Error as e:
52 print "Directory not copied. Error: %s" % e 52 bb.error("Directory not copied. Error: %s" % e)
53 except OSError as e: 53 except OSError as e:
54 print "Directory not copied. Error: %s" % e 54 bb.error("Directory not copied. Error: %s" % e)
55} 55}