diff options
Diffstat (limited to 'recipes-kernel/linux/linux-qoriq-common.inc')
-rw-r--r-- | recipes-kernel/linux/linux-qoriq-common.inc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/recipes-kernel/linux/linux-qoriq-common.inc b/recipes-kernel/linux/linux-qoriq-common.inc index eca33c7..958ab03 100644 --- a/recipes-kernel/linux/linux-qoriq-common.inc +++ b/recipes-kernel/linux/linux-qoriq-common.inc | |||
@@ -47,13 +47,16 @@ KERNEL_DEVICETREE_append_p3041ds = " p3041ds-usdpaa-enea.dtb" | |||
47 | 47 | ||
48 | require recipes-kernel/linux/pramfs-3.12.inc | 48 | require recipes-kernel/linux/pramfs-3.12.inc |
49 | 49 | ||
50 | # Freescale looks for cfg fragments within the build directory, so | ||
51 | # they must be copied there before running do_configure_prepend() | ||
52 | # task | ||
50 | do_unpack_append() { | 53 | do_unpack_append() { |
51 | import shutil | 54 | import shutil |
52 | workdir = d.getVar("WORKDIR", True) | 55 | workdir = d.getVar("WORKDIR", True) |
53 | sourcedir = d.getVar("S", True) | 56 | builddir = d.getVar("B", True) |
54 | bb.note("Copy cfg folder from workdir %s to source directory %s" % (workdir, sourcedir)) | 57 | bb.note("Copy cfg folder from workdir %s to build directory %s" % (workdir, builddir)) |
55 | src = workdir + "/cfg" | 58 | src = workdir + "/cfg" |
56 | dst = sourcedir + "/cfg" | 59 | dst = builddir + "/cfg" |
57 | try: | 60 | try: |
58 | shutil.copytree(src, dst) | 61 | shutil.copytree(src, dst) |
59 | except shutil.Error as e: | 62 | except shutil.Error as e: |