2014-10-08 23:31:48

by Peter Foley

[permalink] [raw]
Subject: [PATCH] Only build Documentation/ when not cross-compiling

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 <[email protected]>
---
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


2014-10-17 13:54:00

by Peter Foley

[permalink] [raw]
Subject: Re: [PATCH] Only build Documentation/ when not cross-compiling

On Wed, Oct 8, 2014 at 7:31 PM, Peter Foley <[email protected]> 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.

2014-10-21 22:06:32

by Peter Foley

[permalink] [raw]
Subject: Re: [PATCH] Only build Documentation/ when not cross-compiling

On Fri, Oct 17, 2014 at 9:53 AM, Peter Foley <[email protected]> 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