From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753991AbdEHNus (ORCPT ); Mon, 8 May 2017 09:50:48 -0400 Received: from mail-ve1eur01on0064.outbound.protection.outlook.com ([104.47.1.64]:60640 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750925AbdEHNur (ORCPT ); Mon, 8 May 2017 09:50:47 -0400 From: =?iso-8859-2?Q?Horia_Geant=E3?= To: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras CC: Nicholas Piggin , Mircea Pop , "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] powerpc: fix distclean with Makefile.postlink Thread-Topic: [PATCH] powerpc: fix distclean with Makefile.postlink Thread-Index: AQHSx9hIcLpkUyWC4k2NYKrHuQKBtA== Date: Mon, 8 May 2017 13:50:42 +0000 Message-ID: References: <20170508085016.32601-1-horia.geanta@nxp.com> <8737cf8ssj.fsf@concordia.ellerman.id.au> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: ellerman.id.au; dkim=none (message not signed) header.d=none;ellerman.id.au; dmarc=none action=none header.from=nxp.com; x-originating-ip: [192.88.146.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM3PR04MB433;7:skijdld5xsfKnLJIE6lZthbZosshrw1Xak4IP/PZLpswwMhj3ay5ynSDJp4RTd4bigadyy2mqnjnY/1fzeEjY6dlAut6aqydSSL0kNpTkSETwlDYDceq02XtnsDQCTfq5Els0bO5nGtKBpdR8mHxv/Gkm74zSlGrHSXgWcAHOjmnWncFAj5gkWWqAxAMV/8bx5q8A87sGdMoxzJOn9jypMCo+RlGxAd/B1yrfvoSrsA4crE3qkC2XejZfY6uwXpHvD9tImI1sMs7wwG6uUGrXVuFVrzSCR5bIyEyzrCll5naEvO9Ken3rrhIzjmiaORU9ol202KJVfZQfa97/75sHA== x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10009020)(6009001)(39450400003)(39410400002)(39860400002)(39400400002)(39850400002)(39840400002)(377454003)(24454002)(575784001)(6246003)(86362001)(6436002)(102836003)(33656002)(3846002)(2900100001)(38730400002)(50986999)(3280700002)(3660700001)(76176999)(54356999)(6116002)(53546009)(6506006)(66066001)(229853002)(53936002)(25786009)(99286003)(9686003)(54906002)(4326008)(5660300001)(39060400002)(55016002)(2906002)(7696004)(5250100002)(189998001)(305945005)(7736002)(478600001)(8936002)(74316002)(81166006)(8676002)(2004002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM3PR04MB433;H:VI1PR0401MB2591.eurprd04.prod.outlook.com;FPR:;SPF:None;MLV:ovrnspm;PTR:InfoNoRecords;LANG:en; x-ms-office365-filtering-correlation-id: efd5c0f8-dc20-466f-d76d-08d49619384e x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081);SRVR:AM3PR04MB433; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123558100)(20161123562025)(6072148);SRVR:AM3PR04MB433;BCL:0;PCL:0;RULEID:;SRVR:AM3PR04MB433; x-forefront-prvs: 0301360BF5 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-2" MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 08 May 2017 13:50:42.6540 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR04MB433 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 v48DovxG022843 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 Regards, Horia