summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorSteven Hung (洪于玉) <Steven.Hung@mediatek.com>2019-04-19 07:31:58 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-04-23 23:30:19 +0100
commitbd50ff2cd0cbd6c1dd190868c55ba4ce4a493599 (patch)
treecda27be42af4efdae41fe316cca1a46a60f988cf /meta/classes
parentf3b96fa0bbf924ed3477fe96554943f535c794f1 (diff)
downloadpoky-bd50ff2cd0cbd6c1dd190868c55ba4ce4a493599.tar.gz
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 (From OE-Core rev: 1ba4728f058b90957741fa016230ffa72e206ff3) Signed-off-by:&#32;Steven&#32;Hung&#32;(&#27946;&#20110;&#29577;)&#32;&lt;Steven.Hung@mediatek.com&gt; Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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