]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Documentation/vDSO: don't build tests when cross compiling
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 21 Jun 2015 01:10:28 +0000 (21:10 -0400)
committerJonathan Corbet <corbet@lwn.net>
Mon, 22 Jun 2015 22:04:57 +0000 (16:04 -0600)
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>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/vDSO/Makefile

index ee075c3d21248cff5f409585116c3ab52af6a575..b12e98770e1f5ea48d714dbce12db2a27c06b2f5 100644 (file)
@@ -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