]> code.ossystems Code Review - openembedded-core.git/commit
go.bbclass: separate ${S} and ${B}
authorMatt Madison <matt@madison.systems>
Fri, 8 Sep 2017 21:04:40 +0000 (18:04 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Sep 2017 16:30:15 +0000 (17:30 +0100)
commitc62a083306c26b7e4deca1ff41336bb6b33d5b3a
tree96d02e37cbbe3481628e79048c43fea795876296
parent497136297f15858903b5170a8616d0cb427a995d
go.bbclass: separate ${S} and ${B}

Add a do_configure task to populate ${B} by symlinking
in the src subdirectory under ${S}, which lets us point
GOPATH at ${B}.  This lets us take advantage of the
automatic directory creation and cleaning for do_configure.

This necessitates a change to do_install to split the
installation of the sources and built artifacts.  Taking
advantage of some additional tar options, we can eliminate
the extra staging area and extra recursive chown command.
So overall efficiency should be improved.

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>
meta/classes/go.bbclass