From patchwork Fri Dec 7 13:20:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Hoffmann X-Patchwork-Id: 204481 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 30E732C0106 for ; Sat, 8 Dec 2012 00:20:23 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E8D82A028B; Fri, 7 Dec 2012 13:20:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g8thmbgbautG; Fri, 7 Dec 2012 13:20:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 0909EA0119; Fri, 7 Dec 2012 13:20:19 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 85FED8F753 for ; Fri, 7 Dec 2012 13:20:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4EA368B30F for ; Fri, 7 Dec 2012 13:20:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GyDuE9uYsU0l for ; Fri, 7 Dec 2012 13:20:17 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by whitealder.osuosl.org (Postfix) with ESMTPS id C2CAE8B316 for ; Fri, 7 Dec 2012 13:20:16 +0000 (UTC) Received: from stephan-desktop (p54BBC7C5.dip.t-dialin.net [84.187.199.197]) by mrelayeu.kundenserver.de (node=mrbap3) with ESMTP (Nemesis) id 0M8QKY-1Suvnw1V1W-00vT5P; Fri, 07 Dec 2012 14:20:14 +0100 Received: by stephan-desktop (Postfix, from userid 1000) id CB773500BF1; Fri, 7 Dec 2012 14:20:13 +0100 (CET) From: Stephan Hoffmann To: buildroot@busybox.net Date: Fri, 7 Dec 2012 14:20:13 +0100 Message-Id: <1354886413-28939-1-git-send-email-sho@relinux.de> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <20120827210633.608e9bfe@skate> References: <20120827210633.608e9bfe@skate> X-Provags-ID: V02:K0:GxA9zKimyy59g2/qUh+8Vd0roN+bvguAgn2lLlNJ1uv MHD3pwBZsgOKRXwaCcxo8xTgyUzztlP7SxrRCxpOl2dqexrHqM d1HPg/HbfhqbbcDtGP6wjEjxQZIS4NMdQWOcAG2rcDCmBlEvou /xDNBpKvOflzVwrAhifQ2tJqZu+AAr4YCH9ELSl+Lvr+6naPTo +oPNDzb3wNt+X4ZzOKHu3kETCTdPpHpnUz+CsNpqXT7BXxJBxR zW8ye4dt+7x0l31YqMfzwkWHO+XabDa8AfDADCe/rOajlwCxvy M0QjTL1trM23QmWD73evdr1vMQhwb1fA1xSG5fm1rclswrItLF 7rqmT3EYPtd92AtCx1SBU1tNfuJdhFpN+xd99UgEQEnJIEb/8S yQEJ+g1z16HzQ== Subject: [Buildroot] [PATCH] Clean kernel when "make linux-clean" is called X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net 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 --- 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