From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752835AbdEHVfr (ORCPT ); Mon, 8 May 2017 17:35:47 -0400 Received: from mail-io0-f193.google.com ([209.85.223.193]:36806 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751204AbdEHVfq (ORCPT ); Mon, 8 May 2017 17:35:46 -0400 MIME-Version: 1.0 In-Reply-To: References: <20170508085016.32601-1-horia.geanta@nxp.com> <8737cf8ssj.fsf@concordia.ellerman.id.au> From: Justin Forbes Date: Mon, 8 May 2017 16:35:45 -0500 Message-ID: Subject: Re: [PATCH] powerpc: fix distclean with Makefile.postlink To: =?UTF-8?Q?Horia_Geant=C4=83?= Cc: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Nicholas Piggin , Mircea Pop , "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v48LZvwN009490 On Mon, May 8, 2017 at 8:50 AM, Horia Geantă wrote: > On 5/8/2017 2:57 PM, Michael Ellerman wrote: >> Horia Geantă writes: >> >>> Makefile.postlink always includes include/config/auto.conf, however >>> this file is not present in a clean kernel tree, causing make to fail: >>> >>> arch/powerpc/Makefile.postlink:10: include/config/auto.conf: No such file or directory >>> make[1]: *** No rule to make target `include/config/auto.conf'. Stop. >>> make: *** [vmlinuxclean] Error 2 >>> >>> Change the inclusion such that file not being found does not trigger >>> an error. >>> >>> Fixes: f188d0524d7e ("powerpc: Use the new post-link pass to check relocations") >> >> I can't reproduce this. What exact steps are you doing? And what version >> of Make? >> > Start with a clean kernel tree and then > make distclean > arch/powerpc/Makefile.postlink:10: include/config/auto.conf: No such > file or directory > make[1]: *** No rule to make target `include/config/auto.conf'. Stop. > make: *** [vmlinuxclean] Error 2 > > make --version > GNU Make 3.82 > Built for x86_64-redhat-linux-gnu > Copyright (C) 2010 Free Software Foundation, Inc. > [...] > > The fix is basically the same as: > 6e5b95cdbd0e MIPS: Fix distclean with Makefile.postlink > Noticed it on the Fedora builds as well today. This patch fixes it. Tested-by: Justin M. Forbes