runc-opencontainers: go.bbclass compile fixes

These fixes are needed due to updates to go.bbclass in oe-core. See commit
01a8d45370 for more information.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
Paul Barker 2017-10-04 10:40:26 +00:00 committed by Bruce Ashfield
parent 83592435dc
commit 44e74c9aa7

View File

@ -6,9 +6,11 @@ RUNC_VERSION = "1.0.0-rc4"
PROVIDES += "virtual/runc"
RPROVIDES_${PN} = "virtual/runc"
GO_IMPORT = "import"
do_compile_prepend() {
# Go looks in a src directory under any directory in GOPATH but
# runc-opencontainers uses 'vendor' instead of 'vendor/src'. We can fix
# this with a symlink.
ln -sfn . "${S}/vendor/src"
ln -sfn . "${S}/src/import/vendor/src"
}