diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2015-10-24 14:48:55 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-11-03 22:22:51 +0100 |
commit | e3b46be7f41d7d336636560b6b85fedfbc68cd89 (patch) | |
tree | 7ae9e2867292386498151b7c9c5d7c53fef4818d | |
parent | dbdc241d6a476855f6548ba282dfd18382245745 (diff) | |
download | buildroot-e3b46be7f41d7d336636560b6b85fedfbc68cd89.tar.gz buildroot-e3b46be7f41d7d336636560b6b85fedfbc68cd89.zip |
package/gcc: use generic extract commands
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Reviewed-by: Romain Naour <romain.naour@openwide.fr>
Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Tested-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/gcc/gcc-final/gcc-final.mk | 3 | ||||
-rw-r--r-- | package/gcc/gcc-initial/gcc-initial.mk | 3 | ||||
-rw-r--r-- | package/gcc/gcc.mk | 15 |
3 files changed, 8 insertions, 13 deletions
diff --git a/package/gcc/gcc-final/gcc-final.mk b/package/gcc/gcc-final/gcc-final.mk index 5a0f5b5b8e..8ac296877b 100644 --- a/package/gcc/gcc-final/gcc-final.mk +++ b/package/gcc/gcc-final/gcc-final.mk @@ -12,7 +12,8 @@ HOST_GCC_FINAL_DEPENDENCIES = \ $(HOST_GCC_COMMON_DEPENDENCIES) \ $(BR_LIBC) -HOST_GCC_FINAL_EXTRACT_CMDS = $(HOST_GCC_EXTRACT_CMDS) +HOST_GCC_FINAL_TAR_EXCLUDES = $(HOST_GCC_TAR_EXCLUDES) +HOST_GCC_FINAL_POST_EXTRACT_HOOKS += HOST_GCC_FAKE_TESTSUITE ifneq ($(call qstrip, $(BR2_XTENSA_CORE_NAME)),) HOST_GCC_FINAL_POST_EXTRACT_HOOKS += HOST_GCC_XTENSA_OVERLAY_EXTRACT diff --git a/package/gcc/gcc-initial/gcc-initial.mk b/package/gcc/gcc-initial/gcc-initial.mk index c0b5eaff5e..3ab47b9da0 100644 --- a/package/gcc/gcc-initial/gcc-initial.mk +++ b/package/gcc/gcc-initial/gcc-initial.mk @@ -10,7 +10,8 @@ GCC_INITIAL_SOURCE = $(GCC_SOURCE) HOST_GCC_INITIAL_DEPENDENCIES = $(HOST_GCC_COMMON_DEPENDENCIES) -HOST_GCC_INITIAL_EXTRACT_CMDS = $(HOST_GCC_EXTRACT_CMDS) +HOST_GCC_INITIAL_TAR_EXCLUDES = $(HOST_GCC_TAR_EXCLUDES) +HOST_GCC_INITIAL_POST_EXTRACT_HOOKS += HOST_GCC_FAKE_TESTSUITE ifneq ($(call qstrip, $(BR2_XTENSA_CORE_NAME)),) HOST_GCC_INITIAL_POST_EXTRACT_HOOKS += HOST_GCC_XTENSA_OVERLAY_EXTRACT diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk index d6213ccf80..28eb75e0a8 100644 --- a/package/gcc/gcc.mk +++ b/package/gcc/gcc.mk @@ -48,18 +48,11 @@ define HOST_GCC_APPLY_PATCHES $(HOST_GCC_APPLY_POWERPC_PATCH) endef -# -# Custom extract command to save disk space -# +HOST_GCC_TAR_EXCLUDES = \ + libjava/* libgo/* \ + gcc/testsuite/* libstdc++-v3/testsuite/* -define HOST_GCC_EXTRACT_CMDS - $(call suitable-extractor,$(GCC_SOURCE)) $(DL_DIR)/$(GCC_SOURCE) | \ - $(TAR) --strip-components=1 -C $(@D) \ - --exclude='libjava/*' \ - --exclude='libgo/*' \ - --exclude='gcc/testsuite/*' \ - --exclude='libstdc++-v3/testsuite/*' \ - $(TAR_OPTIONS) - +define HOST_GCC_FAKE_TESTSUITE mkdir -p $(@D)/libstdc++-v3/testsuite/ echo "all:" > $(@D)/libstdc++-v3/testsuite/Makefile.in echo "install:" >> $(@D)/libstdc++-v3/testsuite/Makefile.in |