diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2015-06-20 21:10:28 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2015-06-22 18:04:57 -0400 |
commit | 6a407a81a9abcf6664698b22e70d070605063f7c (patch) | |
tree | d1941d5c69c33136a3609e6c3e9dfa9114fb5eb0 /Documentation/vDSO/Makefile | |
parent | e368c7291f20c624cfc202a8ad836d6de54c0c24 (diff) |
Documentation/vDSO: don't build tests when cross compiling
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>
Diffstat (limited to 'Documentation/vDSO/Makefile')
-rw-r--r-- | Documentation/vDSO/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ | |||
1 | ifndef CROSS_COMPILE | ||
1 | # vdso_test won't build for glibc < 2.16, so disable it | 2 | # vdso_test won't build for glibc < 2.16, so disable it |
2 | # hostprogs-y := vdso_test | 3 | # hostprogs-y := vdso_test |
3 | hostprogs-$(CONFIG_X86) := vdso_standalone_test_x86 | 4 | hostprogs-$(CONFIG_X86) := vdso_standalone_test_x86 |
@@ -13,3 +14,4 @@ HOSTLOADLIBES_vdso_standalone_test_x86 := -nostdlib | |||
13 | ifeq ($(CONFIG_X86_32),y) | 14 | ifeq ($(CONFIG_X86_32),y) |
14 | HOSTLOADLIBES_vdso_standalone_test_x86 += -lgcc_s | 15 | HOSTLOADLIBES_vdso_standalone_test_x86 += -lgcc_s |
15 | endif | 16 | endif |
17 | endif | ||