Skip to contentSkip to conversation

Documentation/prctl: don't build tsc tests when cross compiling

PATCH New Paul Gortmaker 1 participant 1 message Jun 21, 2015 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 Documentation/prctl/Makefile | 2 ++
 1 file changed, 2 insertions(+)
Documentation/prctl/Makefile +2 -0
index 2948b7b124b9..44de3080c7f2 100644
@@ -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
Signature · 5 lines
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/