Skip to content

Commit caca6ec

Browse files
Steven Hung (洪于玉)rpurdie
authored andcommitted
kernel.bbclass: convert base_do_unpack_append() to a task
<pre> when&#32;externalsrc&#32;is&#32;enabled&#32;and&#32;the&#32;&#39;do_unpack&#39;&#32;task&#32;is&#32;deleted, building&#32;kernel&#32;module&#32;fail Signed-off-by:&#32;Steven&#32;Hung&#32;(&#27946;&#20110;&#29577;)&#32;&lt;[email protected]&gt; Signed-off-by: Richard Purdie <[email protected]>
1 parent 77ff32a commit caca6ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

meta/classes/kernel.bbclass

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ inherit ${KERNEL_CLASSES}
130130
# the symlink.
131131
do_unpack[cleandirs] += " ${S} ${STAGING_KERNEL_DIR} ${B} ${STAGING_KERNEL_BUILDDIR}"
132132
do_clean[cleandirs] += " ${S} ${STAGING_KERNEL_DIR} ${B} ${STAGING_KERNEL_BUILDDIR}"
133-
base_do_unpack_append () {
133+
python do_symlink_kernsrc () {
134134
s = d.getVar("S")
135135
if s[-1] == '/':
136136
# 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 () {
147147
shutil.move(s, kernsrc)
148148
os.symlink(kernsrc, s)
149149
}
150+
addtask symlink_kernsrc before do_configure after do_unpack
150151

151152
inherit kernel-arch deploy
152153

0 commit comments

Comments
 (0)