* [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-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
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2012-08-27 19:06 UTC (permalink / raw)
To: buildroot
Le Mon, 27 Aug 2012 16:20:03 +0200,
Stephan Hoffmann <sho@relinux.de> a ?crit :
> +linux-clean:
> + $(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) clean
No, you should be implementing LINUX_CLEAN_CMDS instead of overriding
the linux-clean target, which is declared by the generic-package
infrastructure.
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] Clean kernel when "make linux-clean" is called
2012-08-27 19:06 ` Thomas Petazzoni
@ 2012-12-07 13:20 ` Stephan Hoffmann
2013-01-31 16:41 ` Stephan Hoffmann
0 siblings, 1 reply; 5+ messages in thread
From: Stephan Hoffmann @ 2012-12-07 13: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 | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/linux/linux.mk b/linux/linux.mk
index c4bdf90..e517d1d 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -221,6 +221,9 @@ define LINUX_BUILD_CMDS
$(LINUX_APPEND_DTB)
endef
+define LINUX_CLEAN_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) clean
+endef
ifeq ($(BR2_LINUX_KERNEL_INSTALL_TARGET),y)
define LINUX_INSTALL_KERNEL_IMAGE_TO_TARGET
--
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-12-07 13:20 ` Stephan Hoffmann
@ 2013-01-31 16:41 ` Stephan Hoffmann
0 siblings, 0 replies; 5+ messages in thread
From: Stephan Hoffmann @ 2013-01-31 16:41 UTC (permalink / raw)
To: buildroot
ping
Am 07.12.2012 14:20, schrieb Stephan Hoffmann:
> 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 | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/linux/linux.mk b/linux/linux.mk
> index c4bdf90..e517d1d 100644
> --- a/linux/linux.mk
> +++ b/linux/linux.mk
> @@ -221,6 +221,9 @@ define LINUX_BUILD_CMDS
> $(LINUX_APPEND_DTB)
> endef
>
> +define LINUX_CLEAN_CMDS
> + $(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) clean
> +endef
>
> ifeq ($(BR2_LINUX_KERNEL_INSTALL_TARGET),y)
> define LINUX_INSTALL_KERNEL_IMAGE_TO_TARGET
--
reLinux - Stephan Hoffmann
Am Schmidtgrund 124 50765 K?ln
Tel. +49.221.95595-19 Fax: -64
www.reLinux.de sho at reLinux.de
^ permalink raw reply [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