]> code.ossystems Code Review - openembedded-core.git/commitdiff
go.bbclass: don't stage test data with sources
authorMatt Madison <matt@madison.systems>
Sun, 4 Mar 2018 21:09:29 +0000 (13:09 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 6 Mar 2018 14:36:33 +0000 (06:36 -0800)
Any directory in a Go package's source tree called
'testdata' contains test data, and isn't necessary
for building.

Some packages include ELF files and other binaries
as test data, and staging them in the sysroot and
-dev package leads to unnecessary QA warnings.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/go.bbclass

index 21ac2276c5dd75c62859ee0b3236e441066a1241..afd68b5951b1a13862475556467d7d5eb20c7cbc 100644 (file)
@@ -114,7 +114,7 @@ do_compile_ptest_base[dirs] =+ "${GOTMPDIR}"
 
 go_do_install() {
        install -d ${D}${libdir}/go/src/${GO_IMPORT}
-       tar -C ${S}/src/${GO_IMPORT} -cf - --exclude-vcs --exclude '*.test' . | \
+       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 - pkg | tar -C ${D}${libdir}/go --no-same-owner -xf -