[source] toolchain/gcc: reduce source directory size by about 420 MB

LEDE Commits lede-commits at lists.infradead.org
Thu Dec 14 09:43:05 PST 2017


jow pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/90a43e508e7c4fb29080a0e2214ac49913ce7618

commit 90a43e508e7c4fb29080a0e2214ac49913ce7618
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Wed Feb 1 08:29:06 2017 +0100

    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 at nbd.name>
    (cherry picked from commit f204e0fc4619c7c64d0d99b87b0ddd802338d78a)
---
 toolchain/gcc/common.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk
index fce8a51..c6e01b5 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



More information about the lede-commits mailing list