summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorThomas Perrot <thomas.perrot@bootlin.com>2021-01-08 07:22:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-01-10 12:35:21 +0000
commit34e7ad0b455a55a7845ed18efbf207f21af31209 (patch)
tree6fa8a4913f88e33542d68dad97c27af66dfe8f03 /meta/classes
parentced238d8428da973473e805fd3d665dc626d9382 (diff)
downloadpoky-34e7ad0b455a55a7845ed18efbf207f21af31209.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. (From OE-Core rev: 7faea9766127fe4e1023c89b140cc98020655155) Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 5b26378a4e..fa147892b0 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -116,7 +116,8 @@ go_do_install() {
116 install -d ${D}${libdir}/go/src/${GO_IMPORT} 116 install -d ${D}${libdir}/go/src/${GO_IMPORT}
117 tar -C ${S}/src/${GO_IMPORT} -cf - --exclude-vcs --exclude '*.test' --exclude 'testdata' . | \ 117 tar -C ${S}/src/${GO_IMPORT} -cf - --exclude-vcs --exclude '*.test' --exclude 'testdata' . | \
118 tar -C ${D}${libdir}/go/src/${GO_IMPORT} --no-same-owner -xf - 118 tar -C ${D}${libdir}/go/src/${GO_IMPORT} --no-same-owner -xf -
119 tar -C ${B} -cf - --exclude-vcs pkg | tar -C ${D}${libdir}/go --no-same-owner -xf - 119 tar -C ${B} -cf - --exclude-vcs --exclude '*.test' --exclude 'testdata' pkg | \
120 tar -C ${D}${libdir}/go --no-same-owner -xf -
120 121
121 if [ -n "`ls ${B}/${GO_BUILD_BINDIR}/`" ]; then 122 if [ -n "`ls ${B}/${GO_BUILD_BINDIR}/`" ]; then
122 install -d ${D}${bindir} 123 install -d ${D}${bindir}