]> code.ossystems Code Review - openembedded-core.git/commitdiff
go.bbclass: don't stage test data with sources of dependencies
authorThomas Perrot <thomas.perrot@bootlin.com>
Fri, 8 Jan 2021 06:22:48 +0000 (07:22 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 10 Jan 2021 12:35:18 +0000 (12:35 +0000)
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>
meta/classes/go.bbclass

index 5b26378a4ea1cd701eddb2b0aeccfeeb920d35bb..fa147892b0aaaa445c9e48e9fa326ea5c58c026e 100644 (file)
@@ -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}