linux-yocto: fix externalsrc builds
cover linux-yocto: fix externalsrc builds
Richard/Saul,
This is a fix for externalsrc builds when the linux-yocto bbclass is used.
The commit tells most of the story:
-----
There are a few extra task that modify the source tree that should be removed when externalsrc is inherited by a recipe that uses a linux-yocto tree.
Adding those tasks to SRCTREECOVEREDTASKS means that they are skipped and externalsrc works as intended.
-----
You'll note that do_patch is repeated in SRCTREECOVEREDTASKS here, since my tested showed that only having it in externalsrc.bbclass did not inhibit the kernel-yocto.bbclass variant from running
There's no impact if externalsrc isn't being used, so this is a safe change (from where I stand :)
Cheers,
Bruce
The following changes since commit 7b01671f54f70c28c98457058c51ffefcb07c0e8:
nspr 4.8.9: failed to build on x86_64 board (2012-03-27 13:26:37 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib zedd/kernel
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=zedd/kernel
Bruce Ashfield (1):
linux-yocto: support externalsrc builds
meta/classes/kernel-yocto.bbclass | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
Signature · 1 line
1.7.5.4
PATCH 1/1 linux-yocto: support externalsrc builds
There are a few extra task that modify the source tree that should be removed when externalsrc is inherited by a recipe that uses a linux-yocto tree.
Adding those tasks to SRCTREECOVEREDTASKS means that they are skipped and externalsrc works as intended.
--- meta/classes/kernel-yocto.bbclass | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
meta/classes/kernel-yocto.bbclass +2 -0
@@ -1,5 +1,7 @@ S = "${WORKDIR}/linux" +# remove tasks that modify the source tree in case externalsrc is inherited +SRCTREECOVEREDTASKS += "do_kernel_link_vmlinux do_kernel_configme do_validate_branches do_kernel_configcheck do_kernel_checkout do_patch" # returns local (absolute) path names for all valid patches in the # src_uri
Signature · 1 line
1.7.5.4
Richard Purdie
AppliedRe: [PATCH 1/1] linux-yocto: support externalsrc builds
Quoted 11 lines · Bruce Ashfield
There are a few extra task that modify the source tree that should be removed when externalsrc is inherited by a recipe that uses a linux-yocto tree.
Adding those tasks to SRCTREECOVEREDTASKS means that they are skipped and externalsrc works as intended.
Signed-off-by Bruce Ashfield <[email protected]>--- meta/classes/kernel-yocto.bbclass | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
Merged to master, thanks.
Richard