summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-05-18 12:45:26 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-05-18 12:54:11 +0200
commitb7581c357a5bf089f0226ddefc20d3a32144ce7d (patch)
tree65cb354976e01a84a907497eeffa9ea6866a5959 /mk
parent3da74872f0fcb6c10a93f6a0dbe2c26e93bc9b52 (diff)
downloadembtoolkit-b7581c357a5bf089f0226ddefc20d3a32144ce7d.tar.gz
embtoolkit-b7581c357a5bf089f0226ddefc20d3a32144ce7d.tar.bz2
embtoolkit-b7581c357a5bf089f0226ddefc20d3a32144ce7d.tar.xz
Build system: create macro to delete kconfig generated files
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk')
-rw-r--r--mk/buildsystem.mk24
1 files changed, 22 insertions, 2 deletions
diff --git a/mk/buildsystem.mk b/mk/buildsystem.mk
index 8c83105..80a8d51 100644
--- a/mk/buildsystem.mk
+++ b/mk/buildsystem.mk
@@ -66,8 +66,7 @@ basic:
$(Q)$(MAKE) -f scripts/Makefile.build obj=scripts/basic
clean: toolchain_clean rmallpath
- $(Q)$(MAKE) -f scripts/Makefile.clean obj=scripts/kconfig
- $(Q)$(MAKE) -f scripts/Makefile.clean obj=scripts/basic
+ $(Q)$(__embtk_kconfig_clean)
$(Q)rm -rf .config kbuild.log .fakeroot*
distclean: clean
@@ -148,6 +147,27 @@ define __embtk_mk_inithosttoolsdirs
mkdir -p $(HOSTTOOLS)/usr/local
endef
+define __embtk_kconfig_clean
+ $(MAKE) -f scripts/Makefile.clean obj=scripts/kconfig
+ $(MAKE) -f scripts/Makefile.clean obj=scripts/basic
+ rm -rf $$(find $(EMBTK_ROOT)/scripts/kconfig -type f -name 'config*')
+ rm -rf $$(find $(EMBTK_ROOT)/scripts/kconfig -type f -name 'lex.*.c')
+ rm -rf $$(find $(EMBTK_ROOT)/scripts/kconfig -type f -name 'zconf.lex.c')
+ rm -rf $$(find $(EMBTK_ROOT)/scripts/kconfig -type f -name '*.tab.c')
+ rm -rf $$(find $(EMBTK_ROOT)/scripts/kconfig -type f -name '*.tab.h')
+ rm -rf $$(find $(EMBTK_ROOT)/scripts/kconfig -type f -name 'zconf.hash.c')
+ rm -rf $$(find $(EMBTK_ROOT)/scripts/kconfig -type f -name '*.moc')
+ rm -rf $$(find $(EMBTK_ROOT)/scripts/kconfig -type f -name 'lkc_defs.h')
+ rm -rf $$(find $(EMBTK_ROOT)/scripts/kconfig -type f -name '*.cmd')
+ rm -rf $$(find $(EMBTK_ROOT)/scripts/kconfig -type f -name '*.o')
+ rm -rf $$(find $(EMBTK_ROOT)/scripts/kconfig -type f -name '*.tmp_qtcheck')
+ rm -rf $$(find $(EMBTK_ROOT)/scripts/kconfig -type f -name 'conf')
+ rm -rf $$(find $(EMBTK_ROOT)/scripts/kconfig -type f -name 'mconf')
+ rm -rf $$(find $(EMBTK_ROOT)/scripts/kconfig -type f -name 'qconf')
+ rm -rf $$(find $(EMBTK_ROOT)/scripts/kconfig -type f -name 'gconf')
+ rm -rf $$(find $(EMBTK_ROOT)/scripts/kconfig -type f -name 'kxgettext')
+endef
+
rmallpath:
$(Q)rm -rf $(PACKAGES_BUILD)* $(ROOTFS)* $(TOOLS)* $(TOOLS_BUILD)*
$(Q)rm -rf $(SYSROOT)* $(HOSTTOOLS)* $(EMBTK_GENERATED)/rootfs-*