mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 00:32:12 +02:00
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: 16b39e9deb50d5583e1be9ad08cce8d76b78639d) Signed-off-by: Steven Hung (洪于玉) <Steven.Hung@mediatek.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f9762e70e7
commit
b62826a6e7
@@ -130,7 +130,7 @@ inherit ${KERNEL_CLASSES}
|
||||
# the symlink.
|
||||
do_unpack[cleandirs] += " ${S} ${STAGING_KERNEL_DIR} ${B} ${STAGING_KERNEL_BUILDDIR}"
|
||||
do_clean[cleandirs] += " ${S} ${STAGING_KERNEL_DIR} ${B} ${STAGING_KERNEL_BUILDDIR}"
|
||||
base_do_unpack_append () {
|
||||
python do_symlink_kernsrc () {
|
||||
s = d.getVar("S")
|
||||
if s[-1] == '/':
|
||||
# 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 () {
|
||||
shutil.move(s, kernsrc)
|
||||
os.symlink(kernsrc, s)
|
||||
}
|
||||
addtask symlink_kernsrc before do_configure after do_unpack
|
||||
|
||||
inherit kernel-arch deploy
|
||||
|
||||
|
||||
Reference in New Issue
Block a user