Bug 12269 - copy_bitbake_and_layers(): make it support subgits
Summary: copy_bitbake_and_layers(): make it support subgits
Status: RESOLVED INVALID
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.5
Hardware: x86 Multiple
: Undecided enhancement
Target Milestone: 2.5 M1
Assignee: Robert Yang
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-10-24 03:24 UTC by Robert Yang
Modified: 2017-10-24 03:37 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Yang 2017-10-24 03:24:51 UTC
We put recipe's git sources in a layer such as foo, e.g.:
$ ls foo/git/
linux-yocto-4.12.git
yocto-kernel-cache.git

And set PREMIRRORS in foo/conf/layer.conf:

PREMIRRORS_prepend = " \ 
     git://git.yoctoproject.org/linux-yocto-4.12.git git://${LAYERDIR}/git/linux-yocto-4.12.git;protocol=file \n \
     git://git.yoctoproject.org/yocto-kernel-cache git://${LAYERDIR}/git/yocto-kernel-cache.git;protocol=file \n \
"

The local sources can be used after add foo layer to conf/bblayers.conf (Note, only foo layer is added to con/bblayers.conf, not foo/git/linux-yocto-4.12.git since the later one is not a layer). But copy_bitbake_and_layers() doesn't support copy subgits, so foo/git/ is not in eSDK after bitbake <image> -cpopulate_sdk_ext. We can enhance it.
Comment 1 Robert Yang 2017-10-24 03:37:08 UTC
I just found that copy_bitbake_and_layers() is OK, it does copy all files under layer, something should be wrong with other parts, maybe oe-publish-sdk.