From patchwork Mon Feb 22 07:31:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 62472 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1073446lbl; Sun, 21 Feb 2016 23:32:36 -0800 (PST) X-Received: by 10.66.118.198 with SMTP id ko6mr36195435pab.11.1456126356716; Sun, 21 Feb 2016 23:32:36 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rd7si37909837pab.90.2016.02.21.23.32.36; Sun, 21 Feb 2016 23:32:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753631AbcBVHcK (ORCPT + 30 others); Mon, 22 Feb 2016 02:32:10 -0500 Received: from conuserg011.nifty.com ([202.248.44.37]:32687 "EHLO conuserg011-v.nifty.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753534AbcBVHcB (ORCPT ); Mon, 22 Feb 2016 02:32:01 -0500 Received: from beagle.diag.org (p14090-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.90]) (authenticated) by conuserg011-v.nifty.com with ESMTP id u1M7UdAp031731; Mon, 22 Feb 2016 16:30:44 +0900 X-Nifty-SrcIP: [153.142.97.90] From: Masahiro Yamada To: linux-arm-kernel@lists.infradead.org Cc: Russell King , Arnd Bergmann , Olof Johansson , Michal Marek , linux-kbuild@vger.kernel.org, Masahiro Yamada , Magnus Damm , Kees Cook , linux-kernel@vger.kernel.org, Roy Franz , Russell King , Geert Uytterhoeven , Simon Horman Subject: [PATCH 3/6] ARM: decompressor: use clean-files instead of extra-y to clean files Date: Mon, 22 Feb 2016 16:31:14 +0900 Message-Id: <1456126277-14633-4-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1456126277-14633-1-git-send-email-yamada.masahiro@socionext.com> References: <1456126277-14633-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This code works fine here, but it is tricky to use "extra-y" for specifying files to be removed during "make clean". Kbuild provides "clean-files" for this purpose. Signed-off-by: Masahiro Yamada --- arch/arm/boot/compressed/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 1.9.1 diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index 476ef00..f9e8e68 100644 --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile @@ -94,8 +94,7 @@ targets := vmlinux vmlinux.lds \ lib1funcs.o ashldi3.o bswapsdi2.o \ head.o $(OBJS) -# Make sure files are removed during clean -extra-y += piggy.gzip piggy.lzo piggy.lzma piggy.xzkern piggy.lz4 \ +clean-files += piggy.gzip piggy.lzo piggy.lzma piggy.xzkern piggy.lz4 \ lib1funcs.S ashldi3.S bswapsdi2.S $(libfdt) $(libfdt_hdrs) \ hyp-stub.S