From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751367AbaJSHTG (ORCPT ); Sun, 19 Oct 2014 03:19:06 -0400 Received: from h1446028.stratoserver.net ([85.214.92.142]:42092 "EHLO mail.ahsoftware.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750782AbaJSHTE (ORCPT ); Sun, 19 Oct 2014 03:19:04 -0400 From: Alexander Holler To: linux-kernel@vger.kernel.org Cc: Andrew Morton , Michal Marek , Alexander Holler , Subject: [PATCH 1/2 v4] initramfs: don't include filenames from the initramfs for make goals (dist)clean Date: Sun, 19 Oct 2014 09:18:42 +0200 Message-Id: <1413703123-2991-1-git-send-email-holler@ahsoftware.de> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <533AFCC3.3030504@ahsoftware.de> References: <533AFCC3.3030504@ahsoftware.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Various unusual filenames might break the make process when they are included as dependencies (e.g. filenames with a colon). This has the disadvantage that not even a make (dist)clean does work afterwards. What makes the matter worse is that git clean -df doesn't remove such a possible broken dependency list too. Avoid that by not including this dependency list for make goals (dist)clean. Signed-off-by: Alexander Holler Cc: --- Changes to v3: none usr/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr/Makefile b/usr/Makefile index e767f01..5d5b6aa 100644 --- a/usr/Makefile +++ b/usr/Makefile @@ -49,9 +49,11 @@ ramfs-args := \ # in initramfs and to detect if any files are added/removed. # Removed files are identified by directory timestamp being updated # The dependency list is generated by gen_initramfs.sh -l +ifndef clean ifneq ($(wildcard $(obj)/.initramfs_data.cpio.d),) include $(obj)/.initramfs_data.cpio.d endif +endif quiet_cmd_initfs = GEN $@ cmd_initfs = $(initramfs) -o $@ $(ramfs-args) $(ramfs-input) -- 1.8.3.1