linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Only build Documentation/ when not cross-compiling
@ 2014-10-08 23:31 Peter Foley
  2014-10-17 13:53 ` Peter Foley
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Foley @ 2014-10-08 23:31 UTC (permalink / raw)
  To: linux-kernel
  Cc: rdunlap, jkosina, luto, hpa, jwboyer, linux-doc, cebbert.lkml,
	torvalds, Peter Foley

Don't build Documentation targets when cross-compiling.
They are only for build testing, and use the host headers and compiler
which can cause cross-compiles to fail.

Signed-off-by: Peter Foley <pefoley2@pefoley.com>
---
 lib/Kconfig.debug | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index a285900..1beeb84 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1610,7 +1610,7 @@ config PROVIDE_OHCI1394_DMA_INIT
 
 config BUILD_DOCSRC
 	bool "Build targets in Documentation/ tree"
-	depends on HEADERS_CHECK
+	depends on HEADERS_CHECK && CROSS_COMPILE=""
 	help
 	  This option attempts to build objects from the source files in the
 	  kernel Documentation/ tree.
-- 
2.1.2


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

* Re: [PATCH] Only build Documentation/ when not cross-compiling
  2014-10-08 23:31 [PATCH] Only build Documentation/ when not cross-compiling Peter Foley
@ 2014-10-17 13:53 ` Peter Foley
  2014-10-21 22:06   ` Peter Foley
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Foley @ 2014-10-17 13:53 UTC (permalink / raw)
  To: LKML
  Cc: Randy Dunlap, Jiri Kosina, Andy Lutomirski, H. Peter Anvin,
	Josh Boyer, linux-doc, Chuck Ebbert, torvalds, Peter Foley

On Wed, Oct 8, 2014 at 7:31 PM, Peter Foley <pefoley2@pefoley.com> wrote:
> Don't build Documentation targets when cross-compiling.
> They are only for build testing, and use the host headers and compiler
> which can cause cross-compiles to fail.
>

Turns out this doesn't work if CROSS_COMPILE is set in the environment.
I'll send another version shortly.

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

* Re: [PATCH] Only build Documentation/ when not cross-compiling
  2014-10-17 13:53 ` Peter Foley
@ 2014-10-21 22:06   ` Peter Foley
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Foley @ 2014-10-21 22:06 UTC (permalink / raw)
  To: LKML
  Cc: Randy Dunlap, Jiri Kosina, Andy Lutomirski, H. Peter Anvin,
	Josh Boyer, linux-doc, Chuck Ebbert, torvalds, Peter Foley

On Fri, Oct 17, 2014 at 9:53 AM, Peter Foley <pefoley2@pefoley.com> wrote:
> Turns out this doesn't work if CROSS_COMPILE is set in the environment.
> I'll send another version shortly.

It seems there is more interested in cross-compiling Documentation
than I anticipated, so please ignore this as I'll be trying a
different approach.

Thanks,

Peter

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

end of thread, other threads:[~2014-10-21 22:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-08 23:31 [PATCH] Only build Documentation/ when not cross-compiling Peter Foley
2014-10-17 13:53 ` Peter Foley
2014-10-21 22:06   ` Peter Foley

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).