Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] Clean kernel when "make linux-clean" is called
@ 2012-08-27 14:20 Stephan Hoffmann
  2012-08-27 19:06 ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Stephan Hoffmann @ 2012-08-27 14:20 UTC (permalink / raw)
  To: buildroot

When "make linux-clean" is typed one expects that the kernel tree
gets cleaned. Before this patch, only the stamp files had been
removed.

Signed-off-by: Stephan Hoffmann <sho@relinux.de>
---
 linux/linux.mk |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/linux/linux.mk b/linux/linux.mk
index c4bdf90..e9a5da9 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -268,6 +268,8 @@ linux-menuconfig linux-xconfig linux-gconfig linux-nconfig linux26-menuconfig li
 linux-savedefconfig linux26-savedefconfig: dirs linux-configure
 	$(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) \
 		$(subst linux-,,$(subst linux26-,,$@))
+linux-clean:
+	$(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) clean
 
 ifeq ($(BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG),y)
 linux-update-config linux26-update-config: linux-configure $(LINUX_DIR)/.config
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] Clean kernel when "make linux-clean" is called
@ 2012-08-28  8:17 Stephan Hoffmann
  0 siblings, 0 replies; 5+ messages in thread
From: Stephan Hoffmann @ 2012-08-28  8:17 UTC (permalink / raw)
  To: buildroot

When "make linux-clean" is typed one expects that the kernel tree
gets cleaned. Before this patch, only the stamp files had been
removed.

Signed-off-by: Stephan Hoffmann <sho@relinux.de>
---
 linux/linux.mk |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/linux/linux.mk b/linux/linux.mk
index c4bdf90..ae07256 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -255,6 +255,10 @@ define LINUX_INSTALL_TARGET_CMDS
 	$(LINUX_INSTALL_HOST_TOOLS)
 endef
 
+define LINUX_CLEAN_CMDS
+	$(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) clean
+endef
+
 include linux/linux-ext-*.mk
 
 $(eval $(generic-package))
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-01-31 16:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-27 14:20 [Buildroot] [PATCH] Clean kernel when "make linux-clean" is called Stephan Hoffmann
2012-08-27 19:06 ` Thomas Petazzoni
2012-12-07 13:20   ` Stephan Hoffmann
2013-01-31 16:41     ` Stephan Hoffmann
  -- strict thread matches above, loose matches on Subject: below --
2012-08-28  8:17 Stephan Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox