aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-02-01 08:29:06 +0100
committerJo-Philipp Wich <jo@mein.io>2017-12-13 14:15:34 +0100
commit90a43e508e7c4fb29080a0e2214ac49913ce7618 (patch)
tree8a84f004d1725c89a67d7b4a017c0ef2fde18087
parent82615922b0368d8f27b608310daeea3a77aaa6d0 (diff)
downloadupstream-90a43e508e7c4fb29080a0e2214ac49913ce7618.tar.gz
upstream-90a43e508e7c4fb29080a0e2214ac49913ce7618.tar.bz2
upstream-90a43e508e7c4fb29080a0e2214ac49913ce7618.zip
toolchain/gcc: reduce source directory size by about 420 MB
Remove gcc testsuite, ada and libjava (if not selected) Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commit f204e0fc4619c7c64d0d99b87b0ddd802338d78a)
-rw-r--r--toolchain/gcc/common.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk
index fce8a5165c..c6e01b5758 100644
--- a/toolchain/gcc/common.mk
+++ b/toolchain/gcc/common.mk
@@ -71,6 +71,12 @@ 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*
+
+ifndef CONFIG_INSTALL_LIBGCJ
+ TAR_OPTIONS += --exclude=libjava
+endif
+
export libgcc_cv_fixed_point=no
ifdef CONFIG_USE_UCLIBC
export glibcxx_cv_c99_math_tr1=no