From patchwork Thu Jan 5 10:29:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 9498845 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7B33F6070F for ; Thu, 5 Jan 2017 10:32:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42A6927F89 for ; Thu, 5 Jan 2017 10:32:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 36B8D280FC; Thu, 5 Jan 2017 10:32:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E8F227F95 for ; Thu, 5 Jan 2017 10:32:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033580AbdAEKab (ORCPT ); Thu, 5 Jan 2017 05:30:31 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:36327 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033574AbdAEKaC (ORCPT ); Thu, 5 Jan 2017 05:30:02 -0500 Received: by mail-pf0-f194.google.com with SMTP id b22so1964802pfd.3 for ; Thu, 05 Jan 2017 02:30:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=OTyLbaFiznocNrKWg8MZg8dSCS+5Wk39IjPakvEB/lI=; b=tZ2qrCv/lvbrKntydajhbewRlgn3mjAB80LH0UXO2PhIGaK5l6hsqELpy0Qg6Izv/B 3AkkB3wEzmIquRYnHrgSLhDMdW3DPumSmigpx+14vjqkJHZ8hIz27SMJUkRouKdI3NjM TfegWheoCF1G8Aqgyt3OOLrv86rmrkF6/32ACeXpntpesb77CFv81ekmSFjWHGJreKJu C6fTwQd4p4+BdfqJxhwSw+CqMqHpwza6AkAWGW3WszpOyZdpHrbFC1NCQm5MIPmN/j3q 1RNvsd6350ARUO0HC/3t2RehMR2mqqQPlOvvdU5mpwd4lWio/sRtKVzU6U43Jjy9I0qs Ksng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=OTyLbaFiznocNrKWg8MZg8dSCS+5Wk39IjPakvEB/lI=; b=FzvKnPN+83vQ2pQb1TDFY/V5kefb9NAtZ7MpRj6/q+pbqxAN9/Sf1r6FYFe1yjWzB9 7d/AsBd6FHINDHQwlakh2XLJyRoa6P+orJfxLeJvIB+MHP2fbWjuE+SL2S8nJaFYI5mD fQeGmhDc8XbghJdUAIgB/rUrg4d3AFdYk3JljA/FCu8bYbDrTj+kslV3ZpVWxoT+uZi6 YArqPZLwTLPPU40Ik6xijCho5i/kbauDUde4gcmzPEZWbrGfd+vF64ZaD5rkxpboCx91 mcf1UQnwvib5932kiwdH5xFFf3Mlc/1NqcqbKRMJr0oVx4+DTaKg/j3DPCTL5LuP6FpD 36/A== X-Gm-Message-State: AIkVDXJ6wa54HKwiUX1w03WSaOexu1Yz+S7HIxu/UnfcY754akpJpPR5T2aNxlFRy302Zg== X-Received: by 10.84.210.35 with SMTP id z32mr143476178plh.112.1483612201572; Thu, 05 Jan 2017 02:30:01 -0800 (PST) Received: from roar.au.ibm.com ([203.221.7.176]) by smtp.gmail.com with ESMTPSA id b71sm152654349pfj.62.2017.01.05.02.29.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jan 2017 02:30:01 -0800 (PST) From: Nicholas Piggin To: Michal Marek Cc: Nicholas Piggin , linux-kbuild@vger.kernel.org, Andrew Morton , Florian Fainelli , torvalds@linux-foundation.org, pebolle@tiscali.nl, ppandit@redhat.com Subject: [PATCH 1/2] kbuild: initramfs fix dependency checking for compressed target Date: Thu, 5 Jan 2017 20:29:35 +1000 Message-Id: <20170105102936.5673-1-npiggin@gmail.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When using initramfs compression, the data file compression suffix gets quotes pulled in from Kconfig, e.g., initramfs_data.cpio".gz" which make does not match a target and causes rebuild. Fix this by filtering out quotes from the Kconfig string. Fixes: 35e669e1a254 ("initramfs: select builtin initram compression algorithm on KConfig instead of Makefile") Reviewed-by: Francisco Blas Izquierdo Riera (klondike) Signed-off-by: Nicholas Piggin Reviewed-by: Florian Fainelli --- usr/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/Makefile b/usr/Makefile index 17a513268325..746c3fd0b933 100644 --- a/usr/Makefile +++ b/usr/Makefile @@ -5,7 +5,7 @@ klibcdirs:; PHONY += klibcdirs -suffix_y = $(CONFIG_INITRAMFS_COMPRESSION) +suffix_y = $(subst $\",,$(CONFIG_INITRAMFS_COMPRESSION)) AFLAGS_initramfs_data.o += -DINITRAMFS_IMAGE="usr/initramfs_data.cpio$(suffix_y)" # Generate builtin.o based on initramfs_data.o