diff options
author | Thomas Perrot <thomas.perrot@bootlin.com> | 2021-01-08 07:22:48 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-10 12:35:18 +0000 |
commit | 7faea9766127fe4e1023c89b140cc98020655155 (patch) | |
tree | 9683d6ab85c5f0cc5039a365a0ceedee97533cd8 /meta/classes/go.bbclass | |
parent | 83e2617fd693d3c8eb96622980cb229e64b01711 (diff) | |
download | openembedded-core-contrib-7faea9766127fe4e1023c89b140cc98020655155.tar.gz |
go.bbclass: don't stage test data with sources of dependencies
As for the sources the dependencies contain test data, ELF files and other
binaries which aren't necessary for building and which lead to unnecessary QA
warnings.
Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/go.bbclass')
-rw-r--r-- | meta/classes/go.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass index 5b26378a4ea..fa147892b0a 100644 --- a/meta/classes/go.bbclass +++ b/meta/classes/go.bbclass @@ -116,7 +116,8 @@ go_do_install() { install -d ${D}${libdir}/go/src/${GO_IMPORT} tar -C ${S}/src/${GO_IMPORT} -cf - --exclude-vcs --exclude '*.test' --exclude 'testdata' . | \ tar -C ${D}${libdir}/go/src/${GO_IMPORT} --no-same-owner -xf - - tar -C ${B} -cf - --exclude-vcs pkg | tar -C ${D}${libdir}/go --no-same-owner -xf - + tar -C ${B} -cf - --exclude-vcs --exclude '*.test' --exclude 'testdata' pkg | \ + tar -C ${D}${libdir}/go --no-same-owner -xf - if [ -n "`ls ${B}/${GO_BUILD_BINDIR}/`" ]; then install -d ${D}${bindir} |