diff mbox

[LEDE-DEV,RFC,2/5] toolchain: gcc: Keep testsuite folder to simplify generation of patches

Message ID 20170210193810.8573-3-Alexey.Brodkin@synopsys.com
State RFC
Headers show

Commit Message

Alexey Brodkin Feb. 10, 2017, 7:38 p.m. UTC
Since we're going to put a bunch of patches for ARC generated with
"git format-patch" missing "testsuite" folder will cause failures on
application of those patches.

With "testsuite" in place all our patches are applied flawlessly.

Signed-off-by: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
---
 toolchain/gcc/common.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Felix Fietkau Feb. 10, 2017, 10:16 p.m. UTC | #1
On 2017-02-10 20:38, Alexey Brodkin wrote:
> Since we're going to put a bunch of patches for ARC generated with
> "git format-patch" missing "testsuite" folder will cause failures on
> application of those patches.
> 
> With "testsuite" in place all our patches are applied flawlessly.
> 
> Signed-off-by: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
I would prefer to leave 'testsuite' out, since it uses quite a bit of
space and we want to make it easier for buildbot to build stuff in a
ramdisk.

You could try generating patches using:
git format-patch <range>  -- . ':!gcc/testsuite'

- Felix
diff mbox

Patch

diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk
index 6ee7efd..b58774e 100644
--- a/toolchain/gcc/common.mk
+++ b/toolchain/gcc/common.mk
@@ -61,7 +61,7 @@  HOST_STAMP_INSTALLED:=$(STAGING_DIR_HOST)/stamp/.gcc_$(GCC_VARIANT)_installed
 SEP:=,
 TARGET_LANGUAGES:="c,c++$(if $(CONFIG_INSTALL_LIBGCJ),$(SEP)java)$(if $(CONFIG_INSTALL_GFORTRAN),$(SEP)fortran)$(if $(CONFIG_INSTALL_GCCGO),$(SEP)go)"
 
-TAR_OPTIONS += --exclude='gcc/testsuite/*' --exclude=gcc/ada/*.ad*
+TAR_OPTIONS += --exclude=gcc/ada/*.ad*
 
 ifndef CONFIG_INSTALL_LIBGCJ
   TAR_OPTIONS += --exclude=libjava