diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2015-06-20 21:22:20 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2015-06-22 16:05:04 -0600 |
commit | f59514b6a8c5ca6dd282881a25e367e20ef4cb68 (patch) | |
tree | 8407530408b79599f7678bdc818d41f11d6b9cbc /Documentation/prctl | |
parent | 6a407a81a9abcf6664698b22e70d070605063f7c (diff) | |
download | op-kernel-dev-f59514b6a8c5ca6dd282881a25e367e20ef4cb68.zip op-kernel-dev-f59514b6a8c5ca6dd282881a25e367e20ef4cb68.tar.gz |
Documentation/prctl: don't build tsc 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/prctl/disable-tsc-on-off-stress-test.c:36:1: error:
impossible register constraint in 'asm'
Documentation/prctl/disable-tsc-ctxt-sw-stress-test.c:34:1: error:
impossible register constraint in 'asm'
Documentation/prctl/disable-tsc-test.c:36:1: error: impossible
register constraint in 'asm'
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: Erik Bosman <ejbosman@cs.vu.nl>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/prctl')
-rw-r--r-- | Documentation/prctl/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/prctl/Makefile b/Documentation/prctl/Makefile index 2948b7b..44de308 100644 --- a/Documentation/prctl/Makefile +++ b/Documentation/prctl/Makefile @@ -1,3 +1,4 @@ +ifndef CROSS_COMPILE # List of programs to build hostprogs-$(CONFIG_X86) := disable-tsc-ctxt-sw-stress-test disable-tsc-on-off-stress-test disable-tsc-test # Tell kbuild to always build the programs @@ -6,3 +7,4 @@ always := $(hostprogs-y) HOSTCFLAGS_disable-tsc-ctxt-sw-stress-test.o += -I$(objtree)/usr/include HOSTCFLAGS_disable-tsc-on-off-stress-test.o += -I$(objtree)/usr/include HOSTCFLAGS_disable-tsc-test.o += -I$(objtree)/usr/include +endif |