diff options
author | Matt Madison <matt@madison.systems> | 2017-09-08 18:04:41 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-11 17:30:30 +0100 |
commit | 7149219b7630cb8cfb70caf4610d4b64a4eccff3 (patch) | |
tree | 2a1f72555a5ec5c5c8524f3c2379b6a4cda1b2d2 /meta/classes/image.bbclass | |
parent | 07ef4dd93dcb21418647932f3324ee09bc514895 (diff) | |
download | poky-7149219b7630cb8cfb70caf4610d4b64a4eccff3.tar.gz |
go.bbclass: add do_unpack function to handle common cases
Go source trees have a particular structure, with all
sources located under ${GOROOT}/src/<import-path>.
The fetcher step implemented by the 'go get' command
automatically follows this structure, so we need
to do the same here.
Since most Go packages are hosted in git repositories,
this adds a custom do_unpack() function that sets
the destsuffix to match the expected directory structure,
for any git SRC_URIs that haven't had a destsuffix
explicitly set in the recipe.
This simplifies recipe writing for the most common
cases.
(From OE-Core rev: efcf6513b71021ea4bfe6fbaa326e6591dee487d)
Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image.bbclass')
0 files changed, 0 insertions, 0 deletions