mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 21:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
b6ff2564e9
commit
02b8eae8c7
@@ -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 -
|
||||
|
||||
|
||||
Reference in New Issue
Block a user