From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760328AbdADNjM (ORCPT ); Wed, 4 Jan 2017 08:39:12 -0500 Received: from mail-wj0-f196.google.com ([209.85.210.196]:33220 "EHLO mail-wj0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936283AbdADNfP (ORCPT ); Wed, 4 Jan 2017 08:35:15 -0500 Subject: Re: [PATCH] initramfs: Fix spurious rebuilds To: Florian Fainelli , linux-kernel@vger.kernel.org References: <20170104013732.26401-1-f.fainelli@gmail.com> Cc: torvalds@linux-foundation.org, pebolle@tiscali.nl, ppandit@redhat.com, mmarek@suse.cz, Andrew Morton , npiggin@gmail.com From: klondike Message-ID: Date: Wed, 4 Jan 2017 14:34:16 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20170104013732.26401-1-f.fainelli@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0HxQ2b8O6snoWvb9EOnhmW6Hm82AqehKQ" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --0HxQ2b8O6snoWvb9EOnhmW6Hm82AqehKQ Content-Type: multipart/mixed; boundary="Pmp4EHtjawK6gN6ivwjbR8CtKIup0IJmT" From: klondike To: Florian Fainelli , linux-kernel@vger.kernel.org Cc: torvalds@linux-foundation.org, pebolle@tiscali.nl, ppandit@redhat.com, mmarek@suse.cz, Andrew Morton , npiggin@gmail.com Message-ID: Subject: Re: [PATCH] initramfs: Fix spurious rebuilds References: <20170104013732.26401-1-f.fainelli@gmail.com> In-Reply-To: <20170104013732.26401-1-f.fainelli@gmail.com> --Pmp4EHtjawK6gN6ivwjbR8CtKIup0IJmT Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable El 04/01/17 a las 02:37, Florian Fainelli escribi=F3: > Commit 35e669e1a254 ("initramfs: select builtin initram > compression algorithm on KConfig instead of Makefile") makes suffix_y b= e > a quote variable, which can be illustrated looking at the build output:= > > GEN usr/initramfs_data.cpio".gz" > > Make sure that we do strip off double quotes from > CONFIG_INITRAMFS_COMPRESSION, since the Makefile tracks targets with > unquoted suffixes. > > Fixes: 35e669e1a254 ("initramfs: select builtin initram compression alg= orithm on KConfig instead of Makefile") > Signed-off-by: Florian Fainelli > --- > This is against v4.10-rc2, thanks! > > usr/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/usr/Makefile b/usr/Makefile > index 17a513268325..a9ae8b493e2b 100644 > --- a/usr/Makefile > +++ b/usr/Makefile > @@ -5,7 +5,7 @@ > klibcdirs:; > PHONY +=3D klibcdirs > =20 > -suffix_y =3D $(CONFIG_INITRAMFS_COMPRESSION) > +suffix_y =3D $(subst ",,$(CONFIG_INITRAMFS_COMPRESSION)) > AFLAGS_initramfs_data.o +=3D -DINITRAMFS_IMAGE=3D"usr/initramfs_data.c= pio$(suffix_y)" > =20 > # Generate builtin.o based on initramfs_data.o Hello, Thanks for the fix, when I tested the patch I checked that the correct file was created and embedded but didn't check for spurious rebuilds. I'm CCing Nicholas Piggin as he sent another (larger version) of the patch which also addresses a few other hacks in the Makefile, see "[PATCH] kbuild: Fix dependency checking for initramfs build". I haven't had time to check that second patch. I have run the tests I ran for my own patches and they all passed, so=20 feel free to add Reviewed-by and Tested-by if you want :) Sincerely, Francisco Blas Izquierdo Riera (klondike) --Pmp4EHtjawK6gN6ivwjbR8CtKIup0IJmT-- --0HxQ2b8O6snoWvb9EOnhmW6Hm82AqehKQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJYbPneAAoJEPS90u/o/3j5OdsQANB8T5+REclOd3lmfSuEHpIr 0qjVUvw2wjysGiI1I7FqIO8ONr6pCPRvyLB5fq5qVMoer/Q17WaDuOZGx3WvMmUg eEITXUMfAHYkoxfSe21mY7jFeKp7rbPsj0Ltm3sg/91Of03v131ZTIrMT6yIAtZb JSHd0zHykTpdE/nskp9Lj1HiDUNJ6s24+ONY2bh/99eySb70KvOaJfvBY3KLCOQA jhyZiDhT+OdBDVuFvv6Bd1pHmr4HW5ebpzcETyEH0NCf/x9gPN3txPDG5XxszN+U DHhy99Rg6C/zjJyf1KILD+rUjXFlCJCO/8YwoGfUwH/5SairpltF4wzI33VUdRWd QOrpuInQ+pxSwEK39syF2lz79Iqd+sFjB0UB2UMWdsHBPMyM3nS2Lyiq0gT5mfkR YUmq8vIcgnigOBfO32Z978KL1PUhJ+O9toCP6g2sSAKLLqVEBKClhXes2V16f52m qvfRo1L7c80uWslosc5sDwfJOyT6frQ7o3+DOMxlXl7TuiCA7jYQoVOf9T6VxlZP YOCqPHk5L6saUfNf1Wm5FD53S9Ekbo4eJJlg/JAoQIv0hIsT34KfCU7VoitlK0UD QNcVTdr7HN6Name0fG/ILD6wHaMt10kYIsvNd4hFylDUQM50vrDXD6Z33ya0Lc9O gWx8TkUH+yqqJF4yXoWn =pP3Q -----END PGP SIGNATURE----- --0HxQ2b8O6snoWvb9EOnhmW6Hm82AqehKQ--