diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/kernel.bbclass | 3 |
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. |
131 | do_unpack[cleandirs] += " ${S} ${STAGING_KERNEL_DIR} ${B} ${STAGING_KERNEL_BUILDDIR}" | 131 | do_unpack[cleandirs] += " ${S} ${STAGING_KERNEL_DIR} ${B} ${STAGING_KERNEL_BUILDDIR}" |
132 | do_clean[cleandirs] += " ${S} ${STAGING_KERNEL_DIR} ${B} ${STAGING_KERNEL_BUILDDIR}" | 132 | do_clean[cleandirs] += " ${S} ${STAGING_KERNEL_DIR} ${B} ${STAGING_KERNEL_BUILDDIR}" |
133 | base_do_unpack_append () { | 133 | python 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 | } |
150 | addtask symlink_kernsrc before do_configure after do_unpack | ||
150 | 151 | ||
151 | inherit kernel-arch deploy | 152 | inherit kernel-arch deploy |
152 | 153 | ||