mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Documentation/vDSO: don't build tests when cross compiling
@ 2015-06-21  1:10 Paul Gortmaker
  2015-06-22 16:41 ` Jonathan Corbet
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Gortmaker @ 2015-06-21  1:10 UTC (permalink / raw)
  To: linux-kernel; +Cc: Paul Gortmaker, Jonathan Corbet, linux-doc, Andy Lutomirski

The following was seen in linux-next build coverage, which is somewhat
unique since it uses powerpc host to cross compile x86:

Documentation/vDSO/vdso_standalone_test_x86.c:49:2: error: impossible
register constraint in 'asm'
make[4]: *** [Documentation/vDSO/vdso_standalone_test_x86.o] Error 1

It probably makes sense to just skip building these tests when
we are cross compiling.

Cc: Jonathan Corbet <corbet@lwn.net>
Cc: linux-doc@vger.kernel.org
Cc: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
 Documentation/vDSO/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/vDSO/Makefile b/Documentation/vDSO/Makefile
index ee075c3d2124..b12e98770e1f 100644
--- a/Documentation/vDSO/Makefile
+++ b/Documentation/vDSO/Makefile
@@ -1,3 +1,4 @@
+ifndef CROSS_COMPILE
 # vdso_test won't build for glibc < 2.16, so disable it
 # hostprogs-y := vdso_test
 hostprogs-$(CONFIG_X86) := vdso_standalone_test_x86
@@ -13,3 +14,4 @@ HOSTLOADLIBES_vdso_standalone_test_x86 := -nostdlib
 ifeq ($(CONFIG_X86_32),y)
 HOSTLOADLIBES_vdso_standalone_test_x86 += -lgcc_s
 endif
+endif
-- 
2.2.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at  http://www.tux.org/lkml/

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

end of thread, other threads:[~2015-06-22 23:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-21  1:10 [PATCH] Documentation/vDSO: don't build tests when cross compiling Paul Gortmaker
2015-06-22 16:41 ` Jonathan Corbet
2015-06-22 17:01   ` Andy Lutomirski
2015-06-22 19:09     ` Paul Gortmaker
2015-06-22 19:46       ` Andy Lutomirski
2015-06-22 20:41         ` Paul Gortmaker
2015-06-22 21:10           ` Jonathan Corbet
2015-06-22 23:19             ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®