summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Varvara <andrei.varvara@enea.com>2015-12-04 16:21:44 +0100
committerGeorge Nita <george.nita@enea.com>2015-12-07 14:41:24 +0100
commit6682c77520965dd7f0ab1ce92f32d57181d04462 (patch)
tree8f22d18aa36f544c778f4e350b8420964a01e02d
parent0d5eb3bf46ef6c1197fe69b1194af547aef85e99 (diff)
downloadmeta-enea-bsp-ppc-6682c77520965dd7f0ab1ce92f32d57181d04462.tar.gz
linux-qoriq-common.inc: Fix config fragment path for linux-qoriq
The Freescale linux-qoriq.inc is expecting that cfg folder is present in the source directory. Our recipes regarding cfg copies the cfg folder in the working directory. A patch was made to the Freescale's original recipe to look for cfg patches inside workdir, but this was not accepted by Freescale. A new fix was proposed that basically copies the cfg folder from the working directory to source directory where original FSL recipe expects to find it. This way we do not have to modify the original FSL recipe. In order to implement this fix python code that copies the cfg folder from working directory to source directory has been added in the do_unpack task. 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.inc15
1 files changed, 15 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-qoriq-common.inc b/recipes-kernel/linux/linux-qoriq-common.inc
index 9d51b1e..c5430c8 100644
--- a/recipes-kernel/linux/linux-qoriq-common.inc
+++ b/recipes-kernel/linux/linux-qoriq-common.inc
@@ -38,3 +38,18 @@ DELTA_KERNEL_DEFCONFIG += " ${ENEA_KERNEL_FRAGMENTS} \
38 " 38 "
39 39
40require recipes-kernel/linux/pramfs-3.12.inc 40require recipes-kernel/linux/pramfs-3.12.inc
41
42do_unpack_append() {
43 import shutil
44 workdir = d.getVar("WORKDIR", True)
45 sourcedir = d.getVar("S", True)
46 print "Copy cfg folder from workdir %s to source directory %s" % (workdir, sourcedir)
47 src = workdir + "/cfg"
48 dst = sourcedir + "/cfg"
49 try:
50 shutil.copytree(src, dst)
51 except shutil.Error as e:
52 print "Directory not copied. Error: %s" % e
53 except OSError as e:
54 print "Directory not copied. Error: %s" % e
55}