aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/switch_endian
diff options
context:
space:
mode:
authorbamvor.zhangjian@huawei.com <bamvor.zhangjian@huawei.com>2016-11-29 06:55:52 -0500
committerShuah Khan <shuahkh@osg.samsung.com>2017-01-05 15:42:22 -0500
commita8ba798bc8ec663cf02e80b0dd770324de9bafd9 (patch)
treee654822d4a82b46dc087febceb4d79999fd51488 /tools/testing/selftests/powerpc/switch_endian
parent80d443e8876602be2c130f79c4de81e12e2a700d (diff)
selftests: enable O and KBUILD_OUTPUT
Enable O and KBUILD_OUTPUT for kselftest. User could compile kselftest to another directory by passing O or KBUILD_OUTPUT. And O is high priority than KBUILD_OUTPUT. Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/powerpc/switch_endian')
-rw-r--r--tools/testing/selftests/powerpc/switch_endian/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/testing/selftests/powerpc/switch_endian/Makefile b/tools/testing/selftests/powerpc/switch_endian/Makefile
index dbd05ac8dbf7..b92c2a132c4f 100644
--- a/tools/testing/selftests/powerpc/switch_endian/Makefile
+++ b/tools/testing/selftests/powerpc/switch_endian/Makefile
@@ -2,14 +2,14 @@ TEST_GEN_PROGS := switch_endian_test
2 2
3ASFLAGS += -O2 -Wall -g -nostdlib -m64 3ASFLAGS += -O2 -Wall -g -nostdlib -m64
4 4
5EXTRA_CLEAN = *.o check-reversed.S 5EXTRA_CLEAN = $(OUTPUT)/*.o $(OUTPUT)/check-reversed.S
6 6
7include ../../lib.mk 7include ../../lib.mk
8 8
9switch_endian_test: check-reversed.S 9$(OUTPUT)/switch_endian_test: $(OUTPUT)/check-reversed.S
10 10
11check-reversed.o: check.o 11$(OUTPUT)/check-reversed.o: $(OUTPUT)/check.o
12 $(CROSS_COMPILE)objcopy -j .text --reverse-bytes=4 -O binary $< $@ 12 $(CROSS_COMPILE)objcopy -j .text --reverse-bytes=4 -O binary $< $@
13 13
14check-reversed.S: check-reversed.o 14$(OUTPUT)/check-reversed.S: $(OUTPUT)/check-reversed.o
15 hexdump -v -e '/1 ".byte 0x%02X\n"' $< > $@ 15 hexdump -v -e '/1 ".byte 0x%02X\n"' $< > $@