summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Perrot <thomas.perrot@bootlin.com>2021-01-08 07:22:48 +0100
committerSteve Sakoman <steve@sakoman.com>2021-01-11 06:06:40 -1000
commitea5bd7d3eac87dfb145f98c697f356eb84c9b0ec (patch)
treef9c68dce32e66e595cb19d4c334e1141c85c4641
parent72431ee8de5e3a53d259cebf420a7713ac9e1f14 (diff)
downloadopenembedded-core-ea5bd7d3eac87dfb145f98c697f356eb84c9b0ec.tar.gz
openembedded-core-ea5bd7d3eac87dfb145f98c697f356eb84c9b0ec.tar.bz2
openembedded-core-ea5bd7d3eac87dfb145f98c697f356eb84c9b0ec.zip
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> (cherry picked from commit 7faea9766127fe4e1023c89b140cc98020655155) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/classes/go.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index a9e31b50ea..e6c3591479 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -115,7 +115,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}