summaryrefslogtreecommitdiffstats
path: root/meta/classes/go.bbclass
diff options
context:
space:
mode:
authorMatt Madison <matt@madison.systems>2018-03-04 13:09:29 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-06 06:43:10 -0800
commit02b8eae8c7fc56c5047372e326f42500e9bbe13e (patch)
tree328a8c46f420e1e47e9c1ca71bbfe869e9b8934c /meta/classes/go.bbclass
parentb6ff2564e9f0141d36eb7ca1010dd17917a01d47 (diff)
downloadpoky-02b8eae8c7fc56c5047372e326f42500e9bbe13e.tar.gz
go.bbclass: don't stage test data with sources
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. (From OE-Core rev: b013db7ab58d4d56ad5c6e54a3a32df31aaf8809) Signed-off-by: Matt Madison <matt@madison.systems> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/go.bbclass')
-rw-r--r--meta/classes/go.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index 21ac2276c5..afd68b5951 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -114,7 +114,7 @@ do_compile_ptest_base[dirs] =+ "${GOTMPDIR}"
114 114
115go_do_install() { 115go_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' . | \ 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 - pkg | tar -C ${D}${libdir}/go --no-same-owner -xf - 119 tar -C ${B} -cf - pkg | tar -C ${D}${libdir}/go --no-same-owner -xf -
120 120