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>
12 lines
302 B
Makefile
12 lines
302 B
Makefile
TEST_GEN_PROGS := gettimeofday context_switch mmap_bench futex_bench null_syscall
|
|
|
|
CFLAGS += -O2
|
|
|
|
$(TEST_GEN_PROGS): ../harness.c
|
|
|
|
include ../../lib.mk
|
|
|
|
$(OUTPUT)/context_switch: ../utils.c
|
|
$(OUTPUT)/context_switch: CFLAGS += -maltivec -mvsx -mabi=altivec
|
|
$(OUTPUT)/context_switch: LDLIBS += -lpthread
|