summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/kernel.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 5cabc2ce1c..88356b1941 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -43,6 +43,9 @@ python __anonymous () {
43do_unpack[cleandirs] += " ${S} ${STAGING_KERNEL_DIR} ${B}" 43do_unpack[cleandirs] += " ${S} ${STAGING_KERNEL_DIR} ${B}"
44base_do_unpack_append () { 44base_do_unpack_append () {
45 s = d.getVar("S", True) 45 s = d.getVar("S", True)
46 if s[-1] == '/':
47 # drop trailing slash, so that os.symlink(kernsrc, s) doesn't use s as directory name and fail
48 s=s[:-1]
46 kernsrc = d.getVar("STAGING_KERNEL_DIR", True) 49 kernsrc = d.getVar("STAGING_KERNEL_DIR", True)
47 if s != kernsrc: 50 if s != kernsrc:
48 bb.utils.mkdirhier(kernsrc) 51 bb.utils.mkdirhier(kernsrc)