diff options
author | Steven Hung (洪于玉) <Steven.Hung@mediatek.com> | 2019-04-19 07:31:58 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-04-23 23:30:19 +0100 |
commit | bd50ff2cd0cbd6c1dd190868c55ba4ce4a493599 (patch) | |
tree | cda27be42af4efdae41fe316cca1a46a60f988cf /meta/classes/kernel.bbclass | |
parent | f3b96fa0bbf924ed3477fe96554943f535c794f1 (diff) | |
download | poky-bd50ff2cd0cbd6c1dd190868c55ba4ce4a493599.tar.gz |
kernel.bbclass: convert base_do_unpack_append() to a task
<pre>
when externalsrc is enabled and the 'do_unpack' task is deleted,
building kernel module fail
(From OE-Core rev: 1ba4728f058b90957741fa016230ffa72e206ff3)
Signed-off-by: Steven Hung (洪于玉) <Steven.Hung@mediatek.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-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 | ||