linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] MIPS: Fix distclean with Makefile.postlink
@ 2017-01-30  9:58 Matt Redfearn
  2017-01-30  9:58 ` Matt Redfearn
  2017-02-11 21:27 ` James Hogan
  0 siblings, 2 replies; 4+ messages in thread
From: Matt Redfearn @ 2017-01-30  9:58 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips, Matt Redfearn, linux-kernel

The postlink Makefile must include include/config/auto.conf to get the
kernel configuration variables. But in a clean kernel directory this
file does not exist, causing make to bail with the error:

arch/mips/Makefile.postlink:10:
include/config/auto.conf: No such file or directory
make[1]: *** No rule to make target
'include/config/auto.conf'.  Stop.
Makefile:1290: recipe for target 'vmlinuxclean' failed

Fix this by using "-include" to not cause a Make error when the file
does not exist.

Fixes: 44079d3509ae ("MIPS: Use Makefile.postlink to insert relocations into vmlinux")
Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
---

 arch/mips/Makefile.postlink | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/Makefile.postlink b/arch/mips/Makefile.postlink
index b0ddf0701a31..4b7f5a648c79 100644
--- a/arch/mips/Makefile.postlink
+++ b/arch/mips/Makefile.postlink
@@ -7,7 +7,7 @@
 PHONY := __archpost
 __archpost:
 
-include include/config/auto.conf
+-include include/config/auto.conf
 include scripts/Kbuild.include
 
 CMD_RELOCS = arch/mips/boot/tools/relocs
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] MIPS: Fix distclean with Makefile.postlink
  2017-01-30  9:58 [PATCH] MIPS: Fix distclean with Makefile.postlink Matt Redfearn
@ 2017-01-30  9:58 ` Matt Redfearn
  2017-02-11 21:27 ` James Hogan
  1 sibling, 0 replies; 4+ messages in thread
From: Matt Redfearn @ 2017-01-30  9:58 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips, Matt Redfearn, linux-kernel

The postlink Makefile must include include/config/auto.conf to get the
kernel configuration variables. But in a clean kernel directory this
file does not exist, causing make to bail with the error:

arch/mips/Makefile.postlink:10:
include/config/auto.conf: No such file or directory
make[1]: *** No rule to make target
'include/config/auto.conf'.  Stop.
Makefile:1290: recipe for target 'vmlinuxclean' failed

Fix this by using "-include" to not cause a Make error when the file
does not exist.

Fixes: 44079d3509ae ("MIPS: Use Makefile.postlink to insert relocations into vmlinux")
Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
---

 arch/mips/Makefile.postlink | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/Makefile.postlink b/arch/mips/Makefile.postlink
index b0ddf0701a31..4b7f5a648c79 100644
--- a/arch/mips/Makefile.postlink
+++ b/arch/mips/Makefile.postlink
@@ -7,7 +7,7 @@
 PHONY := __archpost
 __archpost:
 
-include include/config/auto.conf
+-include include/config/auto.conf
 include scripts/Kbuild.include
 
 CMD_RELOCS = arch/mips/boot/tools/relocs
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] MIPS: Fix distclean with Makefile.postlink
  2017-01-30  9:58 [PATCH] MIPS: Fix distclean with Makefile.postlink Matt Redfearn
  2017-01-30  9:58 ` Matt Redfearn
@ 2017-02-11 21:27 ` James Hogan
  2017-02-11 21:27   ` James Hogan
  1 sibling, 1 reply; 4+ messages in thread
From: James Hogan @ 2017-02-11 21:27 UTC (permalink / raw)
  To: Matt Redfearn; +Cc: Ralf Baechle, linux-mips, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1321 bytes --]

On Mon, Jan 30, 2017 at 09:58:34AM +0000, Matt Redfearn wrote:
> The postlink Makefile must include include/config/auto.conf to get the
> kernel configuration variables. But in a clean kernel directory this
> file does not exist, causing make to bail with the error:
> 
> arch/mips/Makefile.postlink:10:
> include/config/auto.conf: No such file or directory
> make[1]: *** No rule to make target
> 'include/config/auto.conf'.  Stop.
> Makefile:1290: recipe for target 'vmlinuxclean' failed
> 
> Fix this by using "-include" to not cause a Make error when the file
> does not exist.
> 
> Fixes: 44079d3509ae ("MIPS: Use Makefile.postlink to insert relocations into vmlinux")
> Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>

Applied

Thanks
James

> ---
> 
>  arch/mips/Makefile.postlink | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/mips/Makefile.postlink b/arch/mips/Makefile.postlink
> index b0ddf0701a31..4b7f5a648c79 100644
> --- a/arch/mips/Makefile.postlink
> +++ b/arch/mips/Makefile.postlink
> @@ -7,7 +7,7 @@
>  PHONY := __archpost
>  __archpost:
>  
> -include include/config/auto.conf
> +-include include/config/auto.conf
>  include scripts/Kbuild.include
>  
>  CMD_RELOCS = arch/mips/boot/tools/relocs
> -- 
> 2.7.4
> 
> 

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] MIPS: Fix distclean with Makefile.postlink
  2017-02-11 21:27 ` James Hogan
@ 2017-02-11 21:27   ` James Hogan
  0 siblings, 0 replies; 4+ messages in thread
From: James Hogan @ 2017-02-11 21:27 UTC (permalink / raw)
  To: Matt Redfearn; +Cc: Ralf Baechle, linux-mips, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1321 bytes --]

On Mon, Jan 30, 2017 at 09:58:34AM +0000, Matt Redfearn wrote:
> The postlink Makefile must include include/config/auto.conf to get the
> kernel configuration variables. But in a clean kernel directory this
> file does not exist, causing make to bail with the error:
> 
> arch/mips/Makefile.postlink:10:
> include/config/auto.conf: No such file or directory
> make[1]: *** No rule to make target
> 'include/config/auto.conf'.  Stop.
> Makefile:1290: recipe for target 'vmlinuxclean' failed
> 
> Fix this by using "-include" to not cause a Make error when the file
> does not exist.
> 
> Fixes: 44079d3509ae ("MIPS: Use Makefile.postlink to insert relocations into vmlinux")
> Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>

Applied

Thanks
James

> ---
> 
>  arch/mips/Makefile.postlink | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/mips/Makefile.postlink b/arch/mips/Makefile.postlink
> index b0ddf0701a31..4b7f5a648c79 100644
> --- a/arch/mips/Makefile.postlink
> +++ b/arch/mips/Makefile.postlink
> @@ -7,7 +7,7 @@
>  PHONY := __archpost
>  __archpost:
>  
> -include include/config/auto.conf
> +-include include/config/auto.conf
>  include scripts/Kbuild.include
>  
>  CMD_RELOCS = arch/mips/boot/tools/relocs
> -- 
> 2.7.4
> 
> 

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-11 21:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-30  9:58 [PATCH] MIPS: Fix distclean with Makefile.postlink Matt Redfearn
2017-01-30  9:58 ` Matt Redfearn
2017-02-11 21:27 ` James Hogan
2017-02-11 21:27   ` James Hogan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).