summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass10
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 74092e9..83a50cb 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -51,9 +51,13 @@ base_do_unpack_append () {
51 if s != kernsrc: 51 if s != kernsrc:
52 bb.utils.mkdirhier(kernsrc) 52 bb.utils.mkdirhier(kernsrc)
53 bb.utils.remove(kernsrc, recurse=True) 53 bb.utils.remove(kernsrc, recurse=True)
54 import subprocess 54 if d.getVar("EXTERNALSRC", True):
55 subprocess.call(d.expand("mv ${S} ${STAGING_KERNEL_DIR}"), shell=True) 55 # With EXTERNALSRC S will not be wiped so we can symlink to it
56 os.symlink(kernsrc, s) 56 os.symlink(s, kernsrc)
57 else:
58 import shutil
59 shutil.move(s, kernsrc)
60 os.symlink(kernsrc, s)
57} 61}
58 62
59inherit kernel-arch deploy 63inherit kernel-arch deploy