Re: [PATCH] powerpc: fix distclean with Makefile.postlink
From: Horia Geantă <horia.geanta@nxp.com>
Date: 2017-05-08 13:50:48
Also in:
lkml
On 5/8/2017 2:57 PM, Michael Ellerman wrote:=0A=
Horia Geant=E3 [off-list ref] writes:=0A= =0A=quoted
Makefile.postlink always includes include/config/auto.conf, however=0A= this file is not present in a clean kernel tree, causing make to fail:=
=0A=
quoted
=0A= arch/powerpc/Makefile.postlink:10: include/config/auto.conf: No such fil=
e or directory=0A=
quoted
make[1]: *** No rule to make target `include/config/auto.conf'. Stop.=
=0A=
quoted
make: *** [vmlinuxclean] Error 2=0A= =0A= Change the inclusion such that file not being found does not trigger=0A= an error.=0A= =0A= Fixes: f188d0524d7e ("powerpc: Use the new post-link pass to check reloc=
ations")=0A=
=0A= I can't reproduce this. What exact steps are you doing? And what version=
=0A=
of Make?=0A= =0A=
Start with a clean kernel tree and then=0A= make distclean=0A= arch/powerpc/Makefile.postlink:10: include/config/auto.conf: No such=0A= file or directory=0A= make[1]: *** No rule to make target `include/config/auto.conf'. Stop.=0A= make: *** [vmlinuxclean] Error 2=0A= =0A= make --version=0A= GNU Make 3.82=0A= Built for x86_64-redhat-linux-gnu=0A= Copyright (C) 2010 Free Software Foundation, Inc.=0A= [...]=0A= =0A= The fix is basically the same as:=0A= 6e5b95cdbd0e MIPS: Fix distclean with Makefile.postlink=0A= =0A= Regards,=0A= Horia=0A= =0A=