From 80df8b8b74ae3546ef39361f35845aec0e87cbdc Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Mon, 13 Jan 2014 00:38:15 +0100 Subject: Toolchain: gcc: wipe out builddir if requested Signed-off-by: Abdoulaye Walsimou Gaye --- mk/gcc.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mk') diff --git a/mk/gcc.mk b/mk/gcc.mk index 1488b75..33e9630 100644 --- a/mk/gcc.mk +++ b/mk/gcc.mk @@ -1,6 +1,6 @@ ################################################################################ # Embtoolkit -# Copyright(C) 2009-2013 Abdoulaye Walsimou GAYE. +# Copyright(C) 2009-2014 Abdoulaye Walsimou GAYE. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -198,6 +198,10 @@ CONFIG_EMBTK_GCC3_REFSPEC := $(CONFIG_EMBTK_GCC_REFSPEC) define embtk_postinstallonce_gcc3 $(__embtk_postinstall_gcc2_gcc3) + $(if $(CONFIG_EMBTK_WIPEOUTWORKSPACES), + $(embtk_cleanup_gcc1) + $(embtk_cleanup_gcc3) + $(embtk_cleanup_gcc3)) endef # -- cgit v1.2.3