summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/kernel.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 9da9818962..b346a6059a 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -130,7 +130,7 @@ inherit ${KERNEL_CLASSES}
130# the symlink. 130# the symlink.
131do_unpack[cleandirs] += " ${S} ${STAGING_KERNEL_DIR} ${B} ${STAGING_KERNEL_BUILDDIR}" 131do_unpack[cleandirs] += " ${S} ${STAGING_KERNEL_DIR} ${B} ${STAGING_KERNEL_BUILDDIR}"
132do_clean[cleandirs] += " ${S} ${STAGING_KERNEL_DIR} ${B} ${STAGING_KERNEL_BUILDDIR}" 132do_clean[cleandirs] += " ${S} ${STAGING_KERNEL_DIR} ${B} ${STAGING_KERNEL_BUILDDIR}"
133base_do_unpack_append () { 133python do_symlink_kernsrc () {
134 s = d.getVar("S") 134 s = d.getVar("S")
135 if s[-1] == '/': 135 if s[-1] == '/':
136 # drop trailing slash, so that os.symlink(kernsrc, s) doesn't use s as directory name and fail 136 # drop trailing slash, so that os.symlink(kernsrc, s) doesn't use s as directory name and fail
@@ -147,6 +147,7 @@ base_do_unpack_append () {
147 shutil.move(s, kernsrc) 147 shutil.move(s, kernsrc)
148 os.symlink(kernsrc, s) 148 os.symlink(kernsrc, s)
149} 149}
150addtask symlink_kernsrc before do_configure after do_unpack
150 151
151inherit kernel-arch deploy 152inherit kernel-arch deploy
152 153