summaryrefslogtreecommitdiffstats
path: root/meta/classes/go.bbclass
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-21 23:08:16 +0000
commit0b3fa16b69e9f3e9bec6b4f72d7eb44f8fb33df9 (patch)
treecc9f501035ca0549b3441bc3aae9b9ba2ed64ddd /meta/classes/go.bbclass
parente32d854e33bc86c2a616df8708e021a098afcf73 (diff)
downloadpoky-0b3fa16b69e9f3e9bec6b4f72d7eb44f8fb33df9.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: ea5bd7d3eac87dfb145f98c697f356eb84c9b0ec) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/go.bbclass')
-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() {
115 install -d ${D}${libdir}/go/src/${GO_IMPORT} 115 install -d ${D}${libdir}/go/src/${GO_IMPORT}
116 tar -C ${S}/src/${GO_IMPORT} -cf - --exclude-vcs --exclude '*.test' --exclude 'testdata' . | \ 116 tar -C ${S}/src/${GO_IMPORT} -cf - --exclude-vcs --exclude '*.test' --exclude 'testdata' . | \
117 tar -C ${D}${libdir}/go/src/${GO_IMPORT} --no-same-owner -xf - 117 tar -C ${D}${libdir}/go/src/${GO_IMPORT} --no-same-owner -xf -
118 tar -C ${B} -cf - --exclude-vcs pkg | tar -C ${D}${libdir}/go --no-same-owner -xf - 118 tar -C ${B} -cf - --exclude-vcs --exclude '*.test' --exclude 'testdata' pkg | \
119 tar -C ${D}${libdir}/go --no-same-owner -xf -
119 120
120 if [ -n "`ls ${B}/${GO_BUILD_BINDIR}/`" ]; then 121 if [ -n "`ls ${B}/${GO_BUILD_BINDIR}/`" ]; then
121 install -d ${D}${bindir} 122 install -d ${D}${bindir}